/* ============================================================
   RD-WALL — redesign item 5 (owner-approved 2026-11-09)
   "Our Trusted Clients" photo section on every page that has it.
   Design ported from the final prototype's Deliveries marquee wall
   (part-del.html #delMq): warm off-white paper sheet on the dark
   page, blue-dot eyebrow, giant condensed uppercase title, two
   full-bleed rows of real customer photos moving in OPPOSITE
   directions. (The prototype's black "DELIVERED" chips were removed
   by the owner 2026-11-11.)
   Owner's motion changes: the rows glide slowly and smoothly, and
   the section PINS (position:sticky, native scroll, no hijacking)
   for about 2–3 scrolls while the rows move, then releases.
   Text and data-i18n keys are the site's own (dna-h2 = eyebrow,
   dna-note = giant title, dna-kicker + dna-seeall = foot).
   Owner 2026-11-11: while the wall holds the page, a small "Keep
   scrolling ↓" pill with a thin progress line shows at the bottom
   of the pinned stage (.rdw-hint, made by the script).
   Linked ?v=rd4. Behaviour: assets/js/rd-wall.r726.js.
   ============================================================ */

/* Archivo (variable) is pending the owner's OK to add the file; until it exists
   the site's own Bricolage renders. The title is fitted by JS, so either works. */
@font-face { font-family: "Archivo"; src: url(../fonts/archivo-variable.woff2) format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

.rdw {
  /* ---- PIN LENGTH: how far the visitor scrolls while the wall holds on screen.
     120vh ≈ 2–3 mouse-wheel bursts or phone swipes. The one constant to tune. ---- */
  --rdw-pin: 120vh;

  --rdw-paper: #f3f2ee;
  --rdw-ink: #050505;
  --rdw-ink2: #2b2b2b;
  --rdw-ink3: #3a3a38;
  --rdw-hair: rgba(5,5,5,.14);
  --rdw-card: #e2e0da;
  --rdw-blue: #1e5eff;           /* text/interactive blue on paper (AA on #f3f2ee) */
  --rdw-dot: #3d8bff;            /* the prototype's bright blue, decorative only */
  --rdw-wide: "Archivo", "Bricolage", "Bricolage Grotesque", system-ui, sans-serif;

  /* sizes — static defaults; rd-wall.r700.js fits them to the screen */
  --rdw-hd: 74px;                                  /* fixed site header */
  --rdw-ch: clamp(190px, 20.5vw, 262px);           /* card height (card is 4:5) */
  --rdw-cw: calc(var(--rdw-ch) * .8);
  --rdw-gap: 14px;
  --rdw-t: clamp(40px, 8.6vw, 118px);              /* giant title */
  --rdw-dock: 0px;                                 /* room the fixed back-to-top dock takes at the bottom (JS) */

  position: relative;
  background: var(--rdw-paper);
  color: var(--rdw-ink);
  color-scheme: light;
  border-radius: 30px;
}
.rdw *, .rdw *::before, .rdw *::after { box-sizing: border-box; }
/* The wall is measured synchronously by rd-wall.r700.js, so its layout boxes must never transition
   (proto.css's reduced-motion block gives every element a .01ms "all" transition). */
.rdw, .rdw .rdw-pin, .rdw .rdw-stage, .rdw .rdw-head, .rdw .rdw-lab, .rdw .rdw-title, .rdw .rdw-rows,
.rdw .rdw-row, .rdw .rdw-track, .rdw .rdw-card, .rdw .rdw-foot, .rdw .rdw-kick, .rdw .rdw-hint, .rdw .rdw-hint-l b { transition: none !important; }

.rdw-wrap { width: min(1200px, 92vw); margin-inline: auto; }

/* ---- stage: static by default (no JS / reduced motion); pinned when JS runs ---- */
.rdw-stage {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(64px, 11svh, 120px) clamp(48px, 8svh, 96px);
}
.rdw.rdw-move .rdw-pin { height: calc(100svh + var(--rdw-pin)); }
.rdw.rdw-move .rdw-stage {
  position: sticky; top: 0;
  height: 100svh; min-height: 0;
  padding-block: calc(var(--rdw-hd) + clamp(10px, 2.2svh, 22px)) 68px;   /* foot inside: clear the fixed back-to-top dock */
}
/* until the first fit (rd-wall.r700.js runs it when the wall comes near) the default sizes may not fit the
   pinned stage; centred, they would stick out above the section, e.g. into the bottom of Home's first screen,
   and move when the fit lands (a layout shift). Top-aligned, the overflow goes down, out of sight. */
.rdw.rdw-move:not(.rdw-fitd) .rdw-stage { justify-content: flex-start; }
/* foot outside: the photo rows end at the bottom of the stage, so they keep clear of the back-to-top dock */
.rdw.rdw-move.rdw-fo .rdw-stage { padding-bottom: max(clamp(12px, 2.6svh, 26px), var(--rdw-dock)); }

/* ---- eyebrow: the section's h2, small, with the blue dot (heading kept for SEO) ---- */
.rdw .rdw-lab {
  margin: 0;
  font-family: var(--rdw-wide); font-weight: 600; font-stretch: 125%;
  font-size: 15px; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase;
  color: var(--rdw-ink);
}
.rdw .rdw-lab::before {
  content: ""; display: inline-block; vertical-align: .12em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--rdw-dot);
  margin-inline-end: 10px;
}
.rdw .rdw-lab em.ac {            /* keep the markup, drop the gradient accent */
  font-style: normal; color: inherit;
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}

