/*
 * Commerce (the front door of riverocommerce.com). Needs tokens.css and
 * site.css first. Markup: src/templates/commerce.mjs and
 * src/components/organisms/commerce/.
 *
 * The page borrows the store's own language: warm cream, near-black brown
 * chrome, the orange, rounded cards and its badges. Motion rules of the
 * house, kept everywhere below:
 *   - only transform, opacity and clip-path animate;
 *   - scroll positions arrive as custom properties set by commerce.js on
 *     one element, never as style writes per frame per node;
 *   - anything that is hidden until JS reveals it sits behind `html.rv-cx`,
 *     which commerce.js only adds when motion is allowed, so no-JS and
 *     reduced-motion visitors get the finished state;
 *   - the long scenes are paused CSS animations scrubbed with a negative
 *     animation-delay, so one scroll position is exactly one pose.
 */

/* ---------------------------------------------------------------- base */

[data-page='commerce'] main > section[data-tone]:not(.ch, .cx) {
  padding-block: var(--section-pad);
}
/* "How it works" shares the tone of "What is RIVERO Commerce" above it, so
   it reads as that section's second half: close under it, behind one
   hairline. */
[data-page='commerce'] main > section.ca:has(+ section.cs)[data-tone] {
  padding-bottom: clamp(40px, 5vw, 72px);
}
[data-page='commerce'] main > section.ca + section.cs[data-tone] {
  padding-top: 0;
}
/* The way out follows the quotes closely (Marcus's review, Nov 25): no
   second full section-pad on top of the quotes' own. */
[data-page='commerce'] main > section.ct:has(+ section.cx)[data-tone] {
  padding-bottom: clamp(24px, 3vw, 48px);
}
[data-page='commerce'] main > section.ct + section.cx[data-tone] {
  padding-top: clamp(40px, 5vw, 80px);
}
/* The shelf follows the hero closely: it is the hero's proof. */
[data-page='commerce'] main > section.ch + section.cc[data-tone] {
  padding-top: clamp(32px, 4vw, 64px);
}
/* From the category doors to "What is RIVERO Commerce": the two paddings
   share one section's rhythm instead of stacking two. */
[data-page='commerce'] main > section.cc:has(+ section.ca)[data-tone] {
  padding-bottom: calc(var(--section-pad) / 2);
}
[data-page='commerce'] main > section.cc + section.ca[data-tone] {
  padding-top: calc(var(--section-pad) / 2);
}
[data-page='commerce'] .eyebrow {
  color: var(--accent-text);
}
[data-page='commerce'] .section-title {
  font-size: var(--display-md);
}
[data-page='commerce'] .section-lede {
  margin: 0;
  max-width: 54ch;
  color: var(--ink-muted);
  font-size: var(--text-lg);
}
[data-page='commerce'] ::selection {
  background: var(--rv-orange);
  color: #0b0d12;
}

/* Buttons. `ink` is the store's near-black, `line` its outlined pair. */
.btn-ink {
  background: var(--chrome);
  color: #ffffff;
}
.btn-ink:hover {
  background: #0b0d12;
}
.btn-line {
  border-color: currentColor;
}
.btn-line:hover {
  background: color-mix(in srgb, currentColor 10%, transparent);
}

/*
 * Magnetic buttons: commerce.js measures the pointer against the control
 * and writes --mgx / --mgy, nothing else. Fine pointers only, and the
 * translate is capped in the script, so a button never leaves its hit area.
 */
.magnetic {
  transform: translate3d(var(--mgx, 0px), var(--mgy, 0px), 0);
  transition: transform var(--dur-base) var(--ease-out);
}
.magnetic:hover {
  transform: translate3d(var(--mgx, 0px), var(--mgy, 0px), 0) scale(1.02);
}
.btn.magnetic:hover {
  transform: translate3d(var(--mgx, 0px), calc(var(--mgy, 0px) - 2px), 0);
}

/*
 * The store's badges, as decoration: the near-black chip it puts on a photo
 * and the outlined one it uses for a flag on a card. They pop in with a
 * spring once their card is on screen (`.pop`, below).
 */
