/* Hallmark · shape: one set from top to bottom (a pinned stage runs sack to pallet to truck, then the yard and the depots stand on the same sand) · genre: editorial · theme: custom · job: visit · idea: "A set lit by Laghouat's afternoon sun, where one 50 kg sack of AWTED becomes a full truck as you scroll." · vibe: "afternoon sun, honest weight, depot-wall lettering"
 * paper: oklch(86% 0.045 80) · accent: oklch(55% 0.17 38) · display: Antonio · body: IBM Plex Sans · hero: the set at the start of the run, 50 kg painted in cream on the sky wall, the sack turned to the sun, the headline in the middle of the sand floor · nav: wordmark, four anchors and the Arabic link on the wall (a second row on phones), scrolls away · footer: a darker sand band, the wordmark, one line, the language link, credits and the illustration note · imagery: the product built in 3D (live run, stills of the run and the yard from the same code, data-kind product), a Natural Earth map · signature: the load run, the wall's number turning 50 kg, 2,2 t, 39,6 t
 * axes: mid/display-condensed/chromatic-blue · posture: Committed (the sky field carries the run, the calculator's wall and the yard band; orange is the one signal) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V5 · weakest: E, the pinned run must keep its words on the floor band of a 1366 x 599 screen; captions hold under the horizon, clear the subject's foot, and the horizon wipes them as they rise */
/* Hallmark · hero-review: fix · 5 findings · 3 resolved 2 partial (no depot photograph yet, asked of the owner; the sack stands apart so the headline clears its foot) */
/* Hallmark · waive 39b · input.calc__qty is the page's one text field · the quantity is typed at the size of the four figures it drives, so the question and its answers read as one row */
/* Hallmark · answered F6 · the wall numerals are painted lettering, one figure at a time and never a column, so they keep proportional figures; the calculator's figures are tabular */
/* Hallmark · dismissed render · the file:// pass blocks only the font preload by browser rule; the 127.0.0.1 captures show Antonio, IBM Plex and IBM Plex Sans Arabic (index.html and ar.html) */
/* Hallmark · ar.html · the same set seen in a mirror (scene, camera, sun and the sack's print), wall figures fitted to one width, Arabic copy not yet proofed by a native reader */
/* Hallmark · finish-review: fix · 8 findings · 6 resolved 2 partial (the ciment beat stays a short text block in the still layout; the yard's painted line ties to the cement story but is not unique to BLIMAC) · idea gap: the calculator paints the visitor's count on its own wall, the yard paints its heading, the whole page shares the set's grained floor */
/* 2026-11-18 · the pinned three.js run and the yard band are replaced by a scroll film (193 Blender frames on a canvas, src/film.js) that opens on the depot photo, and by a "what each depot sells" grid · ar.html uses the same pictures, not a mirror · the notes above describe the page before this change (backup: .work/backup-20261118-pre-film) */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --horizon-ratio: 0.6; /* the same line as --horizon, as a number for calc() */
  --masthead-h: 4.5rem;
  --card-w: 36rem;
  /* the wall lettering, measured in the display face (scratch tool measure.mjs): "50 kg" is 2.1em wide (each weight
     carries its own width as --w), one character of a count 0.44em; the ink of "50 kg" ends 1em below the top of its
     short line box, the ink of "200 sacs" 0.13em below its line box (the Arabic page sets its own: its words are
     wider and deeper) */
  --numeral-w: 2.1;
  --numeral-foot: 1em;
  --char-w: 0.44;
  --big-foot: 0.13em;
  /* the grain of a rendered wall and a swept floor: grey noise, laid over the set's colours with overlay */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0.26'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E");
}
@media (max-aspect-ratio: 1/1) { :root { --text-numeral: min(clamp(7rem, 40vw, 13rem), calc((100vw - 2 * var(--gutter)) / var(--numeral-w))); } }

