/* Content at scale on the B2B home (business/includes/r13_content_reel.html).
 * Without JS: a scrollable row of try-on cards and the six channels.
 * .is-flow (JS, from md): a coverflow across the full width, every card
 *   placed by r13-content-reel.js through --x, --r, --s, --z, --o.
 * .is-scroll (JS, from lg, motion allowed): the track grows tall and the
 *   stage pins, so the scroll turns the reel and reveals the channels.
 * Products are never pictures here: one ink square per product, in the channels. */
.r13-reel-track { position: relative; }
.r13-reel-sticky { display: flex; flex-direction: column; gap: 28px; padding: 72px 0 64px; }
.r13-reel-band { position: relative; flex: none; width: 100%; overflow: hidden; }

/* The no-JS row */
.r13-reel-cards { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 16px; }
.r13-reel-item { flex: none; width: 200px; scroll-snap-align: center; }
.r13-reel-card { position: relative; display: block; background: #fff; color: #121110; padding: 8px; text-decoration: none; }
.r13-reel-card img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; background: #F2F2F2;
  -webkit-user-drag: none; user-select: none; }
.r13-reel-card:focus-visible { outline: 3px solid #F5B82E; outline-offset: 3px; }

/* The coverflow */
.is-flow .r13-reel-band { height: var(--band-h, 420px); perspective: 1400px; touch-action: pan-y; cursor: grab; }
.is-flow .r13-reel-band.is-dragging { cursor: grabbing; }
.is-flow .r13-reel-cards { display: block; overflow: visible; padding: 0; height: 100%; position: relative; transform-style: preserve-3d; }
.is-flow .r13-reel-item { position: absolute; left: 50%; top: 50%; width: var(--card-w, 280px); margin-left: calc(var(--card-w, 280px) / -2);
  transform: translate3d(var(--x, 0px), -50%, 0) rotateY(var(--r, 0deg)) scale(var(--s, 1)); z-index: var(--z, 1); opacity: var(--o, 1);
  transform-style: preserve-3d; will-change: transform; }
.is-flow.is-animating .r13-reel-item { transition: transform .5s cubic-bezier(.2,0,0,1), opacity .5s; }
.is-flow .r13-reel-card { box-shadow: 0 24px 40px -18px rgba(0,0,0,.7); }
.is-flow .r13-reel-card::after { content: ''; position: absolute; inset: 0; background: #121110; opacity: var(--dim, 0); pointer-events: none; }
.is-flow .r13-reel-item.is-centre .r13-reel-card { outline: 3px solid #F5B82E; outline-offset: 4px; }

/* The bar between the reel and the channels: label left, reel buttons right */
.r13-reel-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.r13-reel-nav { display: flex; gap: 8px; }
.r13-reel-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: #fff; color: #121110;
  border: 1px solid #fff; font-size: 18px; cursor: pointer; }
.r13-reel-btn:hover { background: #F5B82E; border-color: #F5B82E; }
.r13-reel-btn:focus-visible { outline: 3px solid #F5B82E; outline-offset: 3px; }

/* ---- Channels: the centre look, as each channel shows a look ----------- */
.r13-reel-foot { display: flex; flex-direction: column; gap: 12px; }
.r13-reel-channels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 16px; }
.r13-reel-channel { display: flex; flex-direction: column; gap: 8px; min-width: 0; transition: opacity .4s cubic-bezier(.2,0,0,1), transform .4s cubic-bezier(.2,0,0,1); }
.r13-reel-cname { font-size: 15px; line-height: 1.3; }
.is-scroll .r13-reel-channel { opacity: .22; transform: translateY(10px); }
.is-scroll .r13-reel-channel.is-shown { opacity: 1; transform: none; }
.is-scroll .r13-reel-channel.is-current .r13-frame { outline: 2px solid #F5B82E; outline-offset: 3px; }

/* Every frame is laid out from its height --fh, so the pictures and the
 * squares keep their shape at every size. */
.r13-frame { --fh: 210px; --pad: 8px; position: relative; display: flex; flex-direction: column; height: var(--fh); background: #fff; overflow: hidden;
  padding: var(--pad); gap: 6px; color: #121110; }
.r13-frame img { display: block; flex: none; object-fit: cover; object-position: top; background: #F2F2F2; }
.r13-frame i, .r13-frame b, .r13-frame u, .r13-frame s, .r13-frame em { display: block; flex: none; text-decoration: none; }
.r13-frame i { height: 4px; background: #E6E4E1; }
.r13-frame i.w60 { width: 60%; }
.r13-frame i.w40 { width: 40%; }
.r13-frame b { height: 10px; width: 54%; background: #121110; }
/* Scoped to the frames: the product squares of "See it on your shop"
   (r13_story.css) share the class name, and an unscoped rule turned them ink. */
.r13-frame .r13-sq { display: block; flex: none; width: var(--sq); height: var(--sq); background: #121110; }
.r13-frame .r13-sq[hidden] { display: none; }
/* The shop's header: logo, menu line, bag */
.r13-f-bar { display: flex; align-items: center; gap: 8px; height: 10px; flex: none; }
.r13-f-bar u { width: 26px; height: 6px; background: #121110; }
.r13-f-bar i { flex: 1; height: 3px; max-width: 46%; margin: 0 auto; }
.r13-f-bar s { width: 8px; height: 8px; border: 1.5px solid #121110; }

/* Product page: the product's gallery left, the buy box right, under it the
 * look ("Complete the look") with its products in a column to the right. */
.r13-frame-pdp { --row: calc(var(--fh) - 2 * var(--pad) - 16px); --ctl: calc(var(--row) - 44px); --sq: min(calc((var(--ctl) - 12px) / 5), 22px); }
.r13-f-pdp { height: var(--row); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 10px; }
.r13-f-gal { background: #F2F2F2; display: flex; align-items: center; justify-content: center; }
.r13-f-gal .r13-sq-lg { width: 38%; height: auto; aspect-ratio: 1 / 1; }
.r13-f-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.r13-f-info b { margin-top: 1px; }
.r13-f-kick { width: 36%; height: 3px; background: #121110; margin-top: 4px; }
.r13-f-ctl { display: flex; gap: 6px; height: var(--ctl); }
.r13-f-ctl img { height: 100%; aspect-ratio: 3 / 4; width: auto; }
.r13-f-col { display: flex; flex-direction: column; gap: 3px; }

/* Look page: the full-length look, its products in a column beside it, the
 * look's text and "add all" to the right. */
.r13-frame-look { --row: calc(var(--fh) - 2 * var(--pad) - 16px); --sq: min(calc((var(--row) - 16px) / 5), 26px); }
.r13-f-lookpage { height: var(--row); display: flex; gap: 6px; padding-left: 10%; }
.r13-f-lookpage img { height: 100%; aspect-ratio: 3 / 4; width: auto; }
.r13-f-lookpage .r13-f-col { gap: 4px; }
.r13-f-side { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding-left: 10px; }
.r13-f-side b { width: 80%; margin-top: 4px; }

/* Newsletter: the mail on a grey client, the look, its products below it */
.r13-frame-mail { background: #F2F2F2; align-items: center; --sq: 13px; }
.r13-f-mail { height: 100%; width: 66%; background: #fff; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; }
.r13-f-logo { width: 30%; height: 5px; background: #121110; flex: none; }
.r13-f-head { width: 62%; }
.r13-f-mail img { height: calc(var(--fh) - 2 * var(--pad) - 12px - 5px - 4px - var(--sq) - 10px - 20px); aspect-ratio: 3 / 4; width: auto; }
.r13-f-row { display: flex; gap: 4px; flex: none; }
.r13-f-mail b { width: 46%; }

/* Social media: a post as on Instagram */
.r13-frame-social { background: #F2F2F2; align-items: center; --sq: 11px; }
.r13-f-post { height: 100%; background: #fff; display: flex; flex-direction: column; gap: 4px; padding: 6px; --shot: calc(var(--fh) - 2 * var(--pad) - 12px - 12px - 12px - var(--sq) - 8px - 24px); }
.r13-f-user { display: flex; align-items: center; gap: 5px; height: 12px; flex: none; }
.r13-f-user u { width: 12px; height: 12px; border-radius: 9999px; background: #121110; box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px #F5B82E; }
.r13-f-user i { width: 40%; }
.r13-f-user s { margin-left: auto; width: 10px; height: 2px; background: #121110; box-shadow: none; }
.r13-f-shot { display: block; flex: none; width: calc(var(--shot) * .8); height: var(--shot); }
.r13-f-shot img { width: 100%; height: 100%; }
.r13-f-acts { display: flex; align-items: center; gap: 6px; height: 12px; flex: none; }
.r13-f-acts svg { width: 12px; height: 12px; fill: none; stroke: #121110; stroke-width: 2.2; stroke-linejoin: round; }
.r13-f-acts .r13-f-save { margin-left: auto; }
.r13-f-post > i { width: 86%; }

/* Retail media: a retail site's grid, the sponsored banner (the look, its
 * products, a button) across the top, plain products under it */
.r13-frame-banner { --row: calc(var(--fh) - 2 * var(--pad) - 16px); --sq: 10px; }
.r13-f-retail { height: var(--row); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1.9fr) minmax(0, 1fr); gap: 5px; }
.r13-f-ad { grid-column: 1 / 3; display: flex; gap: 8px; border: 1px solid #E6E4E1; padding: 4px; min-width: 0; min-height: 0; }
.r13-f-ad img { height: 100%; aspect-ratio: 3 / 4; width: auto; }
.r13-f-adtext { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.r13-f-adtext em { font: normal 400 8px/1 'DM Mono', ui-monospace, monospace; color: #5E5B57; text-transform: uppercase; letter-spacing: .08em; }
.r13-f-adtext .r13-f-row { gap: 3px; flex-wrap: wrap; }
.r13-f-adtext b { width: 80%; }
.r13-f-cell { background: #F2F2F2; }

/* You name it: the open last tile */
.r13-frame-more { background: transparent; border: 1px solid #5E5B57; align-items: center; justify-content: center; }
.r13-f-more { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 46%; }
.r13-f-plus { font: 400 80px/.9 'Anton', Impact, sans-serif; color: #F5B82E; }
.r13-f-more i { width: 100%; background: #3A3835; }
.r13-f-more i.w60 { width: 60%; }

@media (min-width: 768px) {
  .r13-reel-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .r13-reel-channels { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 14px; }
  .r13-f-pdp { grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 6px; }
  .r13-f-lookpage { justify-content: center; padding-left: 0; }
  .r13-f-side { display: none; }
  .r13-reel-cname { font-size: 14px; }
  .r13-frame { --fh: clamp(150px, 22vh, 220px); }
  .is-scroll .r13-reel-track { height: 320vh; }
  .is-scroll .r13-reel-sticky { position: sticky; top: var(--reel-top, 0px); height: calc(100vh - var(--reel-top, 0px)); padding: clamp(16px, 3.6vh, 48px) 0 clamp(14px, 2.6vh, 28px);
    gap: clamp(10px, 2vh, 22px); justify-content: center; overflow: hidden; }
  .is-scroll .r13-reel-head .reveal { opacity: 1; transform: none; }
  .is-scroll .r13-reel-h { font-size: clamp(40px, 6.4vh, 60px); }
  .is-scroll .r13-reel-foot { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .r13-reel-channel, .is-flow.is-animating .r13-reel-item { transition: none; }
}
.r13-reel-nav[hidden] { display: none !important; }
