/* 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); }
/* the link carries the OTHER language's direction, so its own "inline-start" points the wrong way: push it by the page's side */
html[dir="ltr"] .masthead__in > .lang { margin: 0 0 0 auto; }
html[dir="rtl"] .masthead__in > .lang { margin: 0 auto 0 0; }
/* 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__brand { display: block; margin-bottom: 0.1em; font-size: 2.15em; line-height: 0.95; }
[dir="rtl"] .hero__brand { text-align: right; } /* the name is Latin, the line still starts on the right */
.hero__acts { display: flex; flex-wrap: wrap; gap: var(--space-sm); 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__acts { margin-top: var(--space-md); }
  /* under the name, the two lines cross the white cabs of the lorries: a shadow keeps them readable */
  .shot--hero .hero__title { text-shadow: 0 1px 2px oklch(14% 0.03 258 / 0.6), 0 3px 20px oklch(14% 0.03 258 / 0.75), 0 0 44px oklch(14% 0.03 258 / 0.5); }
  .hero__brand { font-size: 1.9em; }
  /* the two buttons on one line when they fit: the word before the number is kept for screen readers only */
  .hero__acts { gap: var(--space-xs); width: 100%; }
  .hero__acts .btn { flex: 1 1 auto; justify-content: center; padding-inline: var(--space-sm); }
  .hero__word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .shot__card.hero p.hero__lede { text-shadow: 0 1px 2px oklch(14% 0.03 258 / 0.7), 0 2px 14px oklch(14% 0.03 258 / 0.8); }
}

/* 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 road at dusk; night falls on it and the four numbers stand in that night */
.film::after { content: ""; position: absolute; inset: auto 0 0 0; z-index: 5; height: 8svh; pointer-events: none; background: linear-gradient(0deg, var(--night) 0, transparent 100%); }
.film-live .film::after { height: 30svh; background: linear-gradient(0deg, var(--night) 0, color-mix(in oklch, var(--night) 55%, transparent) 45%, transparent 100%); }

/* ---------- the blocks drawn at night ----------
   2026-11-19: the owner picked the numbers band, the calculator and the depots as he saw them on the boards, at night
   like the film. The products grid and the footer stay on the sand. Each night block reads its colours from the names
   below; take the class "night" off a block and it falls back to the sand page. */
.facts, .calc, .depots { --s-bg: transparent; --s-fg: var(--color-ink); --s-fg-2: var(--color-ink-2); --s-panel: var(--color-paper-2); --s-line: var(--color-rule); --s-solid: var(--color-ink); --s-on-solid: var(--color-paper); --s-accent: var(--color-accent-2); --s-bad: var(--color-error); color: var(--s-fg); }
.night { --s-bg: oklch(17% 0.03 258); --s-fg: var(--color-on-field); --s-fg-2: var(--color-on-field-2); --s-panel: oklch(22.5% 0.036 258); --s-line: oklch(37% 0.04 258); --s-solid: var(--color-on-field); --s-on-solid: oklch(17% 0.03 258); --s-accent: oklch(71% 0.17 48); --s-bad: oklch(72% 0.17 27); --color-focus: var(--color-on-field); background: var(--grain), var(--s-bg); background-blend-mode: overlay, normal; }
.night ::selection { background: color-mix(in oklab, var(--s-accent) 40%, transparent); color: var(--s-fg); }
html:not(.js) .js-only { display: none; }
.keep { display: inline-block; }
.btn--wa { --wa: oklch(62% 0.16 152); border-color: var(--wa); background: var(--wa); color: oklch(16% 0.04 152); }
.btn--wa:hover { --wa: oklch(67% 0.16 152); border-color: var(--wa); background: var(--wa); }
.btn--line { border-color: var(--s-line, currentColor); background: transparent; color: inherit; }
.btn--line:hover { border-color: currentColor; background: color-mix(in oklch, currentColor 9%, transparent); }

/* ---------- four numbers, where the film ends ---------- */
.facts { padding-block: var(--space-xl) var(--space-3xl); }
.facts__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.fact { padding-inline: var(--space-xl) var(--space-md); border-inline-start: 1px solid var(--s-line); }
.fact:first-child { padding-inline-start: 0; border-inline-start: 0; }
.fact__pic { width: 150px; height: 45px; color: var(--s-fg-2); }
.fact__pic .on { fill: currentColor; }
.fact__pic .off { stroke-dasharray: 3 4; }
.fact__num { margin-top: var(--space-md); font: 700 clamp(4.75rem, 8.6vw, 9.5rem)/1.04 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fact__num small { font-size: 0.46em; }
.fact__unit { margin-top: var(--space-sm); color: var(--s-accent); font: 700 var(--text-xl)/1.15 var(--font-display); }
.fact__text { margin-top: var(--space-xs); max-width: 22ch; color: var(--s-fg-2); font-size: var(--text-sm); line-height: 1.4; }
@media (prefers-reduced-motion: no-preference) {
  .fact { transition: opacity 0.7s var(--ease-out), translate 0.7s var(--ease-out); }
  .fact:nth-child(2) { transition-delay: 0.09s; }
  .fact:nth-child(3) { transition-delay: 0.18s; }
  .fact:nth-child(4) { transition-delay: 0.27s; }
  .will-wake:not(.is-in) .fact { opacity: 0; translate: 0 24px; }
  /* the six open days light up one after the other */
  .fact__pic .on { transition: fill-opacity 0.3s var(--ease-out) calc(0.7s + var(--n, 0) * 0.11s); }
  .will-wake:not(.is-in) .fact__pic .on { fill-opacity: 0; transition: none; }
}
@media (max-width: 48rem) {
  .facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-xl); }
  .fact { padding-inline: var(--space-md) 0; }
  .fact:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
  .fact__num { font-size: clamp(4rem, 21vw, 6.5rem); }
  .fact__pic { width: 120px; height: 36px; }
}

