/*
 * r3-home.css (30 Nov 2026, architecture restore, workstream A): Home hero wall, trusted-brands banner and the
 * services showcase. Loaded after hx.css by hx-hero / hx-trust / hx-services; overrides only, hx.css untouched.
 */

/* ---------- hero wall: the original continuous three-row loop, no artwork twice on screen ----------
   Each row is three identical copies of its own four pieces and moves exactly one copy per loop. To keep the same
   artwork from showing twice at once, one copy must be longer than the visible strip plus one tile, so the tiles
   are larger than the 24 Nov wall and the spacing between them grows with the tile (--tk x tile height).
   Tilt (-12deg), direction, placement and the depth shadow are the original's. */
.hx-wall.hx-wall--r3 { --th: clamp(170px, 18.8vw, 276px); gap: 18px; }
@media (min-width: 1441px) { .hx-wall.hx-wall--r3 { --th: min(20.4vw, 420px); } } /* 1 Dec 2026: the yellow-era 15-piece set; tiles about 7% above the 24 Nov size so a row's loop copy is never on screen with it */ /* 1 Dec 2026: the 24 Nov original tile size and spacing */
.hx-wall--r3 .hx-wall__t { margin-right: 18px; }
.hx-wall--r3 .hx-wall__row { animation-name: hx3-rtl; animation-duration: var(--d, 120s); }
.hx-wall--r3 .hx-wall__row--ltr { animation-name: hx3-ltr; }
@keyframes hx3-rtl { from { transform: translateX(0); } to { transform: translateX(calc(-100% / 3)); } }
@keyframes hx3-ltr { from { transform: translateX(calc(-100% / 3)); } to { transform: translateX(0); } }

@media (max-width: 767px) {
  .hx-wall.hx-wall--r3 { --th: 168px; gap: 12px; }
  .hx-wall--r3 .hx-wall__t { margin-right: 12px; }
  .hx-wall--r3 .hx-wall__row { animation-duration: var(--dm, 36s); }
}

/* Reduced motion: the wall stands still at every width (hx.css only stops it from 768px up). */
@media (prefers-reduced-motion: reduce) {
  .hx-wall--r3 .hx-wall__row { animation: none !important; }
}

/* ---------- trusted brands banner ---------- */
.hx-trust__i img { filter: grayscale(1); }   /* the marks are white already; this keeps any stray colour out */
@media (prefers-reduced-motion: reduce) {
  .hx-trust__track { animation: none !important; }
}

/* ---------- services showcase: taller cards, title top-left (towards the reference's services rail) ---------- */
.hx-sv__card { flex-basis: clamp(280px, 26vw, 410px); aspect-ratio: 5 / 7; border-radius: 28px; }
.hx-sv__card::before { background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .18) 24%, rgba(0, 0, 0, 0) 40%); }
.hx-sv__name { top: 28px; left: 28px; right: 24px; text-shadow: 0 2px 22px rgba(0, 0, 0, .35); }
.hx-sv__name b { font-size: clamp(30px, 2.8vw, 44px); }
.hx-sv__name em { font-size: clamp(30px, 2.75vw, 42px); }
.hx-sv__foot { left: 28px; right: 20px; bottom: 20px; }
.hx-sv__card:focus-visible { outline: 3px solid var(--x-white); outline-offset: -3px; }   /* inside: the rail clips anything outside the card */
.hx-sv__rail:focus-visible { outline: 2px solid var(--x-white); outline-offset: -2px; }
@media (max-width: 767px) {
  .hx-sv__card { flex-basis: 78vw; border-radius: 24px; }
  .hx-sv__name { top: 22px; left: 22px; }
  .hx-sv__name b, .hx-sv__name em { font-size: 32px; }
  .hx-sv__foot { left: 22px; }
}