/* The two on a card are block elements, not spans: side by side they would
   otherwise read as one run of text to the copy guard. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font: 500 11px / 1 var(--font-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-live {
  background: var(--chrome);
  color: #ffffff;
}
.badge-load {
  background: #ffffff;
  color: var(--rv-orange-text);
  box-shadow: 0 0 0 1px rgb(11 13 18 / 10%);
}

/* Pop: held back only while the script is there to let it go. */
@keyframes cx-pop {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.rv-cx .pop {
  opacity: 0;
}
.rv-cx .pop.is-in {
  animation: cx-pop var(--dur-pop) var(--ease-spring) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

/* ---------------------------------------------------------------- hero */

/*
 * One thing on first view, like every page's hero: the hero fills the
 * screen under the floating header (whose spacer is --hdr-top +
 * --hdr-row-h + 10px, site-header.mjs), and from 1024px it is never under
 * 720px, so "What We're Moving Today." always starts below the fold.
 * --ch-p (0 → 1, commerce.js) is how far the hero has scrolled away: the
 * devices flatten and step back with it, and the scroll cue fades out over
 * its first fifth. Without it (no JS, reduced motion) it stays 0, the
 * resting pose.
 */
.ch {
  --ch-hdr: calc(var(--hdr-top, 0px) + var(--hdr-row-h, 60px) + 10px);
  --ch-h: calc(100svh - var(--ch-hdr));
  --ch-p: 0;
  --ch-k: calc(1 - var(--ch-p));
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--ch-h);
  padding-block: clamp(24px, 4vw, 40px) clamp(72px, 10svh, 96px);
  overflow: clip;
}
/* .wrap's auto margins would shrink it to its content in this column. */
.ch > .wrap {
  width: 100%;
}
.ch-head {
  max-width: 1040px;
}
.ch-copy {
  position: relative;
  z-index: 1;
}
/* With the mockup: copy over the devices on a phone and a tablet; from
   1024px the copy is a column on the left and the devices stand on the
   right (below). Without it (a screenshot missing) the copy runs alone. */
.ch--mock .ch-grid {
  display: grid;
  gap: clamp(40px, 8vw, 64px);
}
@media (min-width: 1024px) {
  /* The hero's two sides are balanced on the screen, not on .wrap: the
     same margin (--ch-edge, 48px at least) on the left of the copy and the
     right of the devices, wider on a big screen so the two stay close.
     --lap-w: the laptop, 45% of the screen, 760px at most (no bleed).
     --ch-phone-over: how far the phone, and its tilt, reach left of the
     laptop. --ch-gap: the least room between the copy and the phone. The
     copy column takes what is left, so it ends --ch-gap short of the
     phone at any width. */
  .ch {
    --ch-h: max(720px, calc(100svh - var(--ch-hdr)));
    --ch-edge: max(48px, calc((100vw - 1560px) / 2));
    --lap-w: min(47vw, 780px);
    --ch-phone-over: calc(var(--lap-w) * 0.06);
    --ch-gap: 60px;
    padding-block: 40px 96px;
  }
  .ch > .wrap {
    max-width: none;
    padding-inline: var(--ch-edge);
  }
  .ch--mock .ch-copy {
    width: clamp(
      340px,
      calc(
        100vw - var(--ch-edge) * 2 - var(--lap-w) - var(--ch-phone-over) -
          var(--ch-gap)
      ),
      720px
    );
  }
  /* Two lines, never three: the size follows the copy column (cqi), so the
     longer set line always fits — --ch-m is its width in em at 700 ("Live
     Inventory." 6.65, "inventario en vivo." 8.28) plus about 5–10% room. */
  .ch--mock .ch-copy {
    container-type: inline-size;
  }
  .ch--mock .ch-title {
    --ch-m: 7.3;
    font-size: clamp(40px, calc(100cqi / var(--ch-m)), 104px);
  }
  :lang(es) .ch--mock .ch-title {
    --ch-m: 8.7;
  }
}
/* The headline's two set lines (hero.mjs). */
.ch-line {
  display: block;
}
.ch-eyebrow {
  font-size: 13px;
}
.ch-title {
  margin: 18px 0 0;
  font-size: var(--display-lg);
  font-weight: 700;
  line-height: 0.95;
}
.ch-lede {
  margin: 26px 0 0;
  max-width: 44ch;
  color: var(--ink-muted);
  font-size: var(--text-lg);
}
/* One clip per word, so the line rises out of itself. The clip needs room
   for Jost's descenders and overhangs at this leading; the negative margins
   hand that room back so the lines do not move. */
.ch-w {
  display: inline-block;
  overflow: clip;
  vertical-align: bottom;
  padding: 0 0.05em 0.18em;
  margin: 0 -0.05em -0.12em;
}
.ch-wi {
  display: inline-block;
}

/* The way into the store. */
.ch-chrome {
  margin-top: clamp(28px, 4vw, 44px);
}
.ch-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.ch-browse {
  padding: 15px 24px;
}

/*
 * riverocommerce.com on a laptop, with a phone standing in front of its
 * bottom-left corner, on the page's own background. The mockup is as wide
 * as the laptop's lid and every size is a share of it (cqi), so the frames
 * keep their proportions from a phone to a wide screen. The frames are the
 * store's near-black in both themes; on dark a hairline keeps their edge.
 *
 * Both devices are turned in 3D, toward each other: the laptop faces the
 * copy (--ch-ry, --ch-rx), the phone the laptop (--ch-pry, --ch-prx). The
 * turn is multiplied by --ch-k (1 → 0 as the hero scrolls away), and the
 * whole mockup scales down a little with --ch-p, so the devices settle
 * flat and step back as "What We're Moving Today." comes up. The
 * perspective is in cqi too, so the depth reads the same at every size.
 */
.ch-mock {
  --mock-frame: #0b0d12;
  --mock-edge: rgb(11 13 18 / 10%);
  --ch-ry: -14deg;
  --ch-rx: 5deg;
  --ch-pry: 14deg;
  --ch-prx: 5deg;
  container-type: inline-size;
  position: relative;
  width: calc(86% + var(--gutter));
  max-width: 760px;
  margin-inline: auto calc(-1 * var(--gutter));
  scale: calc(1 - 0.12 * var(--ch-p));
  transform-origin: 30% 60%;
}
@media (min-width: 1024px) {
  .ch-mock {
    --ch-ry: -18deg;
    --ch-rx: 6deg;
    --ch-pry: 16deg;
    --ch-prx: 6deg;
    position: absolute;
    /* The section's padding is 40px over, 96px under, so its middle is
       28px above the box's: that is where the copy is centered too. The
       chips above the lid add to the devices' top, so the box sits a
       little lower to put their middle, not the laptop's, on that line.
       The tilt turns the lid's right edge out past the box, so the box
       stands a hair further in to keep the margin whole. */
    top: calc(50% - 28px + var(--lap-w) * 0.075);
    right: calc(var(--ch-edge) + var(--lap-w) * 0.015);
    width: var(--lap-w);
    max-width: none;
    margin: 0;
    translate: 0 -50%;
  }
}
/* The room under the laptop is where the phone's foot stands. */
.ch-laptop {
  position: relative;
  margin-bottom: 9cqi;
}
.ch-laptop-body {
  transform: perspective(240cqi) rotateY(calc(var(--ch-ry) * var(--ch-k)))
    rotateX(calc(var(--ch-rx) * var(--ch-k)));
  transform-origin: 50% 60%;
}
.ch-laptop-screen {
  padding: 1.4cqi 1.4cqi 1.8cqi;
  border-radius: 2.6cqi 2.6cqi 0.6cqi 0.6cqi;
  background: var(--mock-frame);
  box-shadow:
    0 0 0 1px var(--mock-edge),
    0 40px 80px -48px rgb(11 13 18 / 60%);
}
/* The laptop's screen is a window onto the screenshot, so the shot can
   pan inside it (below) without leaving the bezel. */
.ch-screen {
  display: block;
  overflow: clip;
  border-radius: 0.6cqi;
  background: var(--surface);
}
.ch-laptop-screen img,
.ch-phone-body img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface);
}
.ch-screen img {
  transform-origin: 30% 20%;
}
/* The deck: a little wider than the lid, with the notch you open it by. */
.ch-laptop-base {
  position: relative;
  height: 2.4cqi;
  margin: 0 -7.5%;
  border-radius: 0.3cqi 0.3cqi 2.4cqi 2.4cqi / 0.3cqi 0.3cqi 1.8cqi 1.8cqi;
  background: linear-gradient(180deg, #e6e8ec, #b9bec6 70%, #9ea4ad);
  box-shadow: 0 18px 30px -18px rgb(11 13 18 / 55%);
}
.ch-laptop-base::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 16%;
  height: 0.9cqi;
  border-radius: 0 0 1cqi 1cqi;
  background: #a7adb6;
  transform: translateX(-50%);
}
.ch-phone {
  position: absolute;
  left: -5%;
  bottom: 0;
  width: 22%;
}
.ch-phone-body {
  position: relative;
  padding: 1.1cqi;
  border-radius: 4.2cqi;
  background: var(--mock-frame);
  box-shadow:
    0 0 0 1px var(--mock-edge),
    0 30px 60px -26px rgb(11 13 18 / 65%);
  transform: perspective(240cqi) rotateY(calc(var(--ch-pry) * var(--ch-k)))
    rotateX(calc(var(--ch-prx) * var(--ch-k)));
}
.ch-phone-body img {
  border-radius: 3.2cqi;
}
/* The camera island. */
.ch-phone-body::before {
  content: '';
  position: absolute;
  top: 2.2cqi;
  left: 50%;
  z-index: 1;
  width: 30%;
  height: 1.6cqi;
  border-radius: 999px;
  background: var(--mock-frame);
  transform: translateX(-50%);
}
/* The floor under the devices: a soft orange glow, wider than it is tall,
   behind everything (first in the markup). */
.ch-glow {
  position: absolute;
  left: -14%;
  right: 0;
  bottom: -5cqi;
  height: 20cqi;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--rv-orange) 34%, transparent),
    color-mix(in srgb, var(--rv-orange) 12%, transparent) 55%,
    transparent
  );
  filter: blur(6px);
  pointer-events: none;
}
[data-theme='dark'] [data-page='commerce'] .ch-mock {
  --mock-edge: rgb(255 255 255 / 14%);
}
[data-theme='dark'] [data-page='commerce'] .ch-laptop-base {
  background: linear-gradient(180deg, #5a6069, #3a3f47 70%, #2c3037);
}
[data-theme='dark'] [data-page='commerce'] .ch-laptop-base::before {
  background: #2a2e35;
}
[data-theme='dark'] [data-page='commerce'] .ch-glow {
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--rv-orange) 42%, transparent),
    color-mix(in srgb, var(--rv-orange) 14%, transparent) 55%,
    transparent
  );
}

/* Three small UI chips around the devices: white cards (both themes, the
   store's own), the orange on their icon, a soft shadow. Sized with the
   mockup (cqi, in em from there), and all three on the part of the laptop
   that stays on screen: its right edge runs off it. */
.ch-chips {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ch-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0;
  padding: 0.7em 1.1em 0.7em 0.9em;
  border-radius: 999px;
  background: #ffffff;
  color: #0b0d12;
  font: 600 clamp(11px, 1.6cqi, 16px) / 1 var(--font-body);
  white-space: nowrap;
  box-shadow:
    0 0 0 1px rgb(11 13 18 / 6%),
    0 14px 30px -12px rgb(11 13 18 / 38%);
}
.ch-chip--live {
  top: -3%;
  left: 6%;
}
.ch-chip--export {
  top: 22%;
  right: 14%;
}
.ch-chip--order {
  bottom: 4%;
  left: 30%;
}
.ch-chip-icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  color: var(--rv-orange);
}
.ch-chip-dot {
  position: relative;
  flex: none;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--rv-orange);
}

/* From 1024px the devices are rebalanced (they sit after the base rules
   above, so they win). The phone stands on the laptop's bottom-left
   corner, about 57% of the laptop screen's height so its own screen reads
   (--ch-phone-w is its width, in the mockup's cqi), with a thinner bezel
   and corners to match. The chips stand around the devices, never on the laptop's screen:
   two above the lid, one on the floor under the deck. */