/* ---------- how much do you need: a lorry that loads as you type, and the message that asks for it ---------- */
.section-title { font: 700 var(--text-section)/0.95 var(--font-display); }
.calc { padding-block: var(--space-3xl) var(--section-gap-s); border-top: 1px solid var(--s-line); }
.calc__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); align-items: start; }
.calc__ask { grid-column: 1 / span 5; }
.calc__show { grid-column: 6 / span 7; }
.calc .section-title { font-size: clamp(2.75rem, 3vw + 1rem, 4.5rem); }
.calc__lede { margin-top: var(--space-sm); max-width: 28em; color: var(--s-fg-2); font-size: var(--text-lead); }
.calc__form { display: grid; gap: var(--space-sm); margin-top: var(--space-xl); }
.calc__form > label { color: var(--s-fg-2); font-size: var(--text-sm); font-weight: 600; }
.calc__row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; gap: var(--space-sm); padding-bottom: var(--space-sm); border-bottom: 2px solid var(--s-fg); }
/* the field has no box of its own: the line under the row is its focus mark */
.calc__row:has(.calc__qty:focus-visible) { border-bottom-color: var(--s-accent); box-shadow: 0 2px 0 var(--s-accent); }
.calc__row:has(.calc__qty[aria-invalid="true"]) { border-bottom-color: var(--s-bad); box-shadow: 0 2px 0 var(--s-bad); }
/* a quantity that cannot be read: the last good answer steps back and cannot be sent */
.calc__grid:has([aria-invalid="true"]) :is(.calc__show, .ask__text, [data-send]) { opacity: 0.35; }
.calc__grid:has([aria-invalid="true"]) [data-send] { pointer-events: none; }
.step { width: 56px; height: 56px; padding: 0 0 0.12em; border: 1px solid var(--s-line); border-radius: 50%; background: transparent; color: var(--s-fg); font: 400 2rem/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), scale var(--dur-micro) var(--ease-out); }
.step:hover { border-color: var(--s-fg-2); background: var(--s-panel); }
.step:active { scale: 0.93; }
.calc__qty { width: 100%; min-height: 72px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--s-fg); font: 700 clamp(3.5rem, 6vw, 5.75rem)/1 var(--font-display); font-variant-numeric: tabular-nums; text-align: center; outline: 0; }
.calc__help { min-height: 1lh; color: var(--s-fg-2); font-size: var(--text-sm); }
.calc__row:has([aria-invalid="true"]) + .calc__help { color: var(--s-bad); }
.seg { position: relative; display: flex; gap: var(--space-xs); margin: 0; padding: 0; border: 0; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-sm); border: 1px solid var(--s-line); border-radius: var(--radius-input); color: var(--s-fg-2); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.seg label:hover { background: var(--s-panel); color: var(--s-fg); }
.seg input:checked + label { border-color: var(--s-solid); background: var(--s-solid); color: var(--s-on-solid); font-weight: 600; }
.seg input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.presets { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.presets button { min-height: 44px; padding: 0 var(--space-md); border: 1px dashed var(--s-line); border-radius: var(--radius-pill); background: transparent; color: var(--s-fg-2); font-size: var(--text-sm); font-weight: 600; cursor: pointer; transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.presets button:hover { border-style: solid; border-color: var(--s-accent); color: var(--s-fg); }
/* the lorry */
.load { position: relative; padding: var(--space-lg) var(--space-lg) var(--space-md); border-radius: 4px; background: var(--s-panel); }
.load__truck { width: 100%; height: auto; overflow: visible; }
[dir="rtl"] .load__truck { scale: -1 1; } /* the lorry drives the way the page reads */
.load__more { position: absolute; inset: var(--space-md) var(--space-lg) auto auto; margin: 0; color: var(--s-accent); font: 700 var(--text-xl)/1 var(--font-display); }
[dir="rtl"] .load__more { inset: var(--space-md) auto auto var(--space-lg); }
.load__key { margin-top: var(--space-xs); color: var(--s-fg-2); font-size: var(--text-xs); }
.tk-ground { fill: none; stroke: var(--s-line); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 11; }
.tk-steel { fill: var(--s-fg-2); }
.tk-dark { fill: var(--s-line); }
.tk-cab { fill: var(--s-fg); }
.tk-glass { fill: oklch(34% 0.07 256); }
.tk-light { fill: var(--s-accent); }
.tk-wheel { fill: oklch(13% 0.02 258); stroke: var(--s-fg-2); stroke-width: 3; }
.tk-hub { fill: var(--s-fg-2); }
.sk { fill: transparent; stroke: color-mix(in oklch, var(--s-fg-2) 30%, transparent); stroke-width: 1; stroke-dasharray: 3 3; }
.sk.on, .sk.part { fill: var(--color-kraft); stroke: oklch(50% 0.06 70); stroke-dasharray: none; }
.sk.part { fill-opacity: var(--part, 0.5); }
@media (prefers-reduced-motion: no-preference) {
  .sk.on, .sk.part { animation: sack-in 0.42s var(--ease-out) backwards; animation-delay: calc(var(--d, 0) * 14ms); }
}
@keyframes sack-in { from { opacity: 0; translate: 0 -30px; } }
/* the figures */
.calc__result { margin-top: var(--space-lg); }
.calc__for { margin-bottom: var(--space-sm); color: var(--s-fg-2); font-weight: 600; }
.calc__for span { color: var(--s-fg); }
.figures { display: grid; grid-template-columns: 1.5fr 1.25fr 1fr 1.25fr 1fr; gap: var(--space-md); margin: 0; }
.figures > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding-top: var(--space-sm); border-top: 2px solid var(--s-line); }
.figures > div:first-child { border-top-color: var(--s-accent); }
.figures dd { margin: 0; font: 700 clamp(1.625rem, 2.1vw, 2.5rem)/1 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.figures dd small { display: block; margin-top: 2px; color: var(--s-fg-2); font: 400 var(--text-xs)/1.2 var(--font-body); }
.figures dt { margin-top: var(--space-2xs); color: var(--s-fg-2); font-size: var(--text-xs); line-height: 1.3; }
/* the message */
.ask { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.75fr) auto; gap: var(--space-lg); align-items: end; padding: var(--space-lg); border: 1px solid var(--s-line); border-radius: 4px; background: var(--s-panel); }
.ask h3 { font: 700 var(--text-xl)/1 var(--font-display); }
.ask__bubble { max-width: none; margin-top: var(--space-sm); padding: var(--space-sm) var(--space-md); border-radius: 12px; border-end-start-radius: 2px; background: oklch(93% 0.06 150); color: oklch(22% 0.03 150); line-height: 1.45; }
.ask__town label { display: block; color: var(--s-fg-2); font-size: var(--text-sm); font-weight: 600; }
.ask__town input { width: 100%; min-height: 52px; margin-top: var(--space-2xs); padding: 0 var(--space-sm); border: 1px solid var(--s-line); border-radius: var(--radius-input); background: transparent; color: var(--s-fg); }
.ask__town input::placeholder { color: color-mix(in oklch, var(--s-fg-2) 62%, transparent); opacity: 1; }
.ask__town input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.ask__acts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
.ask__acts .btn { justify-content: center; min-height: 52px; }
.calc__note { grid-column: 1 / -1; max-width: none; color: var(--s-fg-2); font-size: var(--text-sm); }
html:not(.js) .ask { grid-template-columns: minmax(0, 1fr); justify-items: start; }
@media (max-width: 60rem) {
  .calc__ask, .calc__show { grid-column: 1 / -1; }
  .ask { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
}
@media (max-width: 40rem) {
  .calc { padding-top: var(--space-2xl); }
  .calc__form { margin-top: var(--space-lg); }
  .load { padding: var(--space-md) var(--space-sm) var(--space-sm); }
  .load__more { position: static; margin-bottom: var(--space-sm); font-size: var(--text-lg); }
  .ask__acts .btn { padding-inline: var(--space-sm); }
  .figures { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: var(--space-md); }
  .figures > div { grid-column: span 2; }
  .figures > div:nth-child(-n + 2) { grid-column: span 3; }
  .ask { padding: var(--space-md); gap: var(--space-md); }
}

/* ---------- what each depot sells ---------- */
/* 2026-11-21: a mix of the owner's four boards. A depot bay (painted steel wall, concrete base, floor in the sun)
   with one shelf per depot and a price button on every product; under it, on the same floor seen from above,
   the drawn building site and the tick table that share the numbers 1 to 6.
   The bay's backdrop is drawn here, in two swappable layers (--bay-wall-art, --bay-floor-art): a Blender render of
   the empty depot can take their place later. Light comes from the upper left, like the shadows baked in the pictures. */
.goods {
  --bay-wall: oklch(38% 0.13 254); --bay-floor: oklch(84% 0.03 82); --bay-dado: oklch(61% 0.022 250); --card: oklch(93% 0.026 84);
  --steel: oklch(40% 0.06 45); --pic-h: 19rem; --shelf-top: var(--space-lg); --horizon: calc(var(--shelf-top) + var(--pic-h) * 0.6);
  --bay-wall-art:
    linear-gradient(oklch(17% 0.03 258) 0, oklch(17% 0.03 258 / 0.55) 3rem, oklch(17% 0.03 258 / 0) 11rem),
    radial-gradient(70rem 34rem at 16% 62%, oklch(100% 0 0 / 0.16), transparent 70%),
    linear-gradient(96deg, transparent 50%, oklch(15% 0.06 258 / 0.38) 100%),
    repeating-linear-gradient(90deg, oklch(100% 0 0 / 0.075) 0 2px, transparent 2px 13px, oklch(0% 0 0 / 0.17) 13px 16px, transparent 16px 30px),
    repeating-linear-gradient(90deg, transparent 0 238px, oklch(0% 0 0 / 0.14) 238px 240px);
  --bay-floor-art:
    linear-gradient(oklch(21% 0.03 255 / 0.42) 0, oklch(21% 0.03 255 / 0) 3.25rem),
    linear-gradient(104deg, transparent 0 9%, oklch(99% 0.03 88 / 0.5) 12% 31%, transparent 35% 48%, oklch(99% 0.03 88 / 0.34) 51% 63%, transparent 67% 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 400' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%231c2331' stroke-opacity='.17' stroke-width='2' vector-effect='non-scaling-stroke'%3E%3Cpath d='M500-300-420 400M500-300-50 400M500-300 320 400M500-300 690 400M500-300 1060 400M500-300 1430 400M0 62H1000M0 188H1000'/%3E%3C/g%3E%3C/svg%3E") 50% 0 / 100% 100% no-repeat,
    linear-gradient(oklch(76% 0.032 80) 0, var(--bay-floor) 30%, oklch(86% 0.03 84) 100%);
  position: relative; color: var(--color-ink);
  /* the same slab seen from above: joints every 22rem and one band of sun */
  background:
    linear-gradient(112deg, transparent 0 30%, oklch(99% 0.03 88 / 0.3) 33% 50%, transparent 53% 100%),
    linear-gradient(90deg, oklch(21% 0.03 255 / 0.11) 0 2px, transparent 2px) 6rem 0 / 22rem 100%,
    linear-gradient(oklch(21% 0.03 255 / 0.11) 0 2px, transparent 2px) 0 4rem / 100% 22rem,
    var(--grain), var(--bay-floor);
  background-blend-mode: normal, normal, normal, overlay, normal;
}
/* the bay's floor ends on a kerb: one line and its shadow on the slab below */
.gbay { position: relative; isolation: isolate; z-index: 1; border-bottom: 3px solid oklch(62% 0.03 80); box-shadow: 0 1.75rem 2rem -1.25rem oklch(21% 0.03 255 / 0.42); padding-top: var(--space-3xl); color: var(--color-on-field); --color-focus: var(--color-on-field); background: var(--bay-wall-art), var(--grain), var(--bay-wall); background-blend-mode: normal, normal, normal, normal, normal, overlay, normal; }
/* two shafts of afternoon sun on the sheets */
.gbay::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(113deg, transparent 0 6%, oklch(99% 0.04 88 / 0.11) 8% 20%, transparent 22% 31%, oklch(99% 0.04 88 / 0.07) 33% 40%, transparent 42% 100%); }
.gbay__top { position: relative; z-index: 1; }
.gbay__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-md); align-items: end; }
.gbay__head .section-title { grid-column: 1 / span 6; }
.gbay__head p { grid-column: 8 / span 5; color: var(--color-on-field-2); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin-top: var(--space-xl); border: 2px solid var(--color-on-field); }
.tab { display: flex; align-items: baseline; gap: var(--space-md); min-height: 48px; padding: 1rem 1.75rem 1.15rem; border: 0; border-radius: 0; background: transparent; color: var(--color-on-field); text-align: start; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.tab b { font: 700 2.4rem/1 var(--font-display); }
.tab small { font-size: var(--text-sm); }
.tab:hover { background: oklch(100% 0 0 / 0.1); }
.tab[aria-pressed="true"] { background: var(--color-on-field); color: var(--color-ink); }
.tab:focus-visible { outline: 2px solid var(--color-on-field); outline-offset: 4px; }

.shelf { position: relative; z-index: 1; padding-top: var(--shelf-top); }
.js .goods[data-at="lag"] .shelf--bou, .js .goods[data-at="bou"] .shelf--lag { display: none; }
.shelf::before { content: ""; position: absolute; inset: var(--horizon) 0 0 0; z-index: -1; background: var(--bay-floor-art); }
/* the concrete base of the wall */
.shelf::after { content: ""; position: absolute; inset: calc(var(--horizon) - 2.5rem) 0 auto 0; z-index: -1; height: 2.5rem; background: linear-gradient(oklch(100% 0 0 / 0.22) 0 2px, transparent 2px), linear-gradient(100deg, oklch(100% 0 0 / 0.12) 0 40%, oklch(0% 0 0 / 0.1) 100%), var(--bay-dado); }
.shelf > .container { position: relative; }
.shelf__wall { position: absolute; z-index: -1; inset-inline-end: var(--gutter); top: 0.25rem; margin: 0; max-width: none; color: oklch(100% 0 0 / 0.11); font: 700 min(13vw, 9.25rem)/1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; pointer-events: none; user-select: none; }
:lang(ar) .shelf__wall { font-size: min(11vw, 7rem); line-height: 1.35; letter-spacing: 0; }
.shelf__name { display: flex; align-items: baseline; gap: var(--space-md); margin-bottom: var(--space-sm); color: var(--color-on-field); font: 700 2.4rem/1 var(--font-display); }
.shelf__name small { font: 400 var(--text-sm)/1.2 var(--font-body); }
.js .shelf__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shelf__flag { position: absolute; z-index: 1; inset-inline-start: var(--gutter); top: 0; padding: 0.5rem 1rem 0.6rem; background: var(--color-accent); color: var(--color-accent-ink); font: 700 1.15rem/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
html:not(.js) .shelf__flag { position: static; display: inline-block; margin-bottom: var(--space-sm); }
.shelf__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.shelf--lag .shelf__row { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
.it { display: grid; grid-template-rows: var(--pic-h) auto; min-width: 0; }
.it__pic { display: flex; align-items: flex-end; justify-content: center; gap: 5%; height: var(--pic-h); padding: 0 4% calc(var(--pic-h) * 0.06); }
.it__pic img { flex: 0 1 auto; width: auto; height: auto; min-width: 0; max-width: 100%; max-height: 88%; object-fit: contain; }
.it--bois .it__pic img { max-height: 40%; } .it--pvc .it__pic img, .it--fil .it__pic img { max-height: 60%; } .it--treillis .it__pic img { max-height: 80%; } .it--rond-a-beton .it__pic img { max-height: 94%; }
.it--big .it__pic .pal { max-width: 54%; max-height: 98%; } .it--big .it__pic .sac { max-width: 30%; max-height: 56%; }
.it__txt { display: flex; flex-direction: column; align-items: center; padding-top: var(--space-md); color: var(--color-ink); text-align: center; }
.it h4 { margin: 0; font: 700 var(--text-title)/1 var(--font-display); }
:lang(ar) .it h4 { line-height: 1.3; }
.it p { max-width: 30ch; margin-top: var(--space-2xs); color: var(--color-ink-2); font-size: var(--text-sm); }
.it p small { display: block; margin-top: var(--space-3xs); color: var(--color-muted); font-size: var(--text-xs); }
.it__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs); margin-top: auto; padding-top: var(--space-sm); }
.btn--ask { --wa: oklch(62% 0.16 152); min-height: 44px; padding: 0 var(--space-md); border-color: oklch(40% 0.12 152); background: oklch(100% 0 0 / 0.4); color: oklch(26% 0.09 152); font-size: var(--text-sm); }
@media (hover: hover) { .btn--ask:hover { border-color: var(--wa); background: var(--wa); color: oklch(16% 0.04 152); } }
.btn--ask:active { border-color: var(--wa); background: var(--wa); color: oklch(16% 0.04 152); }
.btn--ask svg { width: 18px; height: 18px; }
.ask__short { display: none; }
.it--big .it__txt { align-items: stretch; text-align: start; }
.it--big p { max-width: none; font-size: var(--text-md); }
.units { display: flex; margin: var(--space-sm) 0 0; padding: 0; list-style: none; border: 1px solid var(--color-ink-2); background: oklch(100% 0 0 / 0.28); }
.units li { flex: 1; padding: 0.5rem 0.8rem 0.6rem; color: var(--color-ink-2); font-size: var(--text-sm); line-height: 1.25; }
.units li + li { border-inline-start: 1px solid var(--color-ink-2); }
.units b { display: block; color: var(--color-ink); font: 700 clamp(1.2rem, 1.6vw, 1.6rem)/1.15 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.it--big .it__acts { justify-content: flex-start; gap: var(--space-sm); padding-top: var(--space-md); }
.it--big .btn { min-height: 48px; padding: 0 var(--space-md); font-size: var(--text-md); }
.shelf__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-md) var(--space-xl); align-items: center; margin-top: var(--space-xl); padding: var(--space-lg) 0 var(--space-2xl); border-top: 1px solid oklch(21% 0.03 255 / 0.28); color: var(--color-ink); --color-focus: var(--color-ink); }
.shelf__row { --color-focus: var(--color-ink); }
.shelf__not { max-width: none; color: var(--color-ink-2); }
.shelf__not b { color: var(--color-ink); font-weight: 600; }
.shelf__see { min-height: 44px; margin-inline-start: var(--space-xs); padding: 0; border: 0; background: none; color: var(--color-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em; cursor: pointer; }
.shelf__acts { display: flex; gap: var(--space-sm); }
.shelf__acts .btn { font-variant-numeric: tabular-nums; }
.shelf__msg { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--space-md); max-width: none; }
.shelf__msg-lab { flex: none; font: 700 1.3rem/1.1 var(--font-display); }
.bubble { padding: 0.65rem 1rem 0.7rem; border-radius: 14px 14px 14px 3px; background: oklch(90% 0.09 150); color: oklch(22% 0.05 152); font-size: var(--text-sm); line-height: 1.4; }
[dir="rtl"] .bubble { border-radius: 14px 14px 3px 14px; }

