/* NDIGIT v2 · תנועה: קרוסלה של כל הסרטונים. טלפון במרכז גדול ומתנגן, השכנים קטנים ועמומים.
   סרטונים מלאים ומוכנים בלבד. גרירה, החלקה, חצים, מקלדת ולחיצה על סרטון שכן */
.rl { position: relative; overflow: hidden; background: var(--coal); color: var(--bone); padding: clamp(90px, 8vw, 130px) 0 clamp(60px, 6vw, 100px); }
.rl-head { display: grid; grid-template-columns: auto 1fr; gap: 20px 70px; align-items: end; }
.rl-h { margin: 0; font: 700 clamp(58px, 6vw, 104px)/.9 var(--display); }
.rl-h .lt { font-weight: 300; color: var(--soft); }
.rl-h .hl { color: var(--lime); }
.rl-intro { justify-self: end; margin: 0; padding-bottom: 12px; max-width: 38ch; font-size: 19px; line-height: 1.7; color: var(--soft); }
.rl-intro b { color: var(--bone); }

/* הבמה */
.rl-view { --w: clamp(190px, 17vw, 270px); position: relative; margin-top: clamp(40px, 4vw, 64px); height: calc(var(--w) * 2.17 * 1.1 + 70px); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.rl-view.drag { cursor: grabbing; }
/* זוהר ליים מתחת לטלפון הפעיל */
.rl-view::before { content: ""; position: absolute; left: 50%; bottom: 0; width: calc(var(--w) * 2.4); height: 120px; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(200,245,66,.28), transparent 70%); filter: blur(20px); pointer-events: none; }
.rl-track { position: absolute; top: 0; right: 0; display: flex; flex-direction: row; gap: calc(var(--w) * .12); align-items: center; height: 100%; transform: translateX(var(--x, 0px)); transition: transform .7s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.rl-view.drag .rl-track { transition: none; }
.rl-item { flex: none; width: var(--w); transform: scale(.8); opacity: .42; filter: saturate(.6); transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .5s, filter .5s; cursor: pointer; }
.rl-item.near { transform: scale(.86); opacity: .6; }
.rl-item.on { transform: scale(1.1); opacity: 1; filter: none; cursor: default; z-index: 2; }

/* הטלפון */
.rl-phone { position: relative; aspect-ratio: 9 / 19.5; border-radius: 13% / 6%; padding: 3.2%; background: linear-gradient(145deg, #3a3c35, #121310 38%, #0b0b0a 60%, #2a2c25); box-shadow: 0 0 0 1px #45473f, 0 36px 70px -18px rgba(0,0,0,.9); }
.rl-item.on .rl-phone { box-shadow: 0 0 0 1px #5c5f52, 0 0 0 4px rgba(200,245,66,.0), 0 40px 90px -20px rgba(0,0,0,.95), 0 0 70px -20px rgba(200,245,66,.45); -webkit-box-reflect: below 14px linear-gradient(transparent 78%, rgba(255,255,255,.12)); }
.rl-screen { position: relative; width: 100%; height: 100%; border-radius: 10.5% / 4.9%; overflow: hidden; background: #000; }
.rl-screen video, .rl-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rl-island { position: absolute; top: 1.8%; left: 50%; z-index: 5; width: 30%; height: 3.2%; border-radius: 99px; background: #000; transform: translateX(-50%); }
.rl-ui { position: absolute; inset: 0; z-index: 4; pointer-events: none; color: #fff; font-family: var(--text); }
.rl-ui::before { content: ""; position: absolute; inset: 62% 0 0 0; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.rl-top { position: absolute; top: 6.5%; right: 7%; font: 800 calc(var(--w) * .058)/1 var(--text); text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.rl-who { position: absolute; right: 7%; bottom: 6%; display: flex; align-items: center; gap: 7px; font: 700 calc(var(--w) * .052)/1 var(--text); text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.rl-av { display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--lime); color: #0b0b0a; font: 400 .9em/1 Anton, sans-serif; text-shadow: none; }
.rl-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; height: 3px; background: rgba(255,255,255,.18); }
.rl-bar i { position: absolute; inset: 0; background: var(--lime); transform: scaleX(var(--t, 0)); transform-origin: 100% 50%; }
/* טלפון שכן: כפתור "לנגן" קטן במקום ממשק */
.rl-item:not(.on) .rl-ui { opacity: 0; }
.rl-play { position: absolute; z-index: 5; left: 50%; top: 50%; display: grid; place-items: center; width: 22%; aspect-ratio: 1; border-radius: 50%; background: rgba(11,11,10,.55); backdrop-filter: blur(6px); transform: translate(-50%, -50%); transition: opacity .3s; }
.rl-play::after { content: ""; margin-left: 12%; border-style: solid; border-width: .5em 0 .5em .85em; border-color: transparent transparent transparent #fff; font-size: calc(var(--w) * .05); }
.rl-item.on .rl-play { opacity: 0; }
/* סאונד: רק בטלפון הפעיל */
.rl-sound { position: absolute; z-index: 6; top: 11%; left: 6%; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 0; border-radius: 99px; background: rgba(11,11,10,.62); backdrop-filter: blur(8px); color: #fff; font: 700 12px/1 var(--text); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; }
.rl-item.on .rl-sound { opacity: 1; pointer-events: auto; }
.rl-sound svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.rl-sound .on { display: none; } .rl-sound[aria-pressed="true"] .on { display: block; } .rl-sound[aria-pressed="true"] .off { display: none; }
.rl-sound[aria-pressed="true"] { background: var(--lime); color: #0b0b0a; }
.rl-sound:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ההסבר הקצר מתחת, והחיצים */
.rl-foot { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; margin-top: clamp(26px, 3vw, 44px); }
.rl-info { position: relative; min-height: 118px; text-align: center; }
.rl-say { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .5s, visibility 0s .3s; }
.rl-say.on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s .1s, transform .6s .1s; }
.rl-n { margin: 0; font: 700 13px/1 var(--text); color: var(--soft); letter-spacing: .04em; }
.rl-n b { font: 400 17px/1 Anton, sans-serif; color: var(--lime); margin-left: 6px; }
.rl-client { margin: 10px 0 8px; font: 700 clamp(40px, 3.6vw, 60px)/.9 var(--display); }
.rl-line { margin: 0; font-size: 17px; color: var(--soft); }
.rl-line a { margin-right: 12px; color: var(--lime); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(200,245,66,.4); }
.rl-arr { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; border: 1px solid #3a3c34; background: none; color: var(--bone); font-size: 22px; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.rl-arr:hover { background: var(--lime); color: #0b0b0a; border-color: var(--lime); }
.rl-arr:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.rl-arr:disabled { opacity: .3; pointer-events: none; }
.rl-dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.rl-dots i { width: 18px; height: 3px; border-radius: 2px; background: #33352d; transition: background .3s, width .3s; }
.rl-dots i.on { width: 34px; background: var(--lime); }

@media (max-width: 899px) {
  .rl-head { grid-template-columns: 1fr; }
  .rl-intro { justify-self: start; font-size: 17px; }
  .rl-view { --w: min(56vw, 250px); }
  .rl-foot { grid-template-columns: 48px 1fr 48px; gap: 10px; }
  .rl-arr { width: 48px; height: 48px; font-size: 18px; }
  .rl-client { font-size: clamp(34px, 10vw, 44px); }
  .rl-line { font-size: 15px; }
  .rl-line a { display: block; margin: 8px 0 0; border: 0; }
  .rl-info { min-height: 132px; }
}
@media (prefers-reduced-motion: reduce) { .rl-track, .rl-item, .rl-say { transition: none; } }

/* ===== גרסה 3: שתי עמודות. מימין כותרת + הסבר + חצים, משמאל הקרוסלה. טלפונים קטנים יותר ===== */
.rl-grid { display: grid; grid-template-columns: minmax(300px, .72fr) 1.28fr; grid-template-areas: "head view" "foot view"; gap: 0 clamp(30px, 4vw, 70px); align-items: center; }
.rl-grid .rl-head { grid-area: head; display: block; align-self: end; }
.rl-grid .rl-intro { justify-self: auto; margin-top: 20px; padding: 0; font-size: 18px; }
.rl-grid .rl-view { grid-area: view; --w: clamp(150px, 11.5vw, 200px); margin: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.rl-grid .rl-foot { grid-area: foot; display: block; align-self: start; margin-top: clamp(28px, 3vw, 44px); padding-top: 26px; border-top: 1px solid var(--line); }
.rl-grid .rl-info { min-height: 150px; text-align: right; }
.rl-grid .rl-client { font-size: clamp(38px, 3.2vw, 54px); }
.rl-grid .rl-line a { display: inline-block; margin: 10px 0 0; }
.rl-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.rl-ctrl .rl-dots { margin: 0; }
.rl-grid .rl-arr { width: 48px; height: 48px; font-size: 18px; }
@media (max-width: 899px) {
  .rl-grid { grid-template-columns: 1fr; grid-template-areas: "head" "view" "foot"; }
  .rl-grid .rl-view { --w: min(50vw, 220px); margin-top: 30px; -webkit-mask-image: none; mask-image: none; }
  .rl-grid .rl-foot { margin-top: 10px; padding-top: 18px; }
  .rl-grid .rl-info { text-align: center; min-height: 140px; }
  .rl-ctrl { justify-content: center; }
}

/* ===== גרסה 4: מעגל. כל טלפון ממוקם לפי --o (המרחק מהפעיל), לא מסילה שזזה ===== */
.rl-track { position: absolute; inset: 0; transform: none; display: block; }
.rl-item { position: absolute; left: 50%; top: 50%; --s: .8; transform: translate(-50%, -50%) translateX(calc(var(--o, 0) * var(--w) * -1.06 + var(--dx, 0px))) scale(var(--s)); }
.rl-item.near { --s: .86; transform: translate(-50%, -50%) translateX(calc(var(--o, 0) * var(--w) * -1.06 + var(--dx, 0px))) scale(var(--s)); }
.rl-item.on { --s: 1.1; transform: translate(-50%, -50%) translateX(calc(var(--o, 0) * var(--w) * -1.06 + var(--dx, 0px))) scale(var(--s)); }
.rl-item.far { opacity: 0; }
.rl-item.jump { transition: none; opacity: 0; }
.rl-view.drag .rl-item { transition: none; }

/* גרסה 5: עמודת הטקסט צרה, הקרוסלה רחבה, הטלפונים גדולים יותר */
@media (min-width: 900px) {
  .rl-grid { grid-template-columns: minmax(250px, .46fr) 1.54fr; gap: 0 clamp(24px, 3vw, 48px); }
  .rl-grid .rl-view { --w: clamp(185px, 15vw, 270px); }
  .rl-grid .rl-h { font-size: clamp(52px, 5vw, 88px); }
  .rl-grid .rl-intro { font-size: 17px; }
}

/* סאונד: עיגול עם אייקון בלבד, צף על הפינה העליונה של הטלפון הפעיל (מחוץ למסך) */
.rl-phone > .rl-sound { position: absolute; z-index: 7; top: -14px; left: -14px; width: 46px; height: 46px; padding: 0; justify-content: center; gap: 0; border-radius: 50%; background: #1b1c17; border: 1px solid #3a3c34; box-shadow: 0 8px 20px rgba(0,0,0,.5); transition: opacity .3s, transform .3s cubic-bezier(.3,1.6,.5,1), background .2s; }
.rl-phone > .rl-sound svg { width: 20px; height: 20px; }
.rl-phone > .rl-sound[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: #0b0b0a; }
@media (hover: hover) and (pointer: fine) { .rl-phone > .rl-sound:hover { transform: scale(1.08); } }
.rl-item:not(.on) .rl-phone > .rl-sound { transform: scale(.6); }

/* ===== נתי 28.09 לילה: הסקשן על רקע עצם, כדי לשבור את הרצף הכהה. הווידאו נשאר על מסכים כהים ===== */
.rl { --ink: #0b0b0a; --ink2: #5d5b52; background: #f3f1ea; color: var(--ink); border-top: 0; }
.rl .sec-k { color: var(--ink); } .rl .sec-k::before { background: var(--ink); }
.rl-h, .rl-h b { color: var(--ink); }
.rl-h .lt { color: #6c6961; }
.rl-h .hl { color: var(--ink); }
.rl-intro, .rl-grid .rl-intro { color: var(--ink2); }
.rl-intro b { color: var(--ink); }
.rl-grid .rl-foot { border-top-color: #d9d5ca; }
.rl-n { color: var(--ink2); } .rl-n b { color: var(--ink); }
.rl-client { color: var(--ink); }
.rl-line { color: var(--ink2); }
.rl-line a { color: var(--ink); border-bottom-color: var(--ink); }
.rl-arr { border-color: #cfcabd; color: var(--ink); }
.rl-arr:hover { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.rl-dots i { background: #d9d5ca; } .rl-dots i.on { background: var(--ink); }
.rl-view::before { background: radial-gradient(50% 50% at 50% 50%, rgba(11,11,10,.22), transparent 70%); }
.rl-item { opacity: .9; filter: saturate(.75) brightness(.96); }
.rl-item.near { opacity: .95; }
.rl-item.on { opacity: 1; filter: none; }
.rl-phone { box-shadow: 0 0 0 1px #0b0b0a, 0 30px 50px -22px rgba(11,11,10,.45); }
.rl-item.on .rl-phone { box-shadow: 0 0 0 1px #0b0b0a, 0 40px 70px -24px rgba(11,11,10,.5), 0 0 0 6px rgba(200,245,66,.0); -webkit-box-reflect: unset; }
.rl-item.far { opacity: 0; }
.rl-item.jump { opacity: 0; }
.rl-phone > .rl-sound { background: #0b0b0a; border-color: #0b0b0a; color: #fff; box-shadow: 0 8px 18px rgba(11,11,10,.3); }
.rl-sound:focus-visible, .rl-arr:focus-visible { outline-color: var(--ink); }

/* ===== נתי 28.09 ערב: על רקע בהיר ההדגשה בשחור, לא בירוק. הכיתוב והשליטה בשפה עכשווית:
   תגית קטנה למספר ולסוג, כפתור שחור לסיפור המלא, ופס שליטה שחור אחד עם מקטעי התקדמות ===== */
.rl .sec-k { color: var(--ink); } .rl .sec-k::before { background: var(--ink); }
.rl-h .hl { color: var(--ink); }
.rl-n { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid #d6d2c6; border-radius: 99px; font: 700 12.5px/1 var(--text); letter-spacing: .02em; color: var(--ink2); }
.rl-n b { margin: 0; font: 400 14px/1 Anton, sans-serif; letter-spacing: .04em; color: var(--ink); }
.rl-grid .rl-client { margin: 16px 0 6px; }
.rl-line a, .rl-grid .rl-line a { display: inline-flex; align-items: center; gap: 10px; width: max-content; margin: 16px 0 0; padding: 6px 6px 6px 16px; border: 0; border-radius: 99px; background: var(--ink); color: #f3f1ea; font: 700 14px/1 var(--text); transition: background .25s, color .25s; }
.rl-line a span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 15px; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) and (pointer: fine) { .rl-line a:hover span { transform: translateX(-4px); } }
.rl-line a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.rl-line { display: flex; flex-direction: column; align-items: flex-start; }
/* הכיתוב קיבל כפתור: מקום קבוע לכל השקופיות, כדי שלא ייגע בפס השליטה */
.rl-grid .rl-info { min-height: 196px; }
/* פס השליטה: קפסולה שחורה אחת, חצים בתוכה, ומקטעים שמתמלאים עד הסרטון הנוכחי */
.rl-ctrl { display: flex; align-items: center; gap: 4px; width: min(100%, 340px); margin-top: 24px; padding: 5px; border-radius: 99px; background: var(--ink); }
.rl-ctrl .rl-arr, .rl-grid .rl-ctrl .rl-arr { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: none; color: #f3f1ea; }
.rl-ctrl .rl-arr svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rl-ctrl .rl-arr:hover { background: none; color: #f3f1ea; }
.rl-ctrl .rl-arr:active { background: rgba(243,241,234,.16); }
@media (hover: hover) and (pointer: fine) { .rl-ctrl .rl-arr:hover { background: var(--lime); color: var(--ink); } }
.rl-ctrl .rl-arr:focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; }
.rl-ctrl .rl-dots { flex: 1; gap: 4px; padding: 0 6px; }
.rl-ctrl .rl-dots i { flex: 1; width: auto; height: 4px; border-radius: 99px; background: rgba(243,241,234,.2); }
.rl-ctrl .rl-dots i:has(~ i.on) { background: rgba(243,241,234,.55); }
.rl-ctrl .rl-dots i.on { width: auto; background: var(--lime); }
@media (max-width: 899px) {
  .rl-line { align-items: center; }
  .rl-grid .rl-info { min-height: 190px; }
  .rl-ctrl { margin: 22px auto 0; }
}

/* נתי: הצל של הטלפון נחתך למטה. ה־overflow של הסרט נשאר, אבל עם מרווח לצל ולכפתור הקול, שמתקזז במרג'ין */
.rl-grid .rl-view { padding-block: 24px 80px; margin-block: -24px -80px; }

/* נתי 30.09: פס המעבר בין הסרטונים קומפקטי. רוחב לפי התוכן, חצים קטנים יותר (במובייל אזור הלחיצה נשאר 44) */
.rl-ctrl { width: auto !important; display: inline-flex !important; gap: 2px !important; padding: 3px !important; }
.rl-ctrl .rl-arr { width: 34px !important; height: 34px !important; min-width: 34px !important; min-height: 34px !important; font-size: 14px !important; }
.rl-ctrl .rl-dots { gap: 4px !important; padding: 0 8px !important; }
.rl-ctrl .rl-dots i, .rl-ctrl .rl-dots button { width: 18px !important; min-width: 0 !important; }
@media (max-width: 760px) { .rl-ctrl .rl-arr { width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; } }
/* נתי 30.09: הצל של הטלפון המרכזי עדיין נחתך בתחתית הסקשן. משאירים לו מקום אמיתי בתוך הסקשן (בלי מרג'ין שלילי שמושך את הסוף פנימה) */
@media (min-width: 761px) { .rl-grid .rl-view { padding-bottom: 150px !important; margin-bottom: -90px !important; } }
/* חיתוך רק לרוחב (overflow-x: clip) כדי שהצל למטה ייצא מחוץ לפס בלי להיחתך */
.rl-grid .rl-view { overflow-x: clip !important; overflow-y: visible !important; }
.rl { overflow-x: clip !important; overflow-y: visible !important; }
/* הדהייה בצדדים עברה ממסכה (שחתכה גם את הצל למטה) לשכבה בצבע הרקע, בצדדים בלבד */
@media (min-width: 761px) {
  .rl-grid .rl-view { -webkit-mask-image: none !important; mask-image: none !important; position: relative; padding-bottom: 110px !important; margin-bottom: -80px !important; }
  .rl-grid .rl-view::before, .rl-grid .rl-view::after { content: ""; position: absolute; z-index: 5; top: 0; bottom: 0; width: 14%; pointer-events: none; }
  .rl-grid .rl-view::before { left: 0; background: linear-gradient(90deg, #f3f1ea, rgba(243,241,234,0)); }
  .rl-grid .rl-view::after { right: 0; background: linear-gradient(270deg, #f3f1ea, rgba(243,241,234,0)); }
}
@media (max-width: 760px) { .rl-ctrl { display: flex !important; width: fit-content !important; margin-inline: auto !important; } }
/* פוקוס מהמקלדת: מסגרת על הטלפון שבמרכז במקום על כל הקרוסלה (נתי 30.09) */
.rl-view:focus, .rl-view:focus-visible { outline: none !important; box-shadow: none !important; }
.rl-view:focus-visible .rl-item.on .rl-phone { outline: 3px solid var(--lime); outline-offset: 5px; }