@media (min-width: 1024px) {
  .ch-phone {
    --ch-phone-w: 17.6cqi;
    left: -4%;
    bottom: -2cqi;
    width: var(--ch-phone-w);
  }
  .ch-phone-body {
    padding: 0.8cqi;
    border-radius: 3cqi;
  }
  .ch-phone-body img {
    border-radius: 2.3cqi;
  }
  .ch-phone-body::before {
    top: 1.6cqi;
    height: 1.1cqi;
  }
  .ch-glow {
    left: -6%;
    right: -4%;
  }
  .ch-chip--live {
    top: -8cqi;
    left: 4%;
  }
  .ch-chip--export {
    top: -11cqi;
    right: 3%;
  }
  .ch-chip--order {
    top: auto;
    bottom: 1.5cqi;
    left: 40%;
  }
}

/* Phone and tablet (below 1024px, where the copy sits over the devices):
   the mockup is centered whole on the screen, laptop, phone and chips, and
   it stays in its resting pose. The base rules bleed it past the right
   gutter (so the lid ran off the screen) and hand it to the scroll
   (--ch-p flattens the tilt and steps the scale down); here the box is
   narrower than the wrap by the deck's and the phone's overhang (7.5% and
   5% of it), so the whole drawing fits between the gutters, and the tilt
   and scale are pinned. Desktop is untouched. */
@media (max-width: 1023.98px) {
  .ch {
    --ch-k: 1;
  }
  .ch-mock {
    width: 86%;
    margin-inline: auto;
    scale: none;
    /* The lid's turn brings its right edge out about 2% of the box, and the
       phone hangs off the left: this puts the drawing's middle on the
       screen's. */
    translate: -2% 0;
  }
}

/* The way on: a quiet line at the hero's foot, centered on the screen,
   gone by the time the hero is a fifth of the way off it. */
.ch-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 4svh, 36px);
  z-index: 2;
  margin: 0;
  translate: -50% 0;
  color: var(--ink-muted);
  font: 500 14px / 1.2 var(--font-body);
  white-space: nowrap;
  opacity: calc(1 - var(--ch-p) * 5);
  pointer-events: none;
}
.ch-cue-arrow {
  display: inline-block;
  color: var(--accent-text);
}

@keyframes ch-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes ch-word {
  from {
    transform: translateY(105%);
  }
  to {
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ch-wi {
    animation: ch-word 1s var(--ease-emph) both;
    animation-delay: calc(60ms + var(--i) * 55ms);
  }
  .ch-eyebrow,
  .ch-lede,
  .ch-chrome {
    animation: ch-rise 800ms var(--ease-emph) both;
  }
  .ch-lede {
    animation-delay: 260ms;
  }
  .ch-chrome {
    animation-delay: 360ms;
  }
  /* The laptop rises in, then the phone slides up in front of it, then the
     chips pop in one by one and keep bobbing, each on its own beat. The
     entrances move `transform`, the bob and float `translate`, so the two
     never fight. */
  .ch-laptop {
    animation: ch-rise var(--dur-reveal) var(--ease-emph) 320ms both;
  }
  .ch-phone {
    animation: ch-phone var(--dur-reveal) var(--ease-emph) 520ms both;
  }
  .ch-chip {
    animation:
      ch-chip-in var(--dur-pop) var(--ease-spring) both,
      ch-bob calc(5s + var(--c) * 0.8s) ease-in-out infinite;
    animation-delay: calc(900ms + var(--c) * 180ms), calc(-1.3s * var(--c));
  }
  .ch-chip-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--rv-orange);
    animation: ch-ping 2s var(--ease-out) infinite;
  }
  /* The scroll hand-off (--ch-p) arrives a frame at a time; a short ease
     takes the steps out of a mouse wheel. */
  .ch-mock {
    transition: scale 240ms var(--ease-out);
  }
  .ch-laptop-body,
  .ch-phone-body {
    transition: transform 240ms var(--ease-out);
  }
  /* The cue comes up once the devices are in, and its arrow bobs. Its
     entrance holds only before it starts (`backwards`), so the scroll fade
     owns its opacity after. */
  .ch-cue {
    animation: ch-cue-in 800ms var(--ease-emph) 1.4s backwards;
  }
  .ch-cue-arrow {
    animation: ch-cue-bob 1.8s var(--ease-in-out) 2.2s infinite;
  }

  /* From 1024px up the devices come alive: commerce.js tilts the whole
     mockup toward the pointer (--tilt-x / --tilt-y, at most 6deg, fine
     pointers only), on top of the devices' own turn; the phone and the
     chips stand off the laptop in depth, the phone floats, and the laptop's
     screen pans slowly over the store. Under 1024px the devices stay still
     (the scroll hand-off still plays). */
  @media (min-width: 1024px) {
    .ch-mock {
      transform-style: preserve-3d;
      transform: perspective(1600px) rotateX(var(--tilt-x, 0deg))
        rotateY(var(--tilt-y, 0deg));
      transition:
        transform 900ms var(--ease-out),
        scale 240ms var(--ease-out);
    }
    .ch-glow {
      translate: 0 0 -40px;
    }
    .ch-chips {
      translate: 0 0 90px;
    }
    .ch-phone {
      --z: 40px;
      animation:
        ch-phone var(--dur-reveal) var(--ease-emph) 520ms both,
        ch-float 7s ease-in-out 1.4s infinite;
      translate: 0 0 var(--z);
    }
    .ch-screen img {
      animation: ch-pan 26s ease-in-out 1s infinite;
    }
  }
}
@keyframes ch-phone {
  from {
    opacity: 0;
    transform: translate3d(12px, 28px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes ch-cue-in {
  from {
    opacity: 0;
    translate: -50% 10px;
  }
}
@keyframes ch-cue-bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 4px;
  }
}
@keyframes ch-chip-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes ch-bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}
@keyframes ch-float {
  0%,
  100% {
    translate: 0 0 var(--z, 0);
  }
  50% {
    translate: 0 -1.6cqi var(--z, 0);
  }
}
@keyframes ch-ping {
  from {
    opacity: 0.6;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(2.6);
  }
}
/* Ken Burns over the store: a slow push in and across the catalog, and back. */
@keyframes ch-pan {
  0%,
  100% {
    transform: none;
  }
  50% {
    transform: scale(1.14) translate(-4%, -5%);
  }
}

/* ------------------------------------------- what is rivero commerce */

.ca-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.ca-head {
  display: grid;
  gap: var(--space-4);
}
.ca-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(24px, 3vw, 48px);
  margin: 0;
}
.ca-fact {
  display: grid;
  gap: 12px;
  align-content: start;
  padding-top: var(--space-4);
  border-top: 2px solid var(--accent);
}
.ca-fact dt {
  margin: 0;
}
.ca-fact dd {
  margin: 0;
  font: 500 var(--text-xl) / 1.3 var(--font-display);
}

/* ---------------------------------------------------- categories rail */

/* The shelf's own heading: proof of what moves, over the rail. */
.cc-head {
  display: grid;
  gap: var(--space-4);
  margin-bottom: clamp(24px, 3vw, 40px);
}
/* "What we're moving today." is the page's proof, so it is set bigger and
   bolder than the other section titles (Marcus's review, Nov 25). */
[data-page='commerce'] .cc-title {
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 700;
  line-height: 0.98;
}

.cc {
  overflow: clip;
}
/* Whole cards only: the rail shows a whole number of cards between its
   gutters (--cc-n by width), each one snapping to the left gutter, so no
   card is ever cut by the edge of the screen at rest. The numbers sit on
   the shelf, so the Previous / Next buttons can centre on a card's photo
   (--cc-w, which is also the photo's height). */