/* the products come down onto the floor when the bay comes on screen, and again when the depot changes */
@keyframes it-in { from { opacity: 0; translate: 0 -1.25rem; } to { opacity: 1; translate: 0 0; } }
.js .goods.will-wake .it__pic img { opacity: 0; }
.js .goods.is-in .it__pic img { opacity: 1; animation: it-in 0.6s var(--ease-out) backwards; animation-delay: calc(var(--i) * 80ms); }
@media (prefers-reduced-motion: reduce) { .js .goods.will-wake .it__pic img { opacity: 1; } .js .goods.is-in .it__pic img { animation: none; } }

/* the drawing and the table, two boards laid on the slab */
.goods__more { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl) var(--gap-columns); align-items: stretch; padding-block: var(--space-3xl) var(--section-gap); }
.plate, .who { display: flex; flex-direction: column; margin: 0; border: 2px solid var(--color-ink); background: var(--card); box-shadow: 0 1.75rem 2.25rem -1.5rem oklch(21% 0.03 255 / 0.5); }
.plate__title, .who h3 { padding: var(--space-md) var(--space-lg) calc(var(--space-md) + 2px); border-bottom: 2px solid var(--color-ink); font: 700 var(--text-2xl)/1 var(--font-display); }
:lang(ar) :is(.plate__title, .who h3) { line-height: 1.3; }
.site { flex: 1; width: 100%; height: auto; background: oklch(89% 0.03 84); }
.plate figcaption { padding: 0.6rem var(--space-lg) 0.7rem; border-top: 2px solid var(--color-ink); color: var(--color-ink-2); font-size: var(--text-xs); }
.st-soil { fill: oklch(76% 0.055 76); } .st-hatch { stroke: var(--color-ink); stroke-opacity: 0.28; stroke-width: 2; } .st-speck { fill: var(--color-ink); fill-opacity: 0.28; }
.st-conc { fill: oklch(78% 0.018 85); stroke: var(--color-ink); stroke-width: 2.5; }
.st-bar, .st-mesh, .st-tie { fill: none; stroke: var(--steel); stroke-linecap: round; }
.st-bar { stroke-width: 3.5; } .st-bar--cage { stroke-width: 4; } .st-mesh, .st-tie { stroke-width: 2.5; }
.st-knot { fill: oklch(93% 0.01 85); stroke: var(--color-ink); stroke-width: 1.6; }
.st-wood { fill: oklch(80% 0.08 80); stroke: var(--color-ink); stroke-width: 2.5; } .st-grain { fill: none; stroke: var(--color-ink); stroke-opacity: 0.5; stroke-width: 1.5; }
.st-prop-out, .st-prop { fill: none; stroke-linecap: round; } .st-prop-out { stroke: var(--color-ink); stroke-width: 7; } .st-prop { stroke: oklch(80% 0.08 80); stroke-width: 3.5; }
.st-pipe-out, .st-pipe, .st-pipe-shine { fill: none; stroke-linejoin: round; } .st-pipe-out { stroke: var(--color-ink); stroke-width: 20; } .st-pipe { stroke: oklch(72% 0.015 250); stroke-width: 15; } .st-pipe-shine { stroke: oklch(100% 0 0 / 0.45); stroke-width: 3; }
.st-pipe-mouth { fill: oklch(55% 0.02 250); stroke: var(--color-ink); stroke-width: 2; }
.st-sack { fill: oklch(85% 0.04 82); stroke: var(--color-ink); stroke-width: 2.2; } .st-sack-band { stroke: var(--color-accent); stroke-width: 2.2; }
.st-ground { fill: none; stroke: var(--color-ink); stroke-width: 3; } .st-ink { stroke: var(--color-ink); stroke-width: 2; }
.st-word { fill: var(--color-ink); font: 700 30px var(--font-display); }
.gpin__end { fill: var(--color-ink); }
.gpin__dot { fill: var(--color-accent); stroke: oklch(97% 0.02 85); stroke-width: 3; transform-box: fill-box; transform-origin: 50% 50%; transition: scale var(--dur-short) var(--ease-out), fill var(--dur-short) var(--ease-out); }
.gpin__n { fill: var(--color-accent-ink); font: 700 25px "Antonio", sans-serif; pointer-events: none; }
.js .plate.will-wake .gpin { opacity: 0; }
.js .plate.is-in .gpin { opacity: 1; transition: opacity 0.4s var(--ease-out) calc(var(--n) * 110ms); }
.stock { flex: 1; width: 100%; border-collapse: collapse; }
.stock thead th { padding: 0.75rem 0.4rem 0.8rem; font: 700 1.45rem/1 var(--font-display); text-align: center; }
:lang(ar) .stock thead th { font-size: 1.15rem; line-height: 1.3; }
.stock [data-col] { width: 6.5rem; border-inline-start: 1px solid var(--color-rule); text-align: center; vertical-align: middle; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.stock tbody tr { border-top: 1px solid var(--color-rule); }
.stock tbody tr:first-child { border-top: 2px solid var(--color-ink); }
.stock tbody th { padding: 0; font-weight: 400; text-align: start; transition: background-color var(--dur-short) var(--ease-out); }
.rowh { display: flex; align-items: center; gap: var(--space-sm); min-height: 4.1rem; padding: 0.55rem var(--space-sm) 0.55rem var(--space-lg); }
.gn { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--color-accent); color: var(--color-accent-ink); font: 700 1.25rem/1 "Antonio", sans-serif; transition: scale var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.gn--none { visibility: hidden; }
.nm b { display: block; font: 700 1.4rem/1.1 var(--font-display); }
:lang(ar) .nm b { font-size: 1.2rem; line-height: 1.35; }
.nm small { display: block; color: var(--color-ink-2); font-size: var(--text-xs); line-height: 1.3; }
.stock td { padding: 0.35rem 0.3rem; }
.dot { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--color-ink); color: var(--card); vertical-align: middle; }
.dot svg { width: 1.25rem; height: 1.25rem; }
.yes small { display: block; margin-top: 2px; font-size: 0.7rem; font-weight: 600; line-height: 1.15; }
.dash { display: inline-block; width: 1.25rem; height: 2px; background: var(--color-rule); vertical-align: middle; }
.stock td.tel a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-sm); font-weight: 600; }
/* the chosen depot's column stands out; a row and its number in the drawing answer each other */
.js .goods[data-at="lag"] .stock thead [data-col="lag"], .js .goods[data-at="bou"] .stock thead [data-col="bou"] { background: var(--color-ink); color: var(--card); }
.js .goods[data-at="lag"] .stock tbody [data-col="lag"], .js .goods[data-at="bou"] .stock tbody [data-col="bou"] { background: oklch(55% 0.17 38 / 0.13); }
.goods:has(tr[data-n="1"]:hover) .gpin--1 .gpin__dot, .goods:has(tr[data-n="2"]:hover) .gpin--2 .gpin__dot, .goods:has(tr[data-n="3"]:hover) .gpin--3 .gpin__dot,
.goods:has(tr[data-n="4"]:hover) .gpin--4 .gpin__dot, .goods:has(tr[data-n="5"]:hover) .gpin--5 .gpin__dot, .goods:has(tr[data-n="6"]:hover) .gpin--6 .gpin__dot, .gpin:hover .gpin__dot { scale: 1.3; fill: var(--color-ink); }
.goods:has(.gpin--1:hover) tr[data-n="1"] th, .goods:has(.gpin--2:hover) tr[data-n="2"] th, .goods:has(.gpin--3:hover) tr[data-n="3"] th,
.goods:has(.gpin--4:hover) tr[data-n="4"] th, .goods:has(.gpin--5:hover) tr[data-n="5"] th, .goods:has(.gpin--6:hover) tr[data-n="6"] th, .stock tbody tr[data-n]:hover th { background: oklch(55% 0.17 38 / 0.13); }
.goods:has(.gpin--1:hover) tr[data-n="1"] .gn, .goods:has(.gpin--2:hover) tr[data-n="2"] .gn, .goods:has(.gpin--3:hover) tr[data-n="3"] .gn,
.goods:has(.gpin--4:hover) tr[data-n="4"] .gn, .goods:has(.gpin--5:hover) tr[data-n="5"] .gn, .goods:has(.gpin--6:hover) tr[data-n="6"] .gn, .stock tbody tr[data-n]:hover .gn { scale: 1.15; background: var(--color-ink); }

