/* Hebrew pages (site/he/..., built by tools/make-he.py): right-to-left layout and the Hebrew typeface.
   Loaded after every other stylesheet of the page, only on Hebrew pages (<html lang="he" dir="rtl">). */

/* 1. Typeface: Heebo for every Hebrew letter. Geist, Inter and Geist Mono have no Hebrew letters, so instead of
      rewriting every font-family rule, Heebo is registered under those same names for the Hebrew letters only
      (unicode-range). Latin text, numbers and code keep their font; Hebrew text gets Heebo, with no other rule changed.
      Each face below must repeat EXACTLY the font-weight that Google's stylesheet declares for that family
      (Geist 300/400/500/600, Geist Mono 400/500, Inter "400 800"). A browser first picks the face by weight and only
      then looks at which letters it has; a Heebo face with any other weight value is never reached, and Hebrew
      falls back to the system font. If the Google Fonts link in the pages changes, change these to match. */
@font-face{font-family:"Geist";font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/heebo/v28/NGS6v5_NC0k9P9H0TbFhsqMA6aw.woff2) format("woff2");unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:"Geist";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/heebo/v28/NGS6v5_NC0k9P9H0TbFhsqMA6aw.woff2) format("woff2");unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:"Geist";font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/heebo/v28/NGS6v5_NC0k9P9H0TbFhsqMA6aw.woff2) format("woff2");unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:"Geist";font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/heebo/v28/NGS6v5_NC0k9P9H0TbFhsqMA6aw.woff2) format("woff2");unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:"Geist Mono";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/heebo/v28/NGS6v5_NC0k9P9H0TbFhsqMA6aw.woff2) format("woff2");unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:"Geist Mono";font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/heebo/v28/NGS6v5_NC0k9P9H0TbFhsqMA6aw.woff2) format("woff2");unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:"Inter";font-style:normal;font-weight:400 800;font-display:swap;src:url(https://fonts.gstatic.com/s/heebo/v28/NGS6v5_NC0k9P9H0TbFhsqMA6aw.woff2) format("woff2");unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}

/* 2. Hebrew letters are wider and have no capitals: the very tight tracking of the Latin headings crushes them. */
html[lang="he"] body :is(h1,h2,h3,h4,.h-name,.oz-end-line){letter-spacing:-.02em}

/* 3. Home hero: the name sits on the right in Hebrew, so the photo moves to the mirrored side */
html[lang="he"] .ozcv .hero{--ph-x:-390px}

/* 4. Home: rules written with left / right that have to swap sides */
html[lang="he"] .ozcv .slash{left:auto;right:clamp(20px,4.4vw,72px)}
html[lang="he"] .ozcv .h-role{text-align:right}
html[lang="he"] .ozcv .exp-head{padding-right:0;padding-left:20px}
html[lang="he"] .ozcv .card .big{right:auto;left:28px}
html[lang="he"] .ozcv .ct-ar,html[lang="he"] .oz-ct-ar{margin-left:0;margin-right:auto}
/* bars and hover fills grow from the side the text starts on */
html[lang="he"] .ozcv .w-cap .bar i,html[lang="he"] .ozcv .cl-row::before,html[lang="he"] .ozcv .pc-bar i{transform-origin:right}
/* process columns */
html[lang="he"] .ozcv .pc-word{left:auto;right:clamp(10px,1.4vw,22px)}
html[lang="he"] .ozcv .pc-spec{left:auto;right:clamp(18px,2vw,30px)}
html[lang="he"] .ozcv .pc-more{right:auto;left:clamp(18px,2vw,30px)}
html[lang="he"] .ozcv .pc-toggle{right:auto;left:clamp(18px,2vw,30px)}
@media (max-width:900px){html[lang="he"] .ozcv .pc-toggle{left:14px}}

/* 5. The two 3D stages (projects corridor, case study walkthrough) are scenes, not text: their geometry is
      computed for left-to-right and stays that way. Only the text panels inside them read right to left. */
html[lang="he"] .ozpj-stage,html[lang="he"] .ozcs-stage{direction:ltr}
html[lang="he"] :is(.ozpj-card,.ozpj-hint,.ozcs-card,.ozcs-hint,.ozcs-controls){direction:rtl}
html[lang="he"] .ozpj-card,html[lang="he"] .ozcs-card{text-align:right}
