/* Hebrew glyphs: Rubik (swap he/he-font.woff2 to change), added after every Latin family in the mirrored stylesheet */
@font-face{font-family:HeFont;src:url(fonts/he-font.woff2) format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
[dir=rtl] body{letter-spacing:0}
[dir=rtl] h1,[dir=rtl] h2,[dir=rtl] h3{letter-spacing:-.01em}
/* home accordion: card images are cropped by a direction-neutral offset (--cx), so undo rtlcss on .bg (same specificity, loaded later) */
:where([dir=rtl]) .bg{left:0;right:auto}
:where([dir=rtl]) .bg img,:where([dir=rtl]) .bg video{object-position:100% 50%}
@media (max-width:1100px){:where([dir=rtl]) .bg img,:where([dir=rtl]) .bg video{object-position:var(--mpos,72% 40%)}}
@media (max-width:1100px) and (min-width:701px){:where([dir=rtl]) .bg img,:where([dir=rtl]) .bg video{object-position:100% 50%}}
/* the open card's image is mirrored to the side away from the text */
@media (min-width:1101px){
[dir=rtl] .acc .card.is-open .bg img,[dir=rtl] .acc .card.is-open .bg video{object-position:170% 50%}
[dir=rtl] .acc .card.is-open[data-i="0"] .bg img{object-position:125% 50%}
[dir=rtl] .acc .card.is-open .bg video{object-position:147% 50%}
[dir=rtl] .acc .card.is-open[data-i="3"] .bg{-webkit-mask-image:linear-gradient(90deg,#000 0%,#000 28%,transparent 52%);mask-image:linear-gradient(90deg,#000 0%,#000 28%,transparent 52%)}
[dir=rtl] .acc .card.is-open .bg{-webkit-mask-image:linear-gradient(90deg,#000 0%,#000 30%,transparent 60%);mask-image:linear-gradient(90deg,#000 0%,#000 30%,transparent 60%)}
}
@media (max-width:1100px) and (min-width:701px){
[dir=rtl] .acc .card.is-open .bg img,[dir=rtl] .acc .card.is-open .bg video{transform:translateX(-40%)!important;-webkit-mask-image:linear-gradient(90deg,#000 0%,#000 72%,transparent 100%);mask-image:linear-gradient(90deg,#000 0%,#000 72%,transparent 100%)}
}
/* elements driven by mouse coordinates (JS uses clientX from the left) keep LTR geometry */
[dir=rtl] .vcur{left:0;right:auto;margin:-42px 0 0 -42px}
[dir=rtl] .tilt{transform:translate(calc(var(--mx,0) * var(--depth,10) * 1px),calc(var(--my,0) * var(--depth,10) * 1px)) rotate(var(--base,0deg))}