@media (max-width: 64rem) {
  .it:not(.it--big) .ask__long { display: none; } .it:not(.it--big) .ask__short { display: inline; }
  .goods__more { grid-template-columns: minmax(0, 1fr); }
  .gbay__head .section-title, .gbay__head p { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .goods { --pic-h: 9.5rem; --shelf-top: 0px; --cell-floor: calc(var(--pic-h) * 0.6); }
  .gbay { padding-top: 3rem; }
  .gbay__head { row-gap: var(--space-xs); }
  .gbay__head p { font-size: var(--text-sm); }
  .tabs { margin-top: var(--space-lg); }
  .tab { display: block; padding: 0.7rem 0.9rem 0.85rem; }
  .tab b { display: block; font-size: 1.85rem; }
  .tab small { display: block; margin-top: 2px; font-size: var(--text-xs); }
  .shelf { padding-top: var(--space-lg); }
  .shelf::before, .shelf::after, .shelf__wall { display: none; }
  .shelf__flag { inset-inline-start: var(--gutter); top: calc(-1 * var(--space-sm)); font-size: 1rem; padding: 0.4rem 0.7rem 0.45rem; }
  /* each product stands in its own piece of the bay */
  .shelf__row, .shelf--lag .shelf__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin-inline: calc(-1 * var(--gutter)); }
  .it { border-top: 1px solid oklch(100% 0 0 / 0.16); background: linear-gradient(transparent 0 calc(var(--cell-floor) - 0.9rem), var(--bay-dado) calc(var(--cell-floor) - 0.9rem) var(--cell-floor), oklch(77% 0.032 80) var(--cell-floor), var(--bay-floor) calc(var(--cell-floor) + 2.5rem)); }
  .it:nth-child(even) { border-inline-start: 1px solid oklch(21% 0.03 255 / 0.2); }
  .it--big, .shelf--lag .it--bois { grid-column: 1 / -1; border-inline-start: 0; }
  .shelf--lag .it--pvc { border-inline-start: 1px solid oklch(21% 0.03 255 / 0.2); }
  .it--big { --pic-h: 11rem; }
  .shelf--lag .it--bois { --pic-h: 7.5rem; --cell-floor: 3.6rem; }
  .shelf--lag .it--bois .it__pic img { max-height: 62%; }
  .it__txt { padding: var(--space-xs) var(--space-sm) var(--space-md); }
  .it__acts { padding-top: var(--space-xs); }
  .it h4 { font-size: 1.4rem; }
  .it p { font-size: var(--text-xs); }
  .it--big .it__txt { padding-inline: var(--gutter); }
  .it--big h4 { font-size: 1.9rem; }
  .it--big p { font-size: var(--text-sm); }
  .units li { padding: 0.4rem 0.6rem 0.5rem; font-size: var(--text-xs); } .units b { font-size: 1.3rem; }
  .it--big .it__acts .btn { flex: 1 1 auto; justify-content: center; padding-inline: var(--space-sm); font-size: var(--text-sm); }
  .shelf--lag .it--bois .ask__long { display: inline; } .shelf--lag .it--bois .ask__short { display: none; }
  .shelf__foot { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); margin: 0 calc(-1 * var(--gutter)); padding: var(--space-md) var(--gutter) var(--space-lg); border-top-color: oklch(21% 0.03 255 / 0.2); background: var(--bay-floor); }
  .shelf__not { font-size: var(--text-sm); }
  .shelf__see { display: block; margin-inline-start: 0; }
  .shelf__acts { flex-wrap: wrap; }
  .shelf__acts .btn { flex: 1 1 auto; justify-content: center; padding-inline: var(--space-sm); }
  .shelf__msg { display: block; }
  .shelf__msg-lab { display: block; margin-bottom: var(--space-xs); }
  .bubble { display: block; }
  .goods__more { gap: var(--space-lg); padding-block: var(--space-xl) var(--space-2xl); }
  .plate__title, .who h3 { padding: var(--space-sm) var(--space-md) calc(var(--space-sm) + 2px); font-size: var(--text-xl); }
  .plate figcaption { padding-inline: var(--space-md); }
  .stock thead th { font-size: 1.1rem; }
  :lang(ar) .stock thead th { font-size: 0.95rem; }
  .stock [data-col] { width: 4.9rem; }
  .rowh { gap: var(--space-xs); min-height: 3.1rem; padding: 0.3rem var(--space-xs) 0.3rem var(--space-sm); }
  .gn { width: 1.9rem; height: 1.9rem; font-size: 1.05rem; }
  .nm b { font-size: 1.15rem; } :lang(ar) .nm b { font-size: 1.05rem; }
  .nm small { font-size: 0.72rem; }
  .dot { width: 1.9rem; height: 1.9rem; } .dot svg { width: 1.05rem; height: 1.05rem; }
  .yes small { font-size: 0.64rem; }
}
@media (prefers-reduced-motion: reduce) { .js .plate.will-wake .gpin { opacity: 1; } }