.cc-shelf {
  --cc-n: 1;
  --cc-gap: clamp(10px, 1vw, 16px);
  --cc-w: calc(
    (100vw - 2 * var(--gutter) - (var(--cc-n) - 1) * var(--cc-gap)) /
      var(--cc-n)
  );
  position: relative;
}
.cc-rail {
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cc-rail::-webkit-scrollbar {
  display: none;
}
.cc-track {
  display: flex;
  gap: var(--cc-gap);
  margin: 0;
  padding: 10px var(--gutter) 24px;
  list-style: none;
  width: max-content;
}
.cc-card {
  flex: 0 0 var(--cc-w);
  scroll-snap-align: start;
}
@media (min-width: 520px) {
  .cc-shelf {
    --cc-n: 2;
  }
}
@media (min-width: 760px) {
  .cc-shelf {
    --cc-n: 3;
  }
}
@media (min-width: 1100px) {
  .cc-shelf {
    --cc-n: 4;
  }
}
@media (min-width: 1500px) {
  .cc-shelf {
    --cc-n: 5;
  }
}
@media (min-width: 1900px) {
  .cc-shelf {
    --cc-n: 6;
  }
}
/* Previous / Next: on the rail's edges, level with the photos' middle.
   commerce.js shows them and hides each one at its end. */
.cc-nav {
  position: absolute;
  top: calc(10px + var(--cc-w) / 2);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--btn-radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow:
    0 0 0 1px var(--rule),
    0 12px 26px -14px rgb(11 13 18 / 55%);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background var(--dur-fast),
    color var(--dur-fast),
    box-shadow var(--dur-base);
}
.cc-nav[hidden] {
  display: none;
}
.cc-nav--prev {
  left: max(6px, calc(var(--gutter) - 22px));
}
.cc-nav--next {
  right: max(6px, calc(var(--gutter) - 22px));
}
.cc-nav:hover {
  background: var(--accent);
  color: #0b0d12;
}
.cc-nav:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}
.cc-nav-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}
.cc-face {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--rule),
    0 18px 40px -34px rgb(11 13 18 / 55%);
  overflow: clip;
  transform: translate3d(var(--cmx, 0px), var(--cmy, 0px), 0);
  transition:
    transform var(--dur-slow) var(--ease-out),
    box-shadow var(--dur-base);
}
.cc-card:hover .cc-face {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent),
    0 26px 50px -30px rgb(11 13 18 / 45%);
}
/* A real pallet, as the store draws it: photo, its badges, no price. The
   whole card is the link to its listing. */
.cp-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-bottom: 14px;
  color: inherit;
  text-decoration: none;
}
.cp-link:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: -2px;
  border-radius: inherit;
}
.cp-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: var(--accent-tint);
  overflow: clip;
}
/* The illustrated plate under every photo: it only shows when the store's
   image never arrives (commerce.js marks the card), so a missing vendor
   file reads as a card, not as a hole. */
.cp-plate {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.cp-mark {
  position: absolute;
  right: -14%;
  bottom: -22%;
  width: 62%;
  opacity: 0.22;
  transform: translate3d(calc(var(--px, 0) * 26px), 0, 0);
}
.cp-parcel {
  position: relative;
  width: clamp(44px, 4vw, 56px);
  height: auto;
  color: var(--accent-text);
  transform: translate3d(calc(var(--px, 0) * -12px), 0, 0);
}
.cp-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface);
  transform: scale(1.001);
  transition: transform var(--dur-slow) var(--ease-out);
}
.cc-card:hover .cp-img {
  transform: scale(1.04);
}
.cp-card.is-noimg .cp-img {
  display: none;
}
/* Sold out between the snapshot and this visit (catalog.js, when the live
   refresh is on): the card leaves rather than lie about the floor. */
.cp-card.is-gone {
  display: none;
}
/* The store's four corners, in the store's order. */
.cp-flag {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--chrome);
  color: #ffffff;
  font: 600 11px / 1 var(--font-sans);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
/* Discount left, stock right, always on one row: a long stock label
   gives way with an ellipsis (.cp-stock) rather than wrapping. */
.cp-flags {
  position: absolute;
  inset: 10px 10px auto;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 6px;
}
.cp-off {
  font-variant-numeric: tabular-nums;
}
.cp-stock {
  margin-left: auto;
  min-width: 0;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--accent);
  color: #0b0d12;
}
.cp-export {
  position: absolute;
  z-index: 1;
  left: 10px;
  bottom: 10px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--rule);
}
.cp-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 18px 4px;
}
.cp-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  font: 500 11px / 1 var(--font-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
}
.cp-live {
  color: var(--accent-text);
  white-space: nowrap;
}
.cp-cat {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Two lines of the store's own product name, then an ellipsis: the titles
   are vendor strings and some of them run for a paragraph. The clamp clips
   at the second line box, and Jost's descenders hang below anything tighter
   than 1.3, so a "g" on that line would lose its tail. */
.cp-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: var(--tracking-display);
}
/* The categories, demoted to doors: the same six, one row, under the rail. */
.cg-row {
  display: grid;
  /* Six across on a desktop, two across on a phone — never one tall stack. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 158px), 1fr));
  gap: 10px;
  margin: clamp(12px, 1.6vw, 20px) 0 0;
  padding: 0;
  list-style: none;
}
.cg-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 14px 16px;
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--rule);
  color: inherit;
  text-decoration: none;
  transition:
    box-shadow var(--dur-base),
    transform var(--dur-base) var(--ease-out);
}
.cg-card:hover,
.cg-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent);
}
.cg-icon {
  width: 22px;
  height: 22px;
  color: var(--accent-text);
}
.cg-title {
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

/* The cursor bubble: an arrow, never a word. */
.cc-bubble {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
  border-radius: 999px;
  background: var(--accent);
  color: #0b0d12;
  opacity: 0;
  transform: translate3d(var(--bx, 0px), var(--by, 0px), 0) scale(0.4);
  pointer-events: none;
  transition:
    opacity var(--dur-base) var(--ease-out),
    scale var(--dur-base) var(--ease-spring);
}
.cc-bubble svg {
  width: 22px;
  height: 22px;
}
.cc-rail.is-live .cc-bubble {
  opacity: 1;
  transform: translate3d(var(--bx, 0px), var(--by, 0px), 0) scale(1);
}
.cc-rail.is-drag {
  cursor: grabbing;
  scroll-snap-type: none;
}
.cc-rail.is-drag .cc-face {
  transition: none;
}
@media (hover: hover) and (pointer: fine) {
  .cc-rail {
    cursor: grab;
  }
}

/* ------------------------------------------------- browse. load. ship. */

/*
 * A route beside its map. From 900px: two halves — on the left the line
 * down the column's edge and the steps in one column beside it (number,
 * title, words, then a 16:10 photo; a node where each meets the line); on
 * the right the map, sticky at the screen's full height. Below 900px the
 * map is not sticky: it sits full width after the last step.
 *
 * With rv-scenes the scroll drives all of it; commerce.js only publishes
 * numbers, every frame, and nothing here is a timed swap. --route-p draws
 * the line (a clip, over dashes that flow down it) to the reading point,
 * where the load rides (sticky, so the scroll carries it) and changes by
 * degrees (steps-art.mjs, the --c0… --vessel transforms below) under a tag
 * whose words roll by (--tag). Per step: --node fills its node (.is-hit
 * pulses it once), --num fills its number, --sp opens its photo from the
 * line outward and settles it, --pp moves the image inside its frame.
 * --warm on the section warms the ground. Only transform, opacity and
 * clip-path change.
 *
 * Reduced motion or no JS: the final state — the line drawn, the photos
 * open, nodes and numbers filled, the ship and its container at the end
 * of the line, the tag on its last word.
 */
.cs {
  position: relative;
  /* Above the reps section, so nothing below paints over the wake. */
  z-index: 1;
}
.cs-warm,
.cs-handoff {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.cs-warm {
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--rv-orange) 9%, transparent) 30%,
    color-mix(in srgb, var(--rv-orange) 15%, transparent) 80%,
    transparent
  );
  opacity: 0;
}
.rv-scenes .cs-warm {
  opacity: var(--warm, 0);
}
/* The section's foot is already the reps section's tone: no edge between
   the two. */
.cs-handoff {
  top: auto;
  height: min(40svh, 360px);
  background: linear-gradient(180deg, transparent, var(--tone-alt));
}
.cs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  padding-top: clamp(40px, 5vw, 72px);
  border-top: var(--hairline) solid var(--rule);
}
.cs-head {
  display: grid;
  gap: var(--space-4);
}
.cs-title {
  margin: 0;
}
.cs-route {
  /* The gutter, and the rider drawn at 74% of it: the ship is 97% of its
     scene box wide, so at full gutter width it touched the photos. */
  --rail: 100px;
  --rw: calc(var(--rail) * 0.74);
  /* The reading point; commerce.js uses the same fraction (TIP). Lower on
     a phone, so the load rides clear of the map on top. */
  --tip: 62svh;
  --cs-num: clamp(56px, 7vw, 112px);
  position: relative;
  /* Past the last step: where the ship sails off. */
  padding-bottom: clamp(170px, 30svh, 280px);
}