/* ---- giant condensed two-line title: the section's own "Every delivery joins the wall" ---- */
.rdw .rdw-title {
  margin: 12px 0 0;
  font-family: var(--rdw-wide); font-weight: 900; font-stretch: 62%;
  font-size: var(--rdw-t); line-height: .88; letter-spacing: -.005em;
  text-transform: uppercase; text-wrap: balance;
  overflow-wrap: break-word;
  color: var(--rdw-ink);
}
.rdw.rdw-measure .rdw-title { overflow-wrap: normal; word-break: normal; }
:lang(pa) .rdw .rdw-title, :lang(ar) .rdw .rdw-title { line-height: 1.18; letter-spacing: 0; }
/* Archivo is Latin only, yet it would still supply the space between Punjabi / Arabic words, and its condensed
   space (.11em at 62% width) runs the device font's wide words together. Without Archivo the space comes from
   Bricolage (.22em), the word gap these titles have on the live site. Chinese has no spaces between words. */
:lang(pa) .rdw .rdw-title, :lang(ar) .rdw .rdw-title { font-family: "Bricolage", "Bricolage Grotesque", system-ui, sans-serif; }
:lang(zh) .rdw .rdw-title { line-height: 1.06; letter-spacing: 0; }
:lang(ar) .rdw .rdw-lab, :lang(ar) .rdw .rdw-kick, :lang(pa) .rdw .rdw-lab, :lang(pa) .rdw .rdw-kick { letter-spacing: 0; }

/* ---- two full-bleed rows of real delivery photos ---- */
.rdw-rows { margin-top: clamp(18px, 3svh, 32px); direction: ltr; }
.rdw-row { overflow: hidden; height: var(--rdw-ch); }
.rdw-row + .rdw-row { margin-top: var(--rdw-gap); }
.rdw-track { display: flex; gap: var(--rdw-gap); width: max-content; }
.rdw.rdw-move .rdw-track { will-change: transform; }
.rdw:not(.rdw-move) .rdw-row:nth-child(2) .rdw-track { margin-left: calc(var(--rdw-cw) * -.5); }   /* static stagger */
.rdw-card {
  position: relative; flex: none; margin: 0;
  width: var(--rdw-cw); height: var(--rdw-ch);
  border-radius: 20px; overflow: hidden; background: var(--rdw-card);
  isolation: isolate;
}
.rdw-card img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.rdw-card.rdw-nofoto img { visibility: hidden; }
/* The old wall's per-photo fallback text (main's <div class="dna-fall">, the site's own words, translated
   via data-i18n), on the cards whose photo comes from the live site. It sits BEHIND the photo: a loaded
   photo covers it completely, so the wall looks exactly as without it; it shows on the card while that
   photo loads and when every source has failed (.rdw-nofoto). The old site showed it on top of the card
   until the photo loaded, then hid it (v9.css .dna-card.has-img .dna-fall). Paper colours here instead
   of v9.css's dark .dna-fall look. */
