/* The English page (/en/): the same site, turned left to right.
   Loaded after styles.css on /en/ only, so nothing in this file can reach the Hebrew page.

   What flips with the reading direction: text, reading order, the tag on each film (start corner),
   the loader bar (fills from the left), the menu's close word (it now sits under the Menu button).
   What stays where the Hebrew page has it: the hero sentence with its lede, and the two floating
   buttons. Those are placed against the header film, not against the text. Mirrored, the sentence
   would land on the chimp at the table and on Eltan at the end of the pull-back. */

/* ---------- type: the kit's Futura carries everything ----------
   Kav Geo has no Latin. The Hebrew page already sets every Latin run in the Adobe kit's Futura
   (`.ltr`), so the English page is that same Futura throughout: same geometric family, same kit,
   no new font. The kit has 300 / 400 / 700; the 600 the headings ask for resolves to 700, exactly
   as Kav Geo resolves 600 to its Bold. Jost (loaded on this page) catches the kit if it fails. */
:root {
  --font-latin:   "futura-100-hebrew", "Futura PT", "Jost", "Futura", "Century Gothic", sans-serif;
  --font-display: var(--font-latin);
  --font-bar:     var(--font-latin);
}
/* the kit's own Hebrew is a serif (round 21), so the one Hebrew word here, the switch, gets Kav Geo */
.he { font-family: "Kav Geo", "IBM Plex Sans Hebrew", "Arial Hebrew", sans-serif; }

/* the accessibility menu's readable-font switch, restated: the :root rule above is later in the cascade */
:root.a11y-font {
  --font-latin:   "Arial", system-ui, sans-serif;
  --font-display: "Arial", system-ui, sans-serif;
  --font-bar:     "Arial", system-ui, sans-serif;
  --font-serif:   "Arial", system-ui, sans-serif;
}

/* ---------- the hero: the sentence keeps its place on the film ----------
   Two columns from 60rem: the grid runs right to left so the sentence takes the right-hand column
   and the lede the left, as on the Hebrew page. The sentence block hugs the right edge and its
   lines start flush left inside it, which is how an English lockup reads. */
@media (min-width: 60rem) {
  .hero__body { direction: rtl; }
  .hero__body > * { direction: ltr; }
  .hero__ask { justify-items: end; }
}
/* Phones: the Hebrew size (8vw) was measured so the longest Hebrew line fills 0.87 of the screen.
   "Ads built to sell." is 8.2 px wide per px of type (with the 1.06 pulse), so the same 0.87 is
   10.5vw. app.js still scales the title down if a line would not fit. */
@media (max-width: 39.99rem) {
  .hero__line { font-size: clamp(1.5rem, 10.5vw, 3.4rem); }
}

/* ---------- the wall: each tag sits at the start corner, which is now the left ---------- */
.frame__tag { right: auto; left: 0; }

/* ---------- logos: the row now hangs from the left edge ----------
   The Hebrew keyframes run from +one copy to 0 because an RTL row overflows to the left. Here the
   row overflows to the right, so the loop runs from 0 to -one copy. Both rows keep the Hebrew
   page's directions of travel: the first slides left, the second right. */
@media (prefers-reduced-motion: no-preference) {
  :root:not(.motion-off) .with__marquee__row { animation-name: with-marquee-ltr; }
  :root:not(.motion-off) .with__marquee__row--reverse { animation-name: with-marquee-ltr-reverse; }
}
@keyframes with-marquee-ltr { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--marquee-shift))); } }
@keyframes with-marquee-ltr-reverse { from { transform: translateX(calc(-1 * var(--marquee-shift))); } to { transform: translateX(0); } }

/* ---------- the opening bar fills the way the line is read ---------- */
.loader__bar i { transform-origin: 0 50%; }

/* ---------- the menu: the close word sits where the Menu button is ---------- */
.menu__close { left: auto; right: var(--gutter); }
.player__close { left: auto; right: max(var(--gutter), env(safe-area-inset-right, 0px)); }   /* same corner as the menu close on this page */

/* ---------- the two floating buttons keep the Hebrew page's corners ----------
   WhatsApp bottom left, accessibility bottom right: in the mirrored corners the WhatsApp pill
   would sit on the last line of the hero sentence. */
.wa-dock { inset-inline-end: auto; left: var(--space-md); }
.wa { padding-inline: 1.25em 1.05em; }   /* the glyph side keeps the wider padding, as in Hebrew */
.a11y { inset-inline-start: auto; right: 0; }
.a11y__button, .a11y__panel { inset-inline-start: auto; right: var(--space-md); }
/* at the very bottom the two buttons sat on the copyright line and on "Back to top"; the footer now
   ends below them at every width (phones already had this room) */
.sitefoot { padding-bottom: calc(var(--space-xl) + 3.5rem); }