/* The map holds one fixed place for the whole section: position: sticky
   under the navbar (--cs-map-top: the floating header's own offset, row
   and a 10px gap, from the variables its inline style defines), nothing on
   it follows the scroll — no ancestor between here and the page sets an
   overflow or a containing block that would break the stick (the section
   has no curtain, `rise: false`; body only clips x). Phone: not sticky, full
   bleed, after the last step (the phone block below). From 900px: the right
   half, from under the navbar to the foot of the screen. Its viewBox is
   the whole continent; with motion commerce.js keeps it at the box's own
   shape, so the field reaches every edge. */
.cs-map {
  --cs-map-top: calc(var(--hdr-top, 0px) + var(--hdr-row-h, 60px) + 10px);
  position: sticky;
  z-index: 4;
  top: var(--cs-map-top);
  container-type: inline-size;
  height: 40svh;
  margin: 0 calc(var(--gutter) * -1);
  background: var(--tone-bg);
}
.cs-map .cm-svg {
  display: block;
  width: 100%;
  height: 100%;
}
@media (min-width: 900px) {
  .cs-grid {
    /* The steps' half is a little wider, so the photos can be larger. */
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-areas:
      'head map'
      'route map';
    column-gap: clamp(32px, 4vw, 72px);
  }
  .cs-head {
    grid-area: head;
  }
  .cs-route {
    grid-area: route;
  }
  /* Its own column, and above the steps' layer, so no photo can ever be
     drawn over it or its tag. */
  .cs-map {
    grid-area: map;
    z-index: 2;
    align-self: start;
    height: calc(100svh - var(--cs-map-top));
    margin: 0;
    background: none;
  }
}
/* No z-index on the rail itself: the line, the nodes and the load each
   take their own layer (line under nodes under load). */
.cs-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--rail);
  pointer-events: none;
}
.cs-line {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
}
.cs-line-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.5px;
  width: 1px;
  background: repeating-linear-gradient(
    180deg,
    var(--rule) 0 4px,
    transparent 4px 10px
  );
}
.cs-line-drawn {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 0 calc((1 - var(--route-p, 1)) * 100%) 0);
}
.rv-scenes .cs-line-drawn {
  clip-path: inset(0 0 calc((1 - var(--route-p, 0)) * 100%) 0);
}
.cs-line-flow {
  position: absolute;
  inset: -24px 0 0;
  background: repeating-linear-gradient(
    180deg,
    var(--accent) 0 14px,
    transparent 14px 24px
  );
}
.rv-scenes .cs-line-flow {
  animation: cs-flow 1.2s linear infinite;
}
@keyframes cs-flow {
  to {
    transform: translate3d(0, 24px, 0);
  }
}

/* The load: a point with the scene centered on it, at the foot of the line
   when still, sticky at the reading point with rv-scenes. */
.cs-rider {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: calc(var(--rw) * 0.55);
  height: 0;
}
.rv-scenes .cs-rider {
  position: sticky;
  top: var(--tip);
  bottom: auto;
}
.cs-scene {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--rw);
  height: var(--rw);
  max-width: none;
  overflow: visible;
  translate: -50% -50%;
}
.cs-cam {
  transform: var(--cam, translate(0px, -8px));
}
/* The quay sits where the container stands before it is lifted. */
.cs-quay {
  transform: translate(0px, 24px);
  opacity: var(--quay-o, 0);
}
.cs-vessel {
  transform: var(--vessel, none);
  opacity: var(--vessel-o, 1);
}
.cs-ship {
  transform: var(--ship, none);
  opacity: var(--ship-o, 1);
}
.cs-ctr {
  transform: var(--ctr, none);
}
.cs-shell {
  transform: var(--shell, none);
  opacity: var(--shell-o, 1);
}
.cs-load {
  transform: var(--load, none);
}
.cs-deck {
  transform: var(--deck, none);
  opacity: var(--deck-o, 1);
}
.cs-carton {
  transform-box: fill-box;
  transform-origin: center;
}
.cs-carton.c0 {
  transform: var(--c0, none);
}
.cs-carton.c1 {
  transform: var(--c1, none);
}
.cs-carton.c2 {
  transform: var(--c2, none);
}
.cs-carton.c3 {
  transform: var(--c3, none);
}
.cs-carton.c4 {
  transform: var(--c4, none);
}
.cs-carton.c5 {
  transform: var(--c5, none);
}
.cs-doors {
  opacity: var(--doors-o, 1);
}
.cs-cable {
  opacity: var(--cable-o, 0);
}

/* A status tag: the words stacked in one cell, so it is as wide as its
   longest word and none is ever cut, crossfaded by --tag (0 Put away …
   3 Shipped); without it the last word shows. */
.cs-tag {
  position: absolute;
  top: calc(var(--rw) * 0.5 + 6px);
  left: 50%;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 10px 6px 8px;
  border: var(--hairline) solid var(--rule);
  background: var(--tone-bg);
  color: var(--ink);
  font: 500 11px / 1 var(--font-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  white-space: nowrap;
}
.cs-tag-dot {
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--accent);
}
.rv-scenes .cs-tag-dot {
  animation: cs-blink 1.6s var(--ease-in-out) infinite;
}
@keyframes cs-blink {
  50% {
    opacity: 0.25;
  }
}
.cs-tag-win {
  display: block;
  min-width: 0;
}
.cs-tag-roll {
  display: grid;
}
.cs-tag-roll > span {
  grid-area: 1 / 1;
  align-self: center;
  display: block;
  line-height: 1.25;
  text-align: center;
  opacity: clamp(
    0,
    1 - max(var(--tag, 3) - var(--i), var(--i) - var(--tag, 3)) * 2,
    1
  );
}
/* The tag by the load stays inside the line's gutter, wrapping its longer
   words, so it never reaches the steps; below 1280px the gutter is too
   narrow for two lines and the map's tag carries the status (on the still
   map too: reduced motion or no JS, in its corner). */
.cs-rider .cs-tag {
  left: 0;
  right: 0;
  width: fit-content;
  max-width: calc(var(--rail) - 28px);
  margin-inline: auto;
  translate: none;
  white-space: normal;
}
@media (max-width: 1279px) {
  .cs-rider .cs-tag {
    display: none;
  }
  .cs-map:not(.is-live) .cs-map-tag {
    display: flex;
    top: auto;
    bottom: 12px;
    left: 12px;
    translate: none;
  }
}

/* The wake: from the foot of the line out along the ship's heading and on
   into the map at the end of it. Opens from the ship's end with --wake. */
.cs-wake {
  position: absolute;
  z-index: 1;
  top: 100%;
  left: 50%;
  width: min(480px, 42vw);
  height: auto;
  overflow: visible;
  opacity: 0.75;
}
.cs-wake path {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 2 7;
  vector-effect: non-scaling-stroke;
}
.cs-wake .cs-wake-b {
  opacity: 0.55;
}
.cs-wake .cs-wake-c {
  opacity: 0.35;
}
.rv-scenes .cs-wake {
  clip-path: inset(
    0 calc((1 - var(--wake, 0)) * 100%) calc((1 - var(--wake, 0)) * 100%) 0
  );
}

.cs-steps {
  display: grid;
  gap: clamp(72px, 12vw, 180px);
  margin: 0;
  padding: 0 0 0 var(--rail);
  list-style: none;
}
.cs-step {
  position: relative;
  display: grid;
  gap: clamp(18px, 2.2vw, 28px);
  align-items: start;
}
/* Where a step meets the line, level with its number: a ring that fills
   (--node) and pulses once as the load reaches it. */
.cs-node {
  position: absolute;
  z-index: 2;
  top: calc(var(--cs-num) / 2);
  left: calc(var(--rail) / -2);
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: var(--tone-bg);
}
.cs-node::before,
.cs-node::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}
.cs-node::before {
  inset: 2.5px;
  background: var(--accent);
  transform: scale(var(--node, 1));
}
.cs-node::after {
  inset: -1.5px;
  border: 1.5px solid var(--accent);
  opacity: 0;
}
.rv-scenes .cs-step.is-hit .cs-node::after {
  animation: cs-pulse 1.3s var(--ease) both;
}
@keyframes cs-pulse {
  from {
    opacity: 0.9;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(3.4);
  }
}
.cs-shot {
  margin: 0;
  border-radius: var(--card-radius);
  overflow: clip;
}
/* Taller frames (4:3, Marcus's review, Nov 25) and no resting zoom, so the
   photo shows whole from top to bottom (the files are 16:10; 4:3 only trims
   the sides). The load photo is nudged so the container's contents stay in. */
