/* yehudagelb.com/he — Hebrew, on top of style.css.
   The scene does not move: he stays on the left and the camera's own readouts stay in English,
   as they are on a real camera. What changes is the words. They read right to left and hang
   from the right edge of the clear wall, where a Hebrew reader starts. */

:root {
  --re: 3.4vw;                                              /* the right edge everything hangs from */
  /* the small name is one line here, so the columns start higher than in English */
  --rtop: calc(var(--hf) * 0.085 + var(--F) * 0.238);       /* the same step under the small name's baseline */
}

body { font-family: "Archivo", "Heebo", "Helvetica Neue", Arial, sans-serif; }
.bar { direction: ltr; }
.nb { white-space: nowrap; }                                /* a prefix stays with its English word */
.dial { direction: rtl; }

/* Hebrew has no capitals, so the small labels drop the tracking and the mono face */
.eyebrow, .cap, .af-tag, .creds-face small, .creds-flip, .stat span, .outlets, .player-close, .dial button, .contact {
  font-family: "Heebo", "Martian Mono", sans-serif; font-stretch: normal; letter-spacing: 0; text-transform: none;
}
.contact { direction: rtl; font-size: 13.5px; font-weight: 700; padding: 6px 15px; }
.dial button { font-size: 15px; font-weight: 600; padding: 9px 20px; }
.dial button[data-view="home"] { padding: 9px 12px 9px 20px; }

/* the name: one line, from the right edge */
.wall-name {
  left: auto; right: var(--re);
  /* up, so the letters' tops sit where the English capitals' tops do (the lamed rises above them),
     and right by the yod's side bearing, so its stroke sits on the edge */
  margin: -0.153em -0.071em 0 0;
  font-family: "Heebo", sans-serif; font-weight: 900; font-stretch: normal;
  line-height: 1; letter-spacing: -0.012em; text-transform: none;
}
.wall-name span { display: inline; }

/* first screen */
.menu { left: auto; right: var(--re); }
.menu button b { font-size: 7.6cqw; font-weight: 800; letter-spacing: 0; line-height: 1; }
.menu button span { font-size: clamp(14px, 2.7cqw, 21px); }
.menu button::after { content: "←"; }

/* a view's text */
.panel h2 { font-weight: 800; letter-spacing: 0; line-height: 1.14; font-size: clamp(22px, min(2.4vw, calc(var(--hf) * 0.049)), 38px); }
.say { font-size: clamp(14.5px, 1.14vw, 18.5px); line-height: 1.45; }
.go { font-size: 15.5px; }
.eyebrow { font-size: 13.5px; font-weight: 600; }

/* captions */
.cap { font-size: 12px; line-height: 14px; }
.cap i { left: auto; right: 6px; font-size: 10.5px; letter-spacing: 0; }
.af-tag { font-size: 12.5px; }
.af[data-tag="in"] .af-tag { left: auto; right: 6px; }
.af[data-tag="right"] .af-tag { right: auto; left: 6px; }     /* Hebrew titles start at the right, so the tag takes the left end */

/* film: the grid fills from the right */
.bin { left: auto; right: var(--re); }

/* security */
.card [dir="ltr"], .creds-face [dir="ltr"], .creds-face [dir="auto"] { text-align: right; }
.card span + span { margin-top: 3px; }
.creds { text-align: right; }
.creds-face small { font-size: .9em; }
.creds-flip { left: auto; right: 13px; font-size: .9em; }
.career dt { text-align: right; width: 8.6em; }
.cases li.hit a { box-shadow: inset -3px 0 0 var(--warn); padding-left: 0; padding-right: 12px; }
.stat span, .outlets { font-size: 12.5px; line-height: 1.4; }

/* apps: the carousel runs the other way. The app in front sits on the right edge; the next one
   waits behind his shoulder; the one after it is small on his far side; the last one leaves right. */
.deck .shot { left: calc(var(--rz) + var(--rw) - var(--sa)); }
.deck .shot .cap { font-size: 13px; }
.deck .shot .cap b { font-size: 15px; letter-spacing: 0; }
.deck .shot .cap i { left: auto; right: 10px; font-size: 12px; }
.deck .shot .cap u { margin-left: 0; margin-right: auto; padding: 0 0 0 2px; }
.deck .shot[data-slot="next"] {
  left: calc(var(--rz) + var(--rw) - var(--sa) - 20px - var(--sa) * 0.75); top: calc(var(--rtop) + var(--sa) * 0.0781); width: calc(var(--sa) * 0.75);
}
/* the waiting screen is behind his head, and his photo lets the pointer through: it must not
   answer the pointer, or pointing at his face would light it up and a click on him would turn the carousel */
.deck .shot[data-slot="next"], .deck .shot[data-slot="next"]:hover { pointer-events: none; filter: blur(3px) brightness(.62); }
.deck .shot[data-slot="far"] {
  left: var(--lx); top: var(--ltop); width: calc(var(--hf) * 0.3);
  filter: blur(2.5px) brightness(.66); opacity: 1; pointer-events: auto;
}
.deck .shot[data-slot="far"]:hover { filter: blur(1.5px) brightness(.85); }
.deck .shot[data-slot="prev"] {
  left: calc(var(--rz) + var(--rw) + 30px); top: calc(var(--rtop) + var(--sa) * 0.0781); width: calc(var(--sa) * 0.75);
  filter: blur(6px) brightness(.5); opacity: 0; pointer-events: none;
}
.deck-nav { left: calc(var(--rz) + var(--rw) - var(--sa)); }
.deck-btn[data-step="1"] { right: auto; left: calc(clamp(40px, 3.4vw, 54px) / -2); }
.deck-btn[data-step="-1"] { left: auto; right: calc(clamp(40px, 3.4vw, 54px) / -2); }
.deck-count { right: auto; left: 10px; top: auto; bottom: 10px; }   /* bottom corner: the top ones hold the label and the screenshots' own logos */

.player-close { right: auto; left: 20px; font-size: 13.5px; }

/* ---------- phones and tall screens ---------- */
@media (max-aspect-ratio: 5/4), (max-width: 820px) {
  /* his photo runs past the left edge; in a right-to-left page that would let the page slide sideways */
  .frame { overflow-x: clip; }
  .contact { padding: 5px 11px; }
  .wall-name { left: auto; right: 14px; }
  .wall-name span + span::before { content: none; }
  .menu { right: auto; }
  .menu button b { font-size: 32px; }
  .menu button span { font-size: 15.5px; }
  .dial button, .dial button[data-view="home"] { font-size: 13.5px; padding: 10px 2px; }
  .panel h2 { font-size: clamp(25px, 7vw, 40px); }
  .say { font-size: 16.5px; }
  .cap { font-size: 12.5px; }
  .below .deck .shot, .below .deck .shot[data-slot] { left: auto; }
  .below .deck .shot .cap u { margin-right: 0; }
  .bin { right: auto; }
}
