/* Hebrew (2026-11-15). The layout stays left to right; every translated piece of text sets its own direction (dir="auto",
   i18n/i18n.js). Hebrew has no capitals and no tight tracking: letters are set at their natural spacing and a little taller. */
html[lang="he"] * { letter-spacing: normal !important; text-transform: none !important; }
html[lang="he"] body { line-height: 1.5; }
html[lang="he"] :is(h1, h2, h3, h4) { line-height: 1.12 !important; }
html[lang="he"] :is(p, label, dd, li, .bf-h) { text-wrap: pretty; }

/* ---- right to left (2026-11-15): the page reads from the right; the scenes, tracks and counters keep their own direction ---- */
/* words split by r2/kinetic.js: the run flows right to left, each word keeps its own direction */
html[dir="rtl"] kt-x { direction: inherit; }
html[dir="rtl"] kt-w { unicode-bidi: plaintext; } /* each word takes the direction of its own first letter, and its punctuation follows it; the words flow right to left */
/* numbers and short codes: 01 / 29, 02, EN, 1440 px: always read left to right */
html[dir="rtl"] :is(#muN, .nv-num, .s3-cn, .nv-n, .nv-dot, .bc-time, .lk-n, .r2-p .r2-pi, .px-k i, .f-list i, .bo-n, .tv-ch, time, [data-ltr]) { direction: ltr; unicode-bidi: isolate; }
/* the 3D scenes and what they draw on: the wall, the album track, the tower, the TV, the window onto a site */
html[dir="rtl"] :is(canvas, .f-view, .music-stage canvas, #musicStage, .tv-screen, .ww-desk, .ww-view, .ww-well, .bo-stage, .rail-track, .rail-fl, .field) { direction: ltr; }
/* the text that sits in a scene's caption or panel reads from the right again */
html[dir="rtl"] :is(.mu-cap, .mu-detail, .tv-now, .tv-cap, .tv-chip, .ww-side, .ww-foot, .ww-info, .ww-about, .bo-cap, .rail-info, .f-help, .r2-keys, .px-index) { direction: rtl; }
html[dir="rtl"] .mu-cap > b, html[dir="rtl"] .mu-cap > span { text-align: right; }
/* work titles, artist names and client names stay Latin: set them left to right unless they are Hebrew themselves */
html[dir="rtl"] :is(#muArtist, #muTitle, .mu-d-artist, .ww-info b, .tv-chip span, .tv-now h3, .rail-info h3, .bb-who b) { unicode-bidi: plaintext; text-align: start; }
/* Music: the caption hangs from the right edge, the "Next" link from the left (the mirror of the English layout) */
html[dir="rtl"] .music .mu-cap { left: auto; right: var(--pad, 34px); text-align: right; }
html[dir="rtl"] .music .mu-cap > :is(b, span, em) { text-align: right; unicode-bidi: plaintext; }
html[dir="rtl"] .mu-next { right: auto; left: var(--pad, 34px); }
html[dir="rtl"] .music .mu-cap .lk-pair { justify-content: flex-start; }

.s3-cw { text-transform: none !important; line-height: 1.1 !important; }
/* the big names set in Assistant 800 stand in for Anton: no faux bold on top */
html[lang="he"] :is(.s3-cw, .s3-cn, .bf-lines, h1, h2, h3, .bc-name) { font-synthesis: none; }
html[dir="rtl"] kt-w { unicode-bidi: isolate; }
html[dir="rtl"] .lg-menu { direction: rtl; }
html[dir="rtl"] .lg-menu a { flex-direction: row; direction: ltr; }
/* "I make [word]" sits on the wall (which stays left to right) but reads in Hebrew: "אני עושה" on the right, the word to its left */
html[dir="rtl"] .iam, html[dir="rtl"] .iam .who-r, html[dir="rtl"] .iam .who-me { direction: rtl; }
html[dir="rtl"] .iam .who-w b { direction: rtl; unicode-bidi: isolate; }
/* phones: the Hebrew era names are wider, so the label takes its own line and the three buttons keep one row (2026-12-05) */
@media (max-width: 760px) { html[dir="rtl"] .tv-models span { flex-basis: 100%; margin: 0 0 2px; text-align: center; } html[dir="rtl"] .tv-models button { white-space: nowrap; } }