body { font-size: var(--text-md); }
/* the whole page stands on the set's swept floor: the same grain, so no seam where a set ends */
body { background: var(--grain), var(--color-paper); background-blend-mode: overlay, normal; }
.skip { position: absolute; inset-inline-start: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }
.set { background: var(--grain), linear-gradient(var(--color-sky) 0 var(--horizon), var(--color-sand) var(--horizon) 100%); background-blend-mode: overlay, normal; }

/* ---------- masthead, painted on the wall ---------- */
.masthead { position: absolute; inset: 0 0 auto 0; z-index: var(--z-raised); color: var(--color-on-field); --color-focus: var(--color-on-field); }
.masthead__in { display: flex; align-items: center; gap: var(--space-xl); height: var(--masthead-h); }
.wordmark { color: inherit; font: 700 1.875rem/1 var(--font-display); text-decoration: none; }
.nav ul { display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.nav a, .lang { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-weight: 600; text-decoration: none; text-underline-offset: 0.3em; }
.nav a { font-size: var(--text-sm); }
.nav a:hover, .lang:hover { text-decoration: underline; }
.lang { margin-inline-start: auto; font-family: var(--font-arabic); }
/* phones: the anchors take a second row under the wordmark */
@media (max-width: 48rem) {
  :root { --masthead-h: 6.5rem; }
  .masthead__in { flex-wrap: wrap; align-content: center; column-gap: var(--space-lg); row-gap: 0; }
  .nav { order: 3; flex-basis: 100%; }
  .nav ul { gap: var(--space-md); }
  /* the narrowest phones: the four anchors keep one row, spread so the gaps stay wider than a word space */
  @media (max-width: 22.5rem) { .nav ul { justify-content: space-between; gap: var(--space-sm); } }
}

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-accent); border-radius: var(--radius-input); background: var(--color-accent); color: var(--color-accent-ink); font: 600 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent-2); border-color: var(--color-accent-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:disabled, .btn[aria-disabled="true"], .calc__qty:disabled, .seg input:disabled + label { opacity: 0.45; cursor: not-allowed; }
.fill { padding: 0 0.25em; border: 1px dashed color-mix(in oklch, var(--color-muted) 70%, transparent); border-radius: 3px; color: var(--color-muted); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- the film: one sack, a pallet, every product, a truck, the road ----------
   193 pictures rendered in Blender, played by the scroll on a canvas (src/film.js). The words are HTML over it.
   html.film-live = script on and motion allowed. Without it each shot is its own picture, one under the other. */
.film { --night: oklch(17% 0.03 258); --veil: oklch(14% 0.03 258); position: relative; background: var(--night); color: var(--color-on-field); --color-focus: var(--color-on-field); }
.film__canvas, .film__photo, .film__shade, .film__progress, .film__labels { display: none; }
.shot { position: relative; display: grid; min-height: min(100svh, 48rem); overflow: hidden; isolation: isolate; }
.shot__still { position: absolute; inset: 0; z-index: -2; }
.shot__still img { width: 100%; height: 100%; object-fit: cover; }
.shot--hero .shot__still img { object-position: 30% 92%; }
/* the words stand on the free side of the picture, over a shade that keeps them readable */
.shot::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in oklch, var(--veil) 78%, transparent) 0, color-mix(in oklch, var(--veil) 45%, transparent) 34%, transparent 62%); }
.shot > .container { display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--masthead-h) + var(--space-lg)) var(--space-2xl); }
.shot__card { width: min(100%, 31rem); }
.shot__num { margin: 0 0 0.14em; font: 700 clamp(5.5rem, min(15vw, 26svh), 13rem)/0.92 var(--font-display); white-space: nowrap; }
.shot__card h2 { font: 700 var(--text-section)/0.98 var(--font-display); }
.shot__card p:not(.shot__num) { margin-top: var(--space-sm); max-width: 40ch; color: var(--color-on-field-2); font-size: var(--text-lead); line-height: 1.45; }
/* the road stop lies on bright sand: full white words with a soft dark halo */
#route .shot__card :is(h2, p, a) { color: var(--color-on-field); text-shadow: 0 1px 14px oklch(22% 0.04 60 / 0.6); }
.shot__names { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); margin: var(--space-md) 0 0; padding: 0; list-style: none; font: 700 var(--text-xl)/1.2 var(--font-display); }
.shot__more { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--space-md); color: inherit; font-weight: 600; text-underline-offset: 0.3em; }
/* the hero */
.hero__title { max-width: 12em; color: inherit; font: 700 var(--text-display)/1.02 var(--font-display); }
.shot__card.hero p.hero__lede { margin-top: var(--space-md); max-width: 30em; color: var(--color-on-field); }
.hero .btn { margin-top: var(--space-lg); }
.shot--hero .shot__card { width: min(100%, 44rem); }
/* upright screens: the subject stands in the upper part, the words under it */
@media (max-aspect-ratio: 4/5) {
  .shot::before { background: linear-gradient(0deg, color-mix(in oklch, var(--veil) 90%, transparent) 0, color-mix(in oklch, var(--veil) 62%, transparent) 30%, transparent 58%), linear-gradient(180deg, color-mix(in oklch, var(--veil) 55%, transparent) 0, transparent 22%); }
  .shot > .container { justify-content: flex-end; padding-bottom: max(var(--space-xl), 7svh); }
  .shot__num { font-size: clamp(4.5rem, 24vw, 8rem); }
  .shot--hero .shot__still img { object-position: 62% 100%; }
  /* the hero as a poster: the headline on the sky, the sack clear in the middle, the call at the foot */
  .shot--hero > .container { justify-content: flex-start; padding-top: calc(var(--masthead-h) + var(--space-sm)); }
  .shot--hero .shot__card { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
  .shot__card.hero p.hero__lede { margin-top: auto; }
  .hero .btn { margin-top: var(--space-md); }
}

/* live: the stage is pinned; every shot's words lie over the same canvas and the script fades them by the film's time */
.film-live .film__stage { position: sticky; top: 0; height: 100lvh; overflow: hidden; }
.film-live .film__spacer { margin-top: -100lvh; pointer-events: none; }
.film-live .film__canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s linear; }
.film-live .is-playing .film__canvas { opacity: 1; }
/* the owner's depot photo, laid exactly as the film's first frame was matched to it (the 3D sack on the photo's sack) */
.film__photo { --photo: url("../img/hero-1920.webp"); }
@media (min-width: 1500px) { .film__photo { --photo: url("../img/hero-2560.webp"); } }
@media (min-width: 2300px) { .film__photo { --photo: url("../img/hero-3840.webp"); } }
.film-live .film__photo { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 1; background: var(--night) var(--photo) no-repeat 50% 50% / 100% 100%; will-change: opacity; } /* film.js lays it on the film's frame */
.film-live .film__shade { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, color-mix(in oklch, var(--veil) 70%, transparent) 0, color-mix(in oklch, var(--veil) 36%, transparent) 32%, transparent 58%), linear-gradient(180deg, color-mix(in oklch, var(--veil) 66%, transparent) 0, transparent 24%); }
.film-live .shot { position: absolute; inset: 0 0 auto 0; z-index: 3; height: 100svh; min-height: 0; overflow: visible; opacity: 0; pointer-events: none; will-change: opacity, transform; }
.film-live .shot--hero { opacity: 1; }
.film-live .shot::before, .film-live .shot__still { display: none; }
.film-live .shot.is-on .shot__card, html:not([data-film]) .film-live .shot--hero .shot__card { pointer-events: auto; }
.film-live .shot--stock > .container { justify-content: flex-start; padding-top: calc(var(--masthead-h) + var(--space-md)); }
.film-live .shot--stock .shot__names { display: none; } /* the names stand on the products themselves */
.film-live .film__labels { display: block; position: absolute; inset: 0; z-index: 3; margin: 0; padding: 0; list-style: none; opacity: 0; pointer-events: none; }
.film__labels li { position: absolute; margin-top: -14px; translate: -50% -100%; padding: 0.3em 0.6em 0.34em; background: color-mix(in oklch, var(--color-on-field) 94%, transparent); color: var(--color-ink); font: 700 clamp(0.95rem, 1.25vw, 1.3rem)/1 var(--font-display); white-space: nowrap; }
.film__labels li::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 14px; margin-left: -1px; background: color-mix(in oklch, var(--color-on-field) 94%, transparent); }
.film-live .film__progress { display: block; position: absolute; inset: auto 0 0 0; z-index: 4; height: 3px; background: var(--color-accent); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-aspect-ratio: 4/5) {
  .film-live .film__photo { background-size: cover; background-position: 62% 100%; }
  .film-live .film__shade { background: linear-gradient(0deg, color-mix(in oklch, var(--veil) 92%, transparent) 0, color-mix(in oklch, var(--veil) 60%, transparent) 30%, transparent 56%), linear-gradient(180deg, color-mix(in oklch, var(--veil) 60%, transparent) 0, transparent 22%); }
  .film-live .shot--stock > .container { justify-content: flex-end; padding-top: 0; }
  .film__labels li { font-size: 0.875rem; }
}
/* the film ends on the sand of the road; the page goes on from that sand */
.film-live .film::after { content: ""; position: absolute; inset: auto 0 0 0; z-index: 5; height: 16svh; pointer-events: none; background: linear-gradient(0deg, var(--color-paper) 0, transparent 100%); }