.rdw .rdw-card .dna-fall {
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-content: center; text-align: center; padding: 10%;
  background: var(--rdw-card); color: var(--rdw-ink3);
  font-family: var(--rdw-wide); font-weight: 600; font-stretch: 110%;
  font-size: 12px; line-height: 1.6; letter-spacing: .1em; text-transform: uppercase;
}
.rdw .rdw-card .dna-fall b {
  display: block; margin-bottom: 4px;
  font-family: var(--rdw-wide); font-weight: 800; font-stretch: 100%; font-size: 15px; line-height: 1.2;
  letter-spacing: .06em; color: var(--rdw-ink);
}
:lang(ar) .rdw .rdw-card .dna-fall, :lang(ar) .rdw .rdw-card .dna-fall b,
:lang(pa) .rdw .rdw-card .dna-fall, :lang(pa) .rdw .rdw-card .dna-fall b { letter-spacing: 0; }

/* ---- "Keep scrolling ↓" while the wall holds the page (owner 2026-11-11) ----
   The comic's "Scroll to read ↓" pill (rd-hiw.css .hw-hint), smaller, with a thin line under the words that
   fills as the visitor scrolls through the wall. Made by rd-wall.r702.js inside the pinned stage, aria-hidden
   (an instruction for sighted scrollers). Absolutely placed in the free band at the bottom of the stage
   (--rdw-hb, measured by the script), centred, never wider than the space between the two edges' back-to-top
   button room, so it never covers a photo, the title, the foot or the button; no layout shift. Shown only
   while pinned (.rdw-move); the script fades it in as the pin starts and out before it ends. */
.rdw .rdw-hint {
  position: absolute; z-index: 3; left: 50%; bottom: var(--rdw-hb, 22px);
  display: none; align-items: center; gap: 8px;
  max-width: calc(100% - 152px); box-sizing: border-box;
  padding: 8px 15px 11px; border-radius: 999px;
  background: var(--rdw-ink); color: #f3f2ee;
  font-family: var(--rdw-wide); font-weight: 700; font-stretch: 110%;
  font-size: 13px; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(5,5,5,.18);
  transform: translateX(-50%);
  opacity: 0; pointer-events: none; will-change: opacity;
}
.rdw.rdw-move.rdw-fitd .rdw-hint { display: inline-flex; }
.rdw .rdw-hint-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rdw .rdw-hint-a { flex: none; font-size: 1.05em; line-height: 1; }
/* the progress line: a faint track, the blue fill grows from the reading start (right in Arabic) */
.rdw .rdw-hint-l {
  position: absolute; left: 15px; right: 15px; bottom: 5px; height: 2px; border-radius: 2px;
  background: rgba(243,242,238,.22); overflow: hidden;
}
.rdw .rdw-hint-l b {
  position: absolute; inset: 0; border-radius: inherit; background: var(--rdw-dot);
  transform: scaleX(0); transform-origin: 0 50%; will-change: transform;
}
html[dir="rtl"] .rdw .rdw-hint-l b { transform-origin: 100% 50%; }
.rdw .rdw-hint.rdw-ht { letter-spacing: .02em; font-size: 12px; gap: 6px; padding-inline: 12px; }
.rdw .rdw-hint.rdw-ht .rdw-hint-l { left: 12px; right: 12px; }
:lang(ar) .rdw .rdw-hint, :lang(pa) .rdw .rdw-hint, :lang(zh) .rdw .rdw-hint { letter-spacing: 0; }

/* ---- foot: the kicker line + "See every delivery" ---- */
.rdw .rdw-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 28px;
  margin-top: clamp(18px, 3svh, 30px); padding-top: 18px;
  border-top: 1.5px solid var(--rdw-hair);
}
/* doesn't fit inside the pinned stage: rd-wall.r700.js moves it out of the sticky stage to just after
   the pin, in normal flow, so it arrives as the pin releases AND the browser can scroll it into view
   (keyboard focus, find-in-page); inside a pinned sticky box it could not */
