/* Hebrew page (he.html only): the same site mirrored right-to-left, plus Hebrew font fallbacks.
   The OS room and the Win95 desktop stay left-to-right as objects (they are a drawn scene); only their text runs RTL. */
:root {
  --f-sans: "Hanken Grotesk", "Heebo", "Helvetica Neue", Arial, sans-serif;
  --f-sys: Tahoma, "Heebo", "Microsoft Sans Serif", Arial, sans-serif;
  --f-bios: "VT323", "Courier New", monospace;
  --f-slab: "Arvo", "Frank Ruhl Libre", Rockwell, Georgia, serif;
  --f-slab-body: "Zilla Slab", "Frank Ruhl Libre", Rockwell, Georgia, serif;
  --f-hand: "Caveat", "Amatic SC", "Segoe Print", cursive;
}
[dir="rtl"] .eyebrow { letter-spacing: .02em; }
bdi { unicode-bidi: isolate; }

/* header + menu */
[dir="rtl"] .brand:hover .copy { transform: rotate(-360deg); }
[dir="rtl"] .fab { right: auto; left: var(--gutter); }
[dir="rtl"] .panel { right: auto; left: 0; transform: translateX(calc(-100% - 110px)); }
[dir="rtl"] .menu-open .panel { transform: none; }
[dir="rtl"] .panel svg { left: auto; right: -99px; transform: scaleX(-1); }
[dir="rtl"] .panel-links a::before { margin-left: 0; margin-right: -2.2rem; }

/* hero: location pill hugs the right edge, the role sits on the left */
[dir="rtl"] .hero-loc { left: auto; right: 0; padding: 1.5rem var(--gutter) 1.5rem 1.5rem; border-radius: 999px 0 0 999px; }
[dir="rtl"] .hero-role { right: auto; left: var(--gutter); }
[dir="rtl"] .hero-role svg { scale: -1 1; }
[dir="rtl"] .marquee { direction: ltr; }
[dir="rtl"] .marquee span { direction: rtl; unicode-bidi: isolate; }

/* work list */
[dir="rtl"] .work-row p { text-align: left; }
[dir="rtl"] .work-row:hover h3 { transform: translateX(10px); }
[dir="rtl"] .work-row:hover p { transform: translateX(-10px); }

/* sliding rows keep their motion; the tiles read RTL */
[dir="rtl"] .slides { direction: ltr; }
[dir="rtl"] .tile { direction: rtl; }
[dir="rtl"] .tile.stat b { direction: ltr; unicode-bidi: isolate; text-align: right; }

/* services */
[dir="rtl"] .svc-row:hover h3 { transform: translateX(-12px); }
[dir="rtl"] .svc-cta svg { scale: -1 1; }
[dir="rtl"] .svc-row:hover .svc-cta svg { transform: translate(-2px, -2px); }
@media (max-width: 760px) { [dir="rtl"] .svc-row:hover h3 { transform: none; } }

/* footer */
[dir="rtl"] .foot-arrow { margin-left: 0; margin-right: auto; scale: -1 1; }
[dir="rtl"] .foot-line .round-btn { right: auto; left: clamp(0rem, 8vw, 9rem); }
[dir="rtl"] .pill .ico { margin-right: 0; margin-left: .55em; }
[dir="rtl"] .foot-socials a::after { transform-origin: left; }
[dir="rtl"] .foot-socials a:hover::after { transform-origin: right; }

/* the room + desktop stay LTR; Hebrew text inside runs RTL */
[dir="rtl"] .os-stage { direction: ltr; }
[dir="rtl"] .os-head, [dir="rtl"] .os-hint, [dir="rtl"] .bios, [dir="rtl"] .win-body, [dir="rtl"] .win-menu, [dir="rtl"] .win-status,
[dir="rtl"] .sm-items, [dir="rtl"] .spk-hint, [dir="rtl"] .spk-hint-3d, [dir="rtl"] .note, [dir="rtl"] .note-desk, [dir="rtl"] .frame-2 span, [dir="rtl"] .shutdown { direction: rtl; }
[dir="rtl"] .tt, [dir="rtl"] .dicon span, [dir="rtl"] .task span, [dir="rtl"] .start { unicode-bidi: plaintext; }
[dir="rtl"] .bios-logo { right: auto; left: clamp(18px, 6vmin, 80px); }
[dir="rtl"] .os-m .bios-logo { right: auto; left: 14px; }
[dir="rtl"] .sm-item { text-align: right; padding: .5em .6em .5em 1em; }
[dir="rtl"] .xp th { text-align: right; }
[dir="rtl"] .sc .lead { text-align: right; }
[dir="rtl"] .sc ul { padding-left: 0; padding-right: 1.2em; }
[dir="rtl"] .desk-pop, [dir="rtl"] .desk-tip { direction: rtl; }
[dir="rtl"] .dp-x { right: auto; left: .8rem; }
[dir="rtl"] .bc-top { margin-right: 0; margin-left: 1.6rem; }
[dir="rtl"] .desk-tip { transform: translate(calc(-100% - 14px), -130%); }
/* Amatic SC (the Hebrew hand font) runs small next to Caveat */
[dir="rtl"] .spk-hint-3d, [dir="rtl"] .spk-hint, [dir="rtl"] .note, [dir="rtl"] .note-desk, [dir="rtl"] .frame-2 { font-weight: 700; }

@media (max-width: 760px) {
  [dir="rtl"] .hero-loc { padding: 1rem var(--gutter) 1rem 1.2rem; }
  [dir="rtl"] .hero-role { left: auto; right: var(--gutter); }
  [dir="rtl"] .work-row p { text-align: right; }
  [dir="rtl"] .foot-line .round-btn { right: auto; left: 0; }
}
