/* The style dial on the B2B home (business/includes/r13_style_dial.html).
 * The try-ons sit stacked in one 3:4 frame and crossfade by opacity; the
 * pieces of the current look are framed: Ink for the anchor, Signal for
 * what the dial swapped. Square corners, solid lines. */
.r13-dial { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.r13-dial-stage { position: relative; aspect-ratio: 3 / 4; background: #F2F2F2; overflow: hidden; width: 100%; max-width: 520px; }
.r13-dial-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block;
  opacity: 0; transition: opacity .45s cubic-bezier(.2,0,0,1); }
.r13-dial-img.is-on { opacity: 1; }
.r13-dial-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.r13-dial-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #121110; }
.r13-dial-btn { position: relative; min-height: 48px; padding: 0 10px; background: #fff; color: #121110; font-size: 15px; font-weight: 500;
  border: 0; border-left: 1px solid #121110; cursor: pointer; transition: background-color .2s, color .2s; }
.r13-dial-btn:first-child { border-left: 0; }
.r13-dial-btn:hover { background: #F2F2F2; }
.r13-dial-btn[aria-pressed="true"] { background: #121110; color: #fff; }
.r13-dial-btn[aria-pressed="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #F5B82E; }
.r13-dial-range { width: 100%; height: 32px; accent-color: #121110; cursor: pointer; }
.r13-dial-pieces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.r13-dial-piece { position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.r13-dial-pic { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; background: #F2F2F2; overflow: hidden; }
.r13-dial-pic img { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; }
.r13-dial-piece.is-anchor .r13-dial-pic { outline: 2px solid #121110; outline-offset: -2px; }
.r13-dial-piece.is-swapped .r13-dial-pic { outline: 3px solid #F5B82E; outline-offset: -3px; }
.r13-dial-tag { position: absolute; top: 6px; left: 6px; padding: 2px 6px; font: 400 10px/1.4 'DM Mono', ui-monospace, monospace;
  text-transform: uppercase; letter-spacing: .08em; background: #121110; color: #fff; }
.r13-dial-piece.is-swapped .r13-dial-tag { background: #F5B82E; color: #121110; }
/* The swap: pieces enter one after another. */
.r13-dial-look.is-entering .r13-dial-piece.is-swapped { animation: r13-dial-in .42s cubic-bezier(.2,0,0,1) both; }
.r13-dial-look.is-entering .r13-dial-piece:nth-child(3) { animation-delay: .06s; }
.r13-dial-look.is-entering .r13-dial-piece:nth-child(4) { animation-delay: .12s; }
.r13-dial-look.is-entering .r13-dial-piece:nth-child(5) { animation-delay: .18s; }
@keyframes r13-dial-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (min-width: 640px) {
  .r13-dial-pieces { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .r13-dial { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .r13-dial-img, .r13-dial-btn { transition: none; }
  .r13-dial-look.is-entering .r13-dial-piece.is-swapped { animation: none; }
}
.r13-dial-look[hidden] { display: none !important; }