.rdw.rdw-move.rdw-fo .rdw-foot { margin-top: 0; padding-bottom: max(clamp(36px, 7svh, 72px), var(--rdw-dock)); }
.rdw .rdw-kick {
  margin: 0;
  font-family: var(--rdw-wide); font-weight: 600; font-stretch: 125%;
  font-size: 14px; line-height: 1.35; letter-spacing: .1em; text-transform: uppercase;
  color: var(--rdw-ink3);
}
.rdw .rdw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--rdw-ink); color: #f3f2ee; text-decoration: none;
  font-family: var(--rdw-wide); font-weight: 700; font-stretch: 110%;
  font-size: 16px; line-height: 1.1; letter-spacing: .01em; white-space: nowrap;
  transition: background-color .25s, transform .25s cubic-bezier(.2,.7,.2,1);
  /* when focus scrolls it into view: clear the fixed header above and the back-to-top dock below */
  scroll-margin-block: calc(var(--rdw-hd) + 12px) 76px;
}
.rdw .rdw-btn::after { content: "\2192"; font-size: 1.1em; line-height: 1; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
html[dir="rtl"] .rdw .rdw-btn::after { content: "\2190"; }
.rdw .rdw-btn:active { transform: scale(.97); }
.rdw .rdw-btn:focus-visible { outline: 3px solid var(--rdw-blue); outline-offset: 3px; }
@media (hover: hover) {
  .rdw .rdw-btn:hover { background: var(--rdw-blue); color: #fff; }
  .rdw .rdw-btn:hover::after { transform: translateX(4px); }
  html[dir="rtl"] .rdw .rdw-btn:hover::after { transform: translateX(-4px); }
}

/* ---- phones ---- */
@media (max-width: 760px) {
  .rdw { border-radius: 22px; --rdw-hd: 64px; --rdw-ch: 190px; --rdw-gap: 10px; --rdw-t: clamp(34px, 10vw, 60px); }
  .rdw-card { border-radius: 16px; }
  .rdw .rdw-hint { font-size: 12px; max-width: calc(100% - 136px); padding: 7px 13px 10px; }
  .rdw .rdw-hint-l { left: 13px; right: 13px; bottom: 4px; }
  .rdw .rdw-lab { font-size: 13px; }
  .rdw .rdw-kick { font-size: 12.5px; }
  .rdw .rdw-foot { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 14px; }
  .rdw .rdw-btn { min-height: 50px; padding: 0 22px; }
}

/* ---- reduced motion: no pin, static rows ---- */
@media (prefers-reduced-motion: reduce) {
  .rdw.rdw-move .rdw-pin { height: auto; }
  .rdw.rdw-move .rdw-stage { position: relative; height: auto; padding-block: clamp(64px, 11svh, 120px) clamp(48px, 8svh, 96px); }
  .rdw.rdw-move.rdw-fo .rdw-foot { padding-bottom: 0; margin-top: clamp(18px, 3svh, 30px); }
  .rdw .rdw-hint { display: none !important; }
  .rdw .rdw-btn, .rdw .rdw-btn::after { transition: none; }
}

/* ---- r723 / ?v=rd3 (owner on his iPhone, 2026-11-14: "the scroll should continue when the customer swipe 2 times and
   with the start of third one they should be able to continue the page") ----
   Phones: a shorter pin. One ordinary swipe (a finger drag plus iOS-style momentum) scrolls about 370-550 px on a
   390-430 px wide phone, whatever its height; two of them finish this pin, so the third swipe already moves the page on
   (120vh took 2-3 swipes). Short phones get a proportionally shorter pin. Computers keep 120vh. The "Keep scrolling" pill
   and its line follow the pin's length (rd-wall.r723.js reads it). */
@media (max-width: 760px) {
  .rdw { --rdw-pin: min(82svh, 690px); }
}

/* ---- r726 / ?v=rd4 (owner on his iPhone, 2026-11-14: "THE PHOTOS ARE MOVING WITH ALOT OF HANGS AND STOP") ----
   Phones (rd-wall.r726.js sets .rdw-cmp): the cards drift by themselves (one Web Animation each, transform only), so the
   strip is not a layer of its own any more, except while the scroll moves it: where scroll-driven animations exist, each
   strip moves with the page's scroll (a view timeline of the section, from the moment it enters until it has left) by
   --rdw-bx (set by the script from the old distance per scrolled pixel), on top of the cards' drift. Elsewhere the rows
   drift at their own speed only. */
.rdw.rdw-cmp .rdw-track { will-change: auto; }
@keyframes rdw-boost { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--rdw-bx, 0px), 0, 0); } }
@supports (animation-timeline: view()) {
  .rdw.rdw-cmp { view-timeline: --rdw-v block; }
  .rdw.rdw-cmp .rdw-track { animation: rdw-boost linear both; animation-timeline: --rdw-v; animation-range: cover 0% cover 100%; }
}
@media (prefers-reduced-motion: reduce) { .rdw.rdw-cmp .rdw-track { animation: none; } }

/* ---- Alignment pass (owner on his iPhone, 2026-11-14: "align anything that is misaligned"). Layout only: the eyebrow
   and the footer line wrap in balanced lines (no lone last word in long translations). Linked ?v=rd5m. */
.rdw .rdw-lab, .rdw .rdw-kick { text-wrap: balance; }