.cs-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.cs-step:nth-child(2) .cs-shot img {
  object-position: 42% 50%;
}
/* Opened from the line's side outward, settling as it opens. */
.rv-scenes .cs-shot {
  clip-path: inset(
    0 calc((1 - var(--sp, 1)) * 100%) 0 0 round var(--card-radius)
  );
}
.rv-scenes .cs-shot img {
  transform: scale(calc(1 + (1 - var(--sp, 1)) * 0.08));
}
.cs-copy {
  max-width: 40ch;
}

@media (min-width: 900px) {
  .cs-route {
    --rail: clamp(150px, 13vw, 190px);
    --tip: 55svh;
    --cs-num: clamp(52px, 4.6vw, 84px);
    padding-bottom: clamp(200px, 30svh, 320px);
  }
  .cs-steps {
    gap: clamp(88px, 13svh, 150px);
  }
  /* The image no longer drifts or rests zoomed in: the whole frame shows. */
}
/* Phone: the same load, smaller, and lighter effects (no pulse, a softer
   warmth, a shorter wake). */
@media (max-width: 899px) {
  .cs-tag {
    top: calc(var(--rw) * 0.5 + 2px);
    gap: 5px;
    padding: 4px 6px 4px 5px;
    font-size: 9px;
  }
  .cs-tag-dot {
    width: 5px;
    height: 5px;
  }
  .cs-wake {
    width: 60vw;
    opacity: 0.5;
  }
  .rv-scenes .cs-warm {
    opacity: calc(var(--warm, 0) * 0.6);
  }
  .rv-scenes .cs-step.is-hit .cs-node::after {
    animation: none;
  }
}
/*
 * Phone: the map is not sticky and not on top. It leaves the steps' column
 * and sits full width after the last step, still inside the section; it
 * plays once, field then routes, when it is 30% in view (commerce.js, the
 * map player). The status tag is the map's own: the one by the load, which would
 * cover the truck and the text, is hidden, and without the reveal (reduced
 * motion, no JS) the map's tag rests in its corner on the last word.
 */
@media (max-width: 899px) {
  .cs-grid {
    grid-template-areas:
      'head'
      'route'
      'map';
  }
  .cs-head {
    grid-area: head;
  }
  .cs-route {
    grid-area: route;
  }
  /* The continent's frame is 630 × 970, taller than wide, so a box wider
     than tall fits it to the height and leaves it small in the middle. At
     about the frame's own shape (154vw) it spans the width; a short or wide
     screen caps it at 78svh. It runs to the section's foot, and the reps
     come in closer under it. */
  .cs-map {
    grid-area: map;
    position: relative;
    top: auto;
    z-index: auto;
    height: clamp(280px, 154vw, 78svh);
  }
  [data-page='commerce'] main > section.cs[data-tone] {
    padding-bottom: 0;
  }
  [data-page='commerce'] main > section.cs + section.cm[data-tone] {
    padding-top: clamp(40px, 10vw, 64px);
  }
}

/* The step being read is lit; the others wait a shade back. */
.cs-copy {
  transition: opacity var(--dur-slow) var(--ease);
}
.cs-route.is-live .cs-step:not(.is-on) .cs-copy {
  opacity: 0.45;
}

/* The number fills from the bottom as the reading point passes it: an
   outline, and the same figure (from data-n, not page text) clipped over
   it. */
.cs-num {
  /* The orange itself is 2.2:1 on the cream; #B85C00 is 4.3. */
  --num-ink: var(--accent-text);
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--cs-num);
  font-weight: 600;
  line-height: 1;
  color: var(--num-ink);
}
[data-theme='dark'] .cs-num {
  --num-ink: var(--accent);
}
.rv-scenes .cs-num {
  color: transparent;
  -webkit-text-stroke: 1px var(--num-ink);
}
.rv-scenes .cs-num::after {
  content: attr(data-n);
  position: absolute;
  inset: 0;
  color: var(--num-ink);
  -webkit-text-stroke: 0;
  clip-path: inset(calc((1 - var(--num, 1)) * 100%) 0 0 0);
}
.cs-step-title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
}
.cs-step-body {
  margin: 10px 0 0;
  color: var(--ink-muted);
  line-height: var(--leading-body);
}

/* The load's inks: solid orange cartons and container, a wooden pallet, a
   dark hull (light in the dark theme) with an orange boot stripe. Strokes
   stay one pixel at any size (non-scaling), so the drawing is crisp. */