/* ---------- 1 tonne, 20 sacs ---------- */
.section-title { font: 700 var(--text-section)/0.95 var(--font-display); }
.calc .section-title { font-size: clamp(3rem, 4vw + 1rem, 6rem); } /* the rule itself is the section's one idea */
.calc { padding-block: var(--section-gap-s); }
/* the wall: the visitor's own count of sacks painted on it, the way the run paints 50 kg;
   the size follows the line's length (--chars, set by the script) so 2 000 000 sacs still fits */
.calc__wall { background: var(--grain), var(--color-sky); background-blend-mode: overlay, normal; color: var(--color-on-field); }
.calc__big { margin: 0; padding-block: var(--space-2xl) calc(var(--big-foot) + var(--space-lg)); font: 700 min(var(--text-numeral), calc((min(100vw, var(--container)) - 2 * var(--gutter)) / (var(--chars, 8) * var(--char-w))))/0.78 var(--font-display); white-space: nowrap; user-select: none; }
.calc__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); align-items: start; padding-top: var(--space-xl); }
.calc__head { grid-column: 1 / span 6; }
.calc__form { grid-column: 8 / span 5; display: grid; gap: var(--space-md); }
.calc__form label[for="qty"] { font-weight: 600; }
.calc__qty { width: 100%; min-height: 64px; padding: 0 0 var(--space-2xs); border: 0; border-bottom: 2px solid var(--color-ink); border-radius: 0; background: transparent; color: var(--color-ink); font: 600 var(--text-figure)/1 var(--font-display); font-variant-numeric: tabular-nums; outline: 2px solid transparent; outline-offset: 4px; }
.calc__qty:focus-visible { outline-color: var(--color-focus); }
.calc__qty[aria-invalid="true"] { border-bottom-color: var(--color-error); }
.calc__help { min-height: 1lh; font-size: var(--text-sm); color: var(--color-ink-2); }
.seg { position: relative; display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: 0; padding: 0; border: 0; }
.seg legend { padding: 0; margin-bottom: var(--space-xs); font-weight: 600; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-md); border: 1px solid var(--color-ink-2); border-radius: var(--radius-input); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.seg label:hover { background: var(--color-paper-2); }
.seg input:checked + label { background: var(--color-ink); color: var(--color-paper); }
.seg input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 2px; }
html:not(.js) .calc__form { display: none; }
.calc__result { grid-column: 1 / -1; }
.calc__for { margin-bottom: var(--space-md); font-weight: 600; }
.calc__note { margin-top: var(--space-lg); color: var(--color-ink-2); }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); margin: 0; }
.figures > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding-top: var(--space-md); border-top: 2px solid var(--color-ink); }
.figures dd { margin: 0; font: 600 var(--text-figure)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.figures dd small { font: 400 var(--text-md)/1 var(--font-body); }
.figures dt { margin-top: var(--space-xs); color: var(--color-ink-2); font-size: var(--text-sm); }
@media (max-width: 60rem) {
  .calc__head, .calc__form { grid-column: 1 / -1; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- what each depot sells ---------- */
.goods { padding-block: var(--section-gap) 0; }
.goods__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-md); align-items: end; }
.goods__head .section-title { grid-column: 1 / span 7; }
.goods__head p { grid-column: 9 / span 4; color: var(--color-ink-2); }
.goods__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); margin: var(--space-2xl) 0 0; padding: 0; list-style: none; }
.good__pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-sky); }
.good__pic img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.9s var(--ease-out); }
.good:hover .good__pic img { scale: 1.04; }
.good h3 { margin-top: var(--space-md); font: 700 var(--text-title)/1 var(--font-display); }
.good p { margin-top: var(--space-xs); color: var(--color-ink-2); }
.good__where { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: var(--space-sm) 0 0; padding: 0; list-style: none; }
.good__where li { padding: 0.28em 0.7em 0.32em; border: 1px solid var(--color-ink-2); font-size: var(--text-sm); font-weight: 600; line-height: 1.2; }
@media (max-width: 60rem) {
  .goods__head .section-title, .goods__head p { grid-column: 1 / -1; }
  .goods__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 36rem) { .goods__list { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } }
@media (prefers-reduced-motion: reduce) { .good__pic img { transition: none; } }

/* ---------- the depots and the map ---------- */
.depots { padding-block: var(--section-gap-l) var(--section-gap); }
.depots__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); }
.depots .section-title { grid-column: 1 / -1; }
.map { grid-column: 1 / span 7; margin: 0; }
.map__frame { position: relative; }
.map svg { width: 100%; height: auto; }
.map figcaption { margin-top: var(--space-sm); color: var(--color-ink-2); font-size: var(--text-sm); }
.map .sea { fill: var(--color-sky); }
.map .land { fill: var(--color-paper-2); stroke: var(--color-ink-2); stroke-width: 1.2; stroke-linejoin: round; }
.map .near { fill: var(--color-paper-3); stroke: var(--color-ink-2); stroke-width: 0.8; }
.map .grid { fill: none; stroke: var(--color-sky-2); stroke-width: 1; }
.map .pin { fill: var(--color-accent); stroke: var(--color-paper); stroke-width: 3; }
.map .ref { fill: var(--color-ink); }
.map .scale { fill: none; stroke: var(--color-ink); stroke-width: 3; }
/* the names are HTML over the drawing, so they keep their size on a phone */
.map__labels { position: absolute; inset: 0; pointer-events: none; }
.map__label { position: absolute; left: var(--x); top: var(--y); color: var(--color-ink); font-size: var(--text-sm); line-height: 1; white-space: nowrap; }
.map__label--depot { font: 700 var(--text-title)/1 var(--font-display); }
.map__label--below { translate: -50% 0.55em; }
.map__label--below-end { translate: 0.35em 0.45em; }
.map__label--below-start { translate: calc(-100% - 0.5em) 0.6em; }
.map__label--above-start { translate: calc(-100% - 0.3em) calc(-100% - 0.35em); color: var(--color-on-field); font-size: var(--text-md); }
.map__label--sea { translate: -50% 0; color: var(--color-on-field-2); }
.map__label--scale { translate: 0 -100%; }
.depot-cards { grid-column: 9 / span 4; display: grid; gap: var(--space-2xl); align-content: start; }
.depot h3 { font: 700 var(--text-section)/0.95 var(--font-display); }
.depot p { margin-top: var(--space-xs); }
.depot__where { color: var(--color-ink-2); }
.depot .depot__stock { margin-top: var(--space-sm); max-width: 34ch; }
.phones { margin: var(--space-md) 0 0; padding: 0; list-style: none; }
.phones a { display: inline-flex; align-items: center; min-height: 48px; color: var(--color-ink); font: 600 var(--text-2xl)/1 var(--font-display); font-variant-numeric: tabular-nums; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.phones a:hover { color: var(--color-accent-2); }
.depot__mail { font-size: var(--text-sm); }
@media (max-width: 60rem) {
  .map, .depot-cards { grid-column: 1 / -1; }
  .depots .section-title { order: -2; }
  .depot-cards { order: -1; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
}

/* ---------- footer ---------- */
.foot { padding-block: var(--space-2xl) var(--space-xl); background: var(--grain), var(--color-paper-2); background-blend-mode: overlay, normal; }
.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-lg) var(--gap-columns); align-items: start; }
.foot__mark { grid-column: span 3; font: 700 2.25rem/1 var(--font-display); }
.foot__text { grid-column: span 6; }
.foot__lang { grid-column: span 3; justify-self: end; }
.foot__lang a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-arabic); font-size: var(--text-lg); }
.foot__credits { grid-column: 1 / -1; padding-top: var(--space-md); border-top: 1px solid var(--color-rule); color: var(--color-ink-2); font-size: var(--text-sm); }
@media (max-width: 48rem) {
  .foot__mark, .foot__text, .foot__lang { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- the Arabic page (ar.html, dir="rtl") ---------- */
/* the same two families: Antonio keeps the figures and the Latin names (AWTED, BLIMAC, CEM), IBM Plex Sans Arabic
   sets the words; the layout is written in logical properties, so it mirrors by itself */
:root:lang(ar) {
  --font-display: "Antonio", "IBM Plex Sans Arabic", sans-serif;
  --font-body: "IBM Plex Sans", "IBM Plex Sans Arabic", ui-sans-serif, system-ui, sans-serif;
  --numeral-w: 2.5; /* "50 كلغ" */
  --numeral-foot: 1.21em; /* the tail of غ */
  --char-w: 0.52;
  --big-foot: 0.37em; /* the bowl of س */
}
body:lang(ar) { line-height: 1.75; }
/* Arabic letters rise and fall further than Antonio's capitals: the heads get the room they need */
:lang(ar) :is(h1, h2, h3) { line-height: 1.3; }
:lang(ar) .hero__title { font-size: calc(var(--text-display) * 0.8); line-height: 1.25; }
/* the phrase moves to the next line whole, and only wraps inside itself on a screen too narrow for it */
.hero__keep { display: inline-block; }
/* the film's pictures are the same on both pages (a mirror would turn the sack's print), so on wide screens the Arabic
   words keep the picture's free side, the left, and read from the right edge of their own column */
@media (min-aspect-ratio: 4/5) {
  [dir="rtl"] .shot > .container { align-items: flex-end; }
  [dir="rtl"] .shot::before, [dir="rtl"] .film-live .film__shade { scale: 1 1; }
}
[dir="rtl"] .film-live .film__progress { transform-origin: 100% 50%; }
/* the Arabic unit is a wide word: a smaller number keeps "39,6 طن" on the screen */
:lang(ar) .shot__num { font-size: clamp(4rem, min(10.5vw, 19svh), 9rem); line-height: 1; }
@media (max-aspect-ratio: 4/5) { :lang(ar) .shot__num { font-size: clamp(3.5rem, 19vw, 6.5rem); } }
@media (min-aspect-ratio: 4/5) { [dir="rtl"] .shot--hero .shot__card { width: min(100%, 34rem); } }