.gbay__all { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-on-field); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.gbay__all::after { content: "\00a0\2192"; } :lang(ar) .gbay__all::after { content: "\00a0\2190"; }

/* ---------- the depots and the map ----------
   The map is drawn by tools/map.mjs: the north of Algeria with the two depots, the bay of Algiers enlarged and the
   whole country in a corner. It keeps the page's two colours, the sky for the sea and the sand for the land. */
.depots { padding-block: var(--section-gap) var(--section-gap); }
.depots__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); align-items: start; }
.depots__head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-sm) var(--space-xl); }
.depots__head p { color: var(--s-fg-2); font-size: var(--text-lead); }
.map { grid-column: 1 / span 7; margin: 0; }
.map__frame { position: relative; overflow: hidden; border-radius: 4px; box-shadow: 0 0 0 1px var(--s-line); color: var(--color-ink); }
.map svg { width: 100%; height: auto; }
.map figcaption { margin-top: var(--space-sm); color: var(--s-fg-2); font-size: var(--text-xs); }
.map .sea { fill: var(--color-sky); }
.map .depth { fill: none; stroke: oklch(66% 0.11 246); stroke-linejoin: round; }
.map .depth--4 { opacity: 0.1; }
.map .depth--3 { opacity: 0.13; }
.map .depth--2 { opacity: 0.18; }
.map .depth--1 { opacity: 0.4; }
.map .grid { fill: none; stroke: oklch(100% 0 0 / 0.1); stroke-width: 1; }
.map .grid--land { stroke: oklch(21% 0.03 255 / 0.07); }
.map .land { fill: var(--color-paper); stroke: oklch(42% 0.05 75); stroke-width: 1; stroke-linejoin: round; }
/* the line between the depots: short dashes that walk from the coast to the south */
.map .link { fill: none; stroke: var(--color-accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.9 1.6; }
.map .leader { fill: none; stroke: oklch(100% 0 0 / 0.6); stroke-width: 1.2; stroke-dasharray: 3 5; }
.map .zoombox { fill: oklch(100% 0 0 / 0.16); stroke: var(--color-ink); stroke-width: 1.2; }
.map .pin__dot { fill: var(--color-accent); stroke: oklch(100% 0 0); stroke-width: 3; transform-box: fill-box; transform-origin: center; transition: scale var(--dur-short) var(--ease-out); }
.map .pin__ring { fill: none; stroke: var(--color-accent); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.map .ref { fill: var(--color-ink); stroke: oklch(100% 0 0); stroke-width: 2; }
.map .inset__shadow { fill: oklch(15% 0.04 258 / 0.4); translate: 0 5px; filter: blur(7px); }
.map .inset__frame { fill: none; stroke: oklch(100% 0 0); stroke-width: 3; }
.map .inset--loc .sea { fill: var(--color-sky-2); }
.map .inset--loc .land { stroke-width: 0.6; }
.map .inset--loc .pin__dot { stroke-width: 1.2; }
.map .near { fill: oklch(76% 0.03 80); stroke: oklch(56% 0.03 80); stroke-width: 0.4; }
.map .here { fill: oklch(55% 0.17 38 / 0.22); stroke: var(--color-accent); stroke-width: 1.4; }
.map .bay { fill: none; stroke: var(--color-ink); stroke-width: 1.4; stroke-dasharray: 4 5; }
.map .scale { fill: none; stroke: var(--color-ink); stroke-width: 2.5; }
.map .north { fill: var(--color-ink); }
@media (prefers-reduced-motion: no-preference) {
  .depots.is-in .map .link { animation: walk 1.5s linear infinite; }
  .depots.is-in .map .pin__ring { animation: ping 2.8s var(--ease-out) infinite; }
  .depots.is-in .map .pin__ring--2 { animation-delay: 1.4s; }
}
@keyframes walk { to { stroke-dashoffset: -2.5; } }
@keyframes ping { 0% { opacity: 0.9; scale: 1; } 100% { opacity: 0; scale: 3.2; } }
/* a card under the pointer or the keyboard shows its own pin */
.depots:has([data-depot="lag"]:is(:hover, :focus-within)) .pin--lag .pin__dot,
.depots:has([data-depot="bou"]:is(:hover, :focus-within)) .pin--bou .pin__dot { scale: 1.45; fill: oklch(100% 0 0); stroke: var(--color-accent); }
/* the names are HTML over the drawing, so they keep their size on a phone; the map is not mirrored in Arabic */
.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-xs); line-height: 1; white-space: nowrap; }
.map__label--depot { font: 700 clamp(1.25rem, 2.1vw, 2rem)/1 var(--font-display); }
.map__label--lag { translate: -50% 0.75em; }
.map__label--bou { translate: 0.45em -12%; }
.map__label--sea { translate: -50% -50%; color: oklch(100% 0 0 / 0.78); font-size: var(--text-sm); font-style: italic; letter-spacing: 0.3em; text-transform: uppercase; }
:lang(ar) .map__label--sea { font-style: normal; letter-spacing: 0; }
.map__label--tick { padding: 2px 4px; border-radius: 2px; background: oklch(86% 0.045 80 / 0.8); color: var(--color-ink-2); font-size: 0.6875rem; font-variant-numeric: tabular-nums; direction: ltr; }
.map__label--lat { translate: -100% -50%; }
.map__label--lon { translate: -50% -100%; }
.map__label--crow { translate: 0.9em -50%; color: var(--color-accent-2); font: 700 var(--text-lg)/1 var(--font-display); }
.map__label--crow small { display: block; margin-top: 4px; color: var(--color-ink-2); font: 400 var(--text-xs)/1 var(--font-body); }
.map__label--inset { padding: 4px 7px 5px; background: var(--color-ink); color: var(--color-paper); font-size: 0.6875rem; font-weight: 600; }
.map__label--zalger { translate: -50% 0.95em; font-weight: 600; }
.map__label--zbou { translate: -50% 0.95em; font-weight: 700; }
.map__label--bay { translate: -50% -210%; padding: 2px 5px; border-radius: 2px; background: oklch(86% 0.045 80 / 0.86); font-weight: 600; }
.map__label--scale { translate: -50% -100%; }
.map__label--north { translate: -50% -100%; font-weight: 700; }
/* the two cards */
.depot-cards { grid-column: 8 / span 5; display: grid; gap: var(--space-lg); align-content: start; }
.depot { padding: var(--space-lg); border: 1px solid var(--s-line); border-radius: 4px; background: var(--s-panel); transition: border-color var(--dur-short) var(--ease-out); }
.depot:is(:hover, :focus-within) { border-color: var(--s-accent); }
.depot h3 { font: 700 clamp(2.5rem, 3.4vw, 3.75rem)/0.95 var(--font-display); }
.depot__where { margin-top: var(--space-2xs); color: var(--s-fg-2); }
.depot__goods { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--space-md) 0 0; padding: 0; list-style: none; }
.depot__goods li { padding: 0.28em 0.7em 0.32em; border: 1px solid var(--s-line); font-size: var(--text-sm); font-weight: 600; line-height: 1.2; }
.depot__acts { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); }
.depot__acts .btn { padding-inline: var(--space-md); font-variant-numeric: tabular-nums; }
.depot__more { max-width: none; margin-top: var(--space-sm); color: var(--s-fg-2); font-size: var(--text-sm); }
.depot__more a, .depot__more b { color: var(--s-fg); }
@media (max-width: 60rem) {
  .map, .depot-cards { grid-column: 1 / -1; }
  .depot-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
}
@media (max-width: 40rem) {
  .depots { padding-block: var(--section-gap); }
  .map__label--tick, .map__label--bay, .map__label--north { display: none; }
  .map__label--sea { font-size: 0.625rem; letter-spacing: 0.14em; }
  .map__label--depot { font-size: 1.125rem; }
  .map__label--inset, .map__label--zalger, .map__label--zbou, .map__label--scale { font-size: 0.625rem; }
  .map__label--inset { padding: 2px 4px 3px; }
  .map__label--zalger { translate: -50% 0.8em; }
  .map__label--zbou { display: none; } /* no room for two names in the small bay; the big name is right beside it */
  .map__label--lag { translate: 0.9em -50%; } /* beside its pin: under it, the name left the map on a narrow phone */
  .map__label--crow { font-size: var(--text-md); }
  .depot { padding: var(--space-md); }
  .depot__acts .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- 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); } }