.cs-scene {
  --o-line: color-mix(in srgb, var(--rv-orange) 55%, #3a1a00);
  --hull-l: #2b221c;
  --hull-r: #3a2e26;
  --hull-t: #d9d0c6;
  --hull-line: #15100c;
  --bridge: #f4efea;
  --bridge-t: #ffffff;
}
[data-theme='dark'] .cs-scene {
  --hull-l: #6b5b4f;
  --hull-r: #7d6b5d;
  --hull-t: #2a221c;
  --hull-line: #0b0806;
  --bridge: #d9d0c6;
  --bridge-t: #efe8e0;
}
.cs-scene :is(polygon, line, path) {
  stroke-width: 1;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.cs-k,
.cs-c,
.cs-edge {
  stroke: var(--o-line);
}
.cs-k.l {
  fill: color-mix(in srgb, var(--rv-orange) 86%, #000);
}
.cs-k.r {
  fill: var(--rv-orange);
}
.cs-k.t {
  fill: color-mix(in srgb, var(--rv-orange) 62%, #fff);
}
.cs-scene .cs-tape {
  stroke: color-mix(in srgb, var(--rv-orange) 35%, #fff);
  stroke-width: 1.5;
}
.cs-p {
  stroke: #5b3a1e;
}
.cs-p.l {
  fill: #9a6a3e;
}
.cs-p.r {
  fill: #b4804e;
}
.cs-p.t {
  fill: #d2a271;
}
.cs-c.l {
  fill: color-mix(in srgb, var(--rv-orange) 78%, #000);
}
.cs-c.r {
  fill: color-mix(in srgb, var(--rv-orange) 92%, #000);
}
.cs-c.t {
  fill: color-mix(in srgb, var(--rv-orange) 72%, #fff);
}
.cs-rib {
  stroke: color-mix(in srgb, var(--rv-orange) 50%, #2a1200);
}
.cs-in {
  fill: color-mix(in srgb, var(--rv-orange) 35%, #1a0d02);
  stroke: var(--o-line);
}
.cs-in.d {
  fill: color-mix(in srgb, var(--rv-orange) 25%, #120800);
}
.cs-in.f {
  fill: color-mix(in srgb, var(--rv-orange) 45%, #1a0d02);
}
.cs-h,
.cs-b,
.cs-win {
  stroke: var(--hull-line);
}
.cs-h.l {
  fill: var(--hull-l);
}
.cs-h.r {
  fill: var(--hull-r);
}
.cs-h.t {
  fill: var(--hull-t);
}
.cs-scene .cs-stripe {
  stroke: var(--rv-orange);
  stroke-width: 2;
}
.cs-b.l,
.cs-b.r {
  fill: var(--bridge);
}
.cs-b.t {
  fill: var(--bridge-t);
}
.cs-scene .cs-win {
  stroke-width: 2.5;
}
.cs-scene .cs-w {
  stroke: color-mix(in srgb, var(--rv-orange) 55%, transparent);
  stroke-width: 1.25;
  stroke-dasharray: 10 8;
}
.cs-q {
  stroke: var(--rule);
  stroke-dasharray: 4 6;
}
.cs-wire {
  stroke: var(--ink);
}

/* ---------------------------------------------------------- the region */

.cm-head {
  display: grid;
  gap: var(--space-4);
  max-width: 54rem;
  margin-bottom: clamp(32px, 4vw, 60px);
}
.cm-layout {
  display: grid;
  justify-items: center;
  gap: clamp(28px, 4vw, 56px);
}
.cm-svg {
  width: 100%;
  height: auto;
}
/* The field. The coastlines are never stroked, only filled with the dot
   tile — the fill is a presentation attribute in the markup, because a
   bare `url(#id)` in an external stylesheet is not resolved against the
   document everywhere. Here we only colour the dots inside the tile. */
.cm-dot {
  fill: color-mix(in srgb, var(--ink) 42%, transparent);
}
.cm-dot-rep {
  fill: var(--accent);
}
/* A rep's country, filled again in the orange over its own dots. Four of
   the five are large, so the orange sits back until the rep is hovered,
   and the coastline it owns comes up with it. */
.cm-dots-rep {
  opacity: 0.78;
  stroke: transparent;
  stroke-width: 1.6;
  stroke-linejoin: round;
  transition:
    opacity var(--dur-base),
    stroke var(--dur-base);
}
.cm-ground.is-lit .cm-dots-rep {
  opacity: 1;
  stroke: color-mix(in srgb, var(--accent) 70%, transparent);
}
/* No non-scaling-stroke here: it makes the dash ignore pathLength="1" and
 * the longest routes get cut off halfway down the continent. */
.cm-arc {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  opacity: 0.6;
}
.cm-home-dot {
  fill: var(--chrome);
  stroke: var(--accent);
  stroke-width: 3;
}
.cm-home-pulse {
  fill: var(--accent);
  opacity: 0.35;
  transform-box: fill-box;
  transform-origin: center;
}
.cm-pin-cast {
  fill: rgb(11 13 18 / 18%);
}
.cm-pin-drop {
  fill: var(--chrome);
}
.cm-pin-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.cm-pin-body {
  transform-box: fill-box;
  transform-origin: bottom center;
}

/* The ship that rides a route out. */
.cm-ship {
  opacity: 0;
}
.cm-ship-body {
  scale: var(--flip, 1) 1;
}
.cm-ship-hull {
  fill: var(--ink);
}
.cm-ship-bridge {
  fill: var(--chrome);
  stroke: var(--ink);
  stroke-width: 1;
}
.cm-ship-box {
  fill: var(--accent);
}
.cm-ship-box.b {
  fill: color-mix(in srgb, var(--ink) 55%, var(--accent));
}
/* The camera zooms the field: the origin's ring keeps its weight. */
.cm-home-dot {
  vector-effect: non-scaling-stroke;
}

/* The map's own status tag: hidden until the reveal runs, then it stands
   just east of Hialeah, over open sea, while the ships go out, ticking to
   the last word. Never west of it: there it hung out of the map's column
   toward the photos. --tx/--ty are the dot's place in the map box, in px;
   min() keeps the longer words (ES "Auditado para exportación") 8px inside
   the map's right edge. */
.cs-map-tag {
  display: none;
}
.cs-map.is-live .cs-map-tag {
  display: flex;
  top: 0;
  left: 0;
  translate: min(calc(var(--tx, 0px) + 18px), calc(100cqw - 100% - 8px))
    calc(var(--ty, 0px) - 50%);
  opacity: var(--tag-o, 0);
}

/* The reveal, run by commerce.js on `.cs-map.is-live`: the field, then the
   routes and pins, once on a clock. Every value is set per frame
   on a handful of groups — an island, a route, a pin, a ship — never on a
   dot. */
.cs-map.is-live .cm-isle {
  transform-box: fill-box;
  transform-origin: center;
  opacity: var(--isle, 0);
  scale: calc(0.55 + 0.45 * var(--isle, 0));
}
.cs-map.is-live .cm-arc {
  stroke-dashoffset: var(--off, 1);
}
.cs-map.is-live .cm-ground {
  opacity: var(--land, 0);
}
.cs-map.is-live .cm-pin-body {
  opacity: var(--drop-o, 0);
  translate: 0 var(--drop-y, 0);
}
.cs-map.is-live .cm-pin-cast {
  transform-box: fill-box;
  transform-origin: center;
  opacity: var(--cast, 0);
  scale: calc(0.2 + 0.8 * var(--cast, 0));
}
.cs-map.is-live .cm-ship {
  opacity: var(--ship-o, 0);
  translate: var(--sx, 0) var(--sy, 0);
}
.cs-map.is-live .cm-home-pulse {
  animation: cm-pulse 2.6s var(--ease-out) infinite;
}
/* Browse (commerce.js, `s` under 1): before any route leaves, the origin
   calls out — a quicker, wider ping. */
.cs-map.is-live.is-origin .cm-home-pulse {
  animation: cm-ping 1.3s var(--ease-out) infinite;
}
@keyframes cm-ping {
  from {
    opacity: 0.7;
    transform: scale(0.8);
  }
  to {
    opacity: 0;
    transform: scale(3.6);
  }
}
@keyframes cm-pulse {
  from {
    opacity: 0.4;
    transform: scale(0.7);
  }
  to {
    opacity: 0;
    transform: scale(2.4);
  }
}
/* Hovering either side lights the pair. The ground's fade is on the group
   and its settled tone on the path inside it, so the reveal holding the
   group still leaves the hover somewhere to go. */
.cm-pin.is-lit .cm-pin-ring {
  stroke-width: 3;
  animation: cm-pulse 1.4s var(--ease-out) infinite;
}
.cm-pin .cm-pin-ring {
  transition: stroke-width var(--dur-base);
}
.cm-pin.is-lit .cm-pin-body {
  transform: translateY(-6px);
  transition: transform var(--dur-base) var(--ease-spring);
}

/*
 * The reps (reps.mjs), each a framed print with a passport chip on its
 * corner. Left-aligned, read top to bottom: who (the photo and the name,
 * with a short orange tick under it), where (the chip on the photo: round
 * flag + ISO code; the country spelled out under the name), what (the role,
 * the quietest line).
 *
 * One row of four from 761px, two by two below. The rows are centred flex
 * rows, so a rep left alone on a last row sits in the middle at the same
 * width. Each rep is lit together with its map pin (`.is-lit`, commerce.js,
 * on pointer enter and focus; a tap on a phone is a pointer enter too), so
 * hover, focus and tap share one state, `--lit` (0 → 1): the card lifts, the
 * photo pushes in and an orange frame comes up inside it, the chip rises
 * with its flag turning and its code in orange, and the tick runs out.
 * The ISO code is CSS (`attr(data-code)`, aria-hidden, from the flag's
 * file name), not copy. The portrait reveal (`.rv-ph`) holds a `transform`
 * on the photo, so the push-in uses `scale`, and the lift `translate`.
 * Reduced motion: the same states, without the transitions.
 */
.cm-reps {
  --reps-cols: 4;
  --reps-gap: clamp(16px, 2.4vw, 36px);
  --print-r: clamp(18px, 2vw, 28px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(40px, 4.4vw, 64px) var(--reps-gap);
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.cm-rep {
  --lit: 0;
  position: relative;
  flex: 0 0
    calc((100% - (var(--reps-cols) - 1) * var(--reps-gap)) / var(--reps-cols));
  min-width: 0;
}
.cm-rep:is(:hover, .is-lit, :focus-within) {
  --lit: 1;
}
.cm-fig {
  position: relative;
}
.cm-photo {
  display: block;
  aspect-ratio: 1;
  overflow: clip;
  border-radius: var(--print-r);
  background: var(--chrome);
  box-shadow:
    0 0 0 1px var(--rule),
    0 28px 48px -34px rgb(36 28 23 / 55%);
}
.cm-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: calc(1 + var(--lit) * 0.05);
}
/* The orange frame drawn inside the print when lit. */
.cm-fig::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--print-r);
  box-shadow: inset 0 0 0 2.5px var(--accent);
  opacity: var(--lit);
  pointer-events: none;
}
.cm-tag {
  position: absolute;
  left: clamp(10px, 1.2vw, 16px);
  bottom: 0;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 5px;
  border-radius: 999px;
  /* White in both themes, like the hero's chips (the store's own). */
  background: #ffffff;
  color: #0b0d12;
  font: 600 13px / 1 var(--font-mono);
  letter-spacing: 0.14em;
  box-shadow:
    0 0 0 1px rgb(36 28 23 / 8%),
    0 12px 26px -12px rgb(36 28 23 / 50%);
  translate: 0 calc(50% - var(--lit) * 4px);
}
.cm-flag {
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
  overflow: clip;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(11 13 18 / 12%);
  rotate: calc(var(--lit) * -12deg);
  scale: calc(1 + var(--lit) * 0.12);
}
.cm-flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cm-iso::before {
  content: attr(data-code);
}
.cm-iso {
  color: color-mix(
    in srgb,
    var(--rv-orange-text) calc(var(--lit) * 100%),
    #0b0d12
  );
}
.cm-body {
  padding-top: clamp(30px, 2.6vw, 36px);
}
.cm-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  line-height: 1.1;
}
.cm-name::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 12px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(calc(0.4 + var(--lit) * 0.6));
  transform-origin: left;
}
.cm-country {
  margin: 12px 0 0;
  font-size: clamp(14px, 1.1vw, 15.5px);
  font-weight: 600;
  line-height: 1.3;
}
.cm-role {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: clamp(13px, 1vw, 14px);
  line-height: 1.4;
}
@media (max-width: 760px) {
  .cm-reps {
    --reps-cols: 2;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .cm-rep {
    transition: translate var(--dur-slow) var(--ease-out);
  }
  .cm-rep:is(:hover, .is-lit, :focus-within) {
    translate: 0 -4px;
  }
  .cm-photo img {
    transition: scale 900ms var(--ease-out);
  }
  .cm-fig::after {
    transition: opacity var(--dur-base) var(--ease-out);
  }
  .cm-tag {
    transition: translate var(--dur-slow) var(--ease-spring);
  }
  .cm-flag {
    transition:
      rotate var(--dur-slow) var(--ease-spring),
      scale var(--dur-slow) var(--ease-spring);
  }
  .cm-name::after {
    transition: transform var(--dur-slow) var(--ease-out);
  }
}

/* Under the reps: WhatsApp, once its number is set (the sales@ line is gone). */
.cm-reach {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  font-size: 16px;
  font-weight: 600;
}
.cm-wa-icon {
  width: 18px;
  height: 18px;
}
.cm-msg {
  margin-top: 14px;
}

/* The store's two doors, pinned to the foot of the screen between the hero
   and the closing CTA. commerce.js adds .is-on; off, it is `inert` as well
   as invisible, so nothing in it can be reached. */
.cab {
  position: fixed;
  left: 50%;
  bottom: max(var(--gutter), env(safe-area-inset-bottom, 0px));
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: var(--chrome);
  color: #ffffff;
  border-radius: var(--btn-radius);
  box-shadow: 0 18px 40px rgb(11 13 18 / 28%);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, calc(100% + var(--gutter)));
  transition:
    transform var(--dur-slow) var(--ease-emph),
    opacity var(--dur-base) var(--ease-out),
    visibility 0s var(--dur-slow);
}
.cab.is-on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition:
    transform var(--dur-slow) var(--ease-emph),
    opacity var(--dur-base) var(--ease-out);
}
.cab .btn {
  white-space: nowrap;
}
.cab .btn-line {
  border-color: rgb(255 255 255 / 40%);
}
.cab :focus-visible {
  outline-color: #ffffff;
}

/* Talk to a rep, when it comes back on (FEATURES.talkToRep). */
.cm-float {
  position: fixed;
  right: max(var(--gutter), env(safe-area-inset-right, 0px));
  bottom: max(var(--gutter), env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border: 0;
  border-radius: 999px;
  background: var(--chrome);
  color: #ffffff;
  font: 600 15px / 1.2 var(--font-body);
  cursor: pointer;
  box-shadow: 0 14px 34px -14px rgb(11 13 18 / 60%);
}
.cm-float img {
  width: 40px;
  height: 40px;
}

/* ------------------------------------------------------- the spotlight */

.ct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(20px, 2.4vw, 40px);
}
.ct-quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: clamp(24px, 2.6vw, 40px);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--rule),
    0 20px 40px -32px rgb(36 28 23 / 45%);
}
.ct-text {
  margin: 0;
  font-size: clamp(19px, 1.7vw, 26px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
}
.ct-by {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ct-by img {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--chrome);
}
.ct-name {
  display: block;
  font-weight: 600;
}
.ct-role {
  display: block;
  color: var(--ink-muted);
  font-size: 14px;
}

/* --------------------------------------------------------- the way out */

/*
 * No band and no edge: the section keeps the page colour and the wash is
 * painted inside it — Home's soft blurred light, here in pale peach
 * (site.css, `.wash`: #FF8001 mixed into white in light, into near-black
 * brown in dark), dark ink in light and white in dark. The strong orange is
 * only on the primary button, and on the veil that grows out of it.
 */
.cx {
  padding-block: var(--section-pad);
}
.cx-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 3vw, 48px);
  align-items: end;
}
/* Two balanced lines beside the buttons: the size follows the title's own
   column (cqi), as the hero's does — --cx-m is the longer line's width in em
   at 700 ("Your Next Container" 9.21, "Tu próximo contenedor" 10.46) plus a
   little room. */
.cx-head {
  container-type: inline-size;
}
.cx-title {
  --cx-m: 9.6;
  margin: 0;
  font-size: clamp(40px, calc(100cqi / var(--cx-m)), 96px);
  font-weight: 700;
  line-height: 0.96;
  text-wrap: balance;
  color: var(--wash-ink);
}
:lang(es) .cx-title {
  --cx-m: 10.9;
}
.cx .accent-dot {
  color: var(--wash-dot);
}
.cx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cx-btn {
  padding: 17px 26px;
}
/* The one strong color in the band: near-black on #FF8001 is 8.4:1, and the
   veil that grows out of this button is the same orange. */
.cx .btn-ink {
  background: var(--rv-orange);
  color: #0b0d12;
}
.cx .btn-ink:hover {
  background: color-mix(in srgb, var(--rv-orange) 86%, #fff);
}
.cx .btn-line {
  color: var(--wash-ink);
  border-color: var(--wash-ink-soft);
}

/*
 * The way into the store: a circle of the same orange grows out of the
 * button until it covers the screen, and the script follows the link on the
 * other side. It is only ever a transition on clip-path, and a plain click
 * with reduced motion or without JS never reaches it.
 */
.cx-veil {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--rv-orange);
  clip-path: circle(0 at var(--cx-x, 50%) var(--cx-y, 50%));
  pointer-events: none;
  visibility: hidden;
}
.cx-veil.is-on {
  visibility: visible;
  clip-path: circle(150vmax at var(--cx-x, 50%) var(--cx-y, 50%));
  transition: clip-path 620ms var(--ease-emph);
}

/* ---------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .ca-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .cx-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 640px) {
  .ch-title {
    font-size: clamp(38px, 11vw, 60px);
  }
  .ch-browse {
    flex: 1 1 100%;
    justify-content: center;
  }
  .ca-facts {
    grid-template-columns: minmax(0, 1fr);
  }
  /* "A Rep in Your Market": heading and subtitle centred on a phone only
     (the lede's own max-width is auto-margined so it sits on the middle). */
  .cm-head {
    text-align: center;
    justify-items: center;
  }
  [data-page='commerce'] .cm-head .section-lede {
    margin-inline: auto;
  }
  /* Full width on a phone; while it is up, Mr. RIVERO's button steps up
     out of its way. */
  .cab {
    left: var(--gutter);
    right: var(--gutter);
    transform: translateY(calc(100% + var(--gutter)));
  }
  [data-page='commerce']:has(.cab.is-on) .mrl {
    transform: translateY(-64px);
  }
  [data-page='commerce'] .mrl {
    transition:
      opacity var(--dur-slow) var(--ease-out),
      transform var(--dur-slow) var(--ease-emph);
  }
  .cab.is-on {
    transform: none;
  }
  .cab .btn {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    padding-inline: 10px;
    font-size: 13px;
  }
  .cs-num {
    font-size: 52px;
  }
}

/*
 * Reduced motion: everything is already in its finished pose (site.css cuts
 * every duration and commerce.js never adds rv-cx, so the map is drawn in
 * full), and the rail keeps its scroll but loses the snap pull.
 */
@media (prefers-reduced-motion: reduce) {
  .cc-rail {
    scroll-snap-type: none;
  }
  .cc-bubble {
    display: none;
  }
  .magnetic {
    transform: none;
  }
}
