/* One look, start to sale (business/includes/walkthrough.html, round 17).
 *
 * Phone and no JS: each step with its own visual (.wk-mini) below it. With JS
 * each one plays its moment once it scrolls in (.is-play from js/r17-walk.js);
 * before that it waits in its first state. Without JS, and with reduced motion,
 * every visual shows its end.
 *
 * From xl (1280 px) with JS: the steps on the left, one pinned stage on the right. The
 * stage's data-state (1 to 7) says which step is being read; data-mode (data,
 * shop) and data-cards (big, gone, row, col) group the states. The cards are
 * the same seven elements all the way: the blazer alone beside the feed row
 * (1, 2), into the first search result (3), the look in a row (4), the swap (5,
 * after .is-refined), a column beside the try-on (6) and the bag list (7).
 * The arena is a size container, so everything is placed in cqw/cqh.
 * Ease cubic-bezier(.2,0,0,1), 150 to 900 ms; nothing bounces.
 */

/* ---- The steps ----------------------------------------------------------- */
.wk-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 56px; }
.wk-step { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.wk-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wk-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0;
  border: 1px solid #8E8A85; color: #E6E4E1; font-family: 'DM Mono', ui-monospace, monospace; font-size: 13px;
  transition: background-color .28s linear, color .28s linear, border-color .28s linear; }
.wk-title { margin: 0; font-size: 24px; font-weight: 300; line-height: 1.15; }
.wk-body { margin: 0; font-size: 15px; line-height: 1.6; color: #E6E4E1; }
.wk-module { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px;
  background: #F5B82E; color: #121110; font-size: 14px; font-weight: 500; text-decoration: none; }
.wk-module:hover { background: #fff; }
@media (min-width: 768px) { .wk-title { font-size: 32px; } }

/* ---- Shared parts ---------------------------------------------------------- */
.wk-mini { background: #fff; color: #121110; padding: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; position: relative; }
.wk-mini p, .wk-stage p, .wk-mini figure, .wk-stage figure { margin: 0; }
.wk-small { font-size: 13px; line-height: 1.55; color: #5E5B57; }
.wk-m-pic, .wk-pic, .wk-thumb { display: block; position: relative; aspect-ratio: 3 / 4; background: #F2F2F2; overflow: hidden; }
.wk-m-pic img, .wk-pic img, .wk-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.wk-role { font-family: 'DM Mono', ui-monospace, monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: #5E5B57; }
.wk-name { font-size: 13px; line-height: 1.3; }

.wk-feed-rows { display: flex; flex-direction: column; margin: 0; border: 1px solid #121110; font-family: 'DM Mono', ui-monospace, monospace; font-size: 13px; }
.wk-feed-rows > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 8px 12px; border-top: 1px solid #E6E4E1; }
.wk-feed-rows > div:first-child { border-top: 0; }
.wk-feed-rows dt { color: #5E5B57; }
.wk-feed-rows dd { margin: 0; overflow-wrap: anywhere; }

.wk-attrs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.wk-attrs li { border: 1px solid #121110; padding: 7px 10px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wk-attrs li.is-type { background: #121110; color: #fff; }
.wk-attrs li.is-type .wk-attr-k { color: #F5B82E; }
.wk-attr-k { font-family: 'DM Mono', ui-monospace, monospace; font-size: 10px; color: #5E5B57; text-transform: uppercase; letter-spacing: .04em; }
.wk-attr-v { font-size: 13px; line-height: 1.3; }
.wk-attrs .wk-attr-more { border-color: #8E8A85; color: #5E5B57; justify-content: center; font-family: 'DM Mono', ui-monospace, monospace; font-size: 13px; }

.wk-field { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid #121110; background: #fff; font-size: 15px; min-width: 0; }
.wk-field svg { flex-shrink: 0; }
.wk-caret { display: inline-block; width: 1px; height: 1.1em; margin-left: -8px; background: #121110; opacity: 0; }
.wk-typing .wk-caret, .wk-caret.is-on { opacity: 1; animation: wk-blink 1s steps(1) infinite; }
@keyframes wk-blink { 50% { opacity: 0; } }
.wk-understood { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: #5E5B57; }
.wk-understood span { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; background: #F5B82E; color: #121110; font-family: 'DM Mono', ui-monospace, monospace; font-size: 11px; }
.wk-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wk-results span { display: block; background: #F2F2F2; overflow: hidden; }
.wk-results img { display: block; width: 100%; height: auto; }
.wk-look-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.wk-look-head .display { font-size: 24px; line-height: 1; }
.wk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wk-chips .chip { cursor: default; }

/* Ticks (step 07): checked = ink square with a Signal check. */
.wk-tick { position: absolute; z-index: 2; width: 20px; height: 20px; background: #121110; border: 1px solid #121110; transition: background-color .2s linear, opacity .25s cubic-bezier(.2,0,0,1), transform .25s cubic-bezier(.2,0,0,1); }
.wk-tick::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #F5B82E; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: opacity .15s linear; }
.is-unticked .is-left .wk-tick { background: #fff; }
.is-unticked .is-left .wk-tick::after { opacity: 0; }
.wk-tick.is-press { transform: scale(.82); }

/* Buttons in the pictures. */
.wk-ripple { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: rgba(255,255,255,.5); transform: scale(0); opacity: 0; pointer-events: none; }
.is-pressed > .wk-ripple, .wk-addall.is-pressed .wk-ripple { animation: wk-ripple .65s cubic-bezier(.2,0,0,1); }
@keyframes wk-ripple { from { transform: scale(0); opacity: .9; } to { transform: scale(12); opacity: 0; } }
.wk-addall { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: #121110; color: #fff; font-size: 13px; white-space: nowrap; transition: transform .15s cubic-bezier(.2,0,0,1); }
.wk-addall.is-pressed { transform: scale(.95); }
.wk-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #121110; background: #fff; transition: background-color .28s linear; }
.wk-cart.is-bump { background: #F5B82E; }
.wk-badge { position: absolute; right: -7px; top: -7px; min-width: 20px; height: 20px; padding: 0 4px; background: #F5B82E; color: #121110; font-family: 'DM Mono', ui-monospace, monospace; font-size: 11px; line-height: 20px; text-align: center; transition: transform .2s cubic-bezier(.2,0,0,1); }
.wk-badge.is-empty { transform: scale(0); }
.wk-heart { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
.wk-heart path, .wk-like path, .wk-m7-like path { transition: fill .2s linear; }
.is-liked .wk-heart path { fill: #121110; }

/* ---- The try-on (steps 06 and 07) ---------------------------------------- */
.wk-try { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wk-try-pic { position: relative; aspect-ratio: 3 / 4; background: #F2F2F2; overflow: hidden; }
.wk-try-pic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The dots: a thin white ring with a small centre, a 32 px target. The one
   picked turns Signal with an ink ring. */
.wk-dot { position: absolute; z-index: 2; width: 32px; height: 32px; margin: -16px 0 0 -16px; padding: 0; border: 0; background: transparent; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: opacity .3s cubic-bezier(.2,0,0,1), transform .3s cubic-bezier(.2,0,0,1); }
.wk-dot span { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #fff; background: rgba(18,17,16,.22);
  box-shadow: 0 0 0 .5px rgba(18,17,16,.35), 0 1px 4px rgba(18,17,16,.25); transition: background-color .2s linear, border-color .2s linear, transform .2s cubic-bezier(.2,0,0,1); }
.wk-dot span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; transition: background-color .2s linear; }
.wk-dot:hover span { transform: scale(1.12); }
.wk-dot[aria-pressed="true"] span { background: #F5B82E; border-color: #121110; transform: scale(1.18); }
.wk-dot[aria-pressed="true"] span::after { background: #121110; }
.wk-dot:focus-visible { outline: 2px solid #F5B82E; outline-offset: 0; }
/* The like button, top left (the AI mark sits top right). */
.wk-like { position: absolute; z-index: 3; left: 10px; top: 10px; width: 40px; height: 40px; padding: 0; border: 1px solid #121110; background: #fff; color: #121110; cursor: pointer;
  display: flex; align-items: center; justify-content: center; overflow: hidden; transition: transform .15s cubic-bezier(.2,0,0,1), background-color .2s linear; }
.wk-like .wk-ripple { background: rgba(245,184,46,.6); }
.wk-like[aria-pressed="true"] { background: #F5B82E; }
.wk-like[aria-pressed="true"] path { fill: #121110; }
.wk-like.is-pressed { transform: scale(.9); }
.wk-like:focus-visible { outline: 2px solid #121110; outline-offset: 2px; }
.wk-saved { position: absolute; z-index: 3; left: 56px; top: 18px; height: 24px; padding: 0 8px; background: #121110; color: #fff; font-family: 'DM Mono', ui-monospace, monospace; font-size: 11px; line-height: 24px;
  opacity: 0; transform: translateX(-6px); transition: opacity .3s cubic-bezier(.2,0,0,1), transform .3s cubic-bezier(.2,0,0,1); pointer-events: none; }
.wk-like[aria-pressed="true"] + .wk-saved { opacity: 1; transform: none; }
.wk-try-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wk-tbtn { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 4px 10px; font-size: 13px; line-height: 1.2; text-align: center; border: 1px solid #121110; }
.wk-tbtn.is-on { background: #121110; color: #fff; }
.wk-tbtn.is-off { background: #fff; color: #8E8A85; border-color: #E6E4E1; }

/* ---- Phone visuals ------------------------------------------------------- */
.wk-m1 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: center; }
.wk-m1 > .wk-m-pic { aspect-ratio: 1 / 1; max-width: 240px; }
.wk-m1-data { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wk-m2-head { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; }
.wk-m2-label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wk-mcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
.wk-mcard { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wk-mcard.is-anchor .wk-m-pic { outline: 2px solid #121110; outline-offset: -2px; }
.wk-mcard.is-swapped .wk-m-pic { outline: 3px solid #F5B82E; outline-offset: -3px; }
.wk-mcard .wk-old { opacity: 0; }
.wk-m6 { gap: 18px; }
.wk-m6 .wk-try { width: 100%; max-width: 360px; }
.wk-m6-list { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wk-row { width: 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px 6px 0; border: 0; border-top: 1px solid #E6E4E1;
  background: transparent; color: #121110; font: inherit; font-size: 13px; text-align: left; cursor: pointer; transition: background-color .2s linear, padding .2s cubic-bezier(.2,0,0,1); }
.wk-row img { width: 36px; height: 48px; object-fit: contain; mix-blend-mode: multiply; }
.wk-row[aria-pressed="true"] { background: #F5B82E; padding-left: 8px; }
.wk-row:focus-visible { outline: 2px solid #121110; outline-offset: -2px; }
.wk-shopbar { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid #E6E4E1; }
.wk-shopname { margin-right: auto; font-family: 'Anton', 'Arial Narrow', sans-serif; font-size: 18px; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.wk-m7-head { display: flex; align-items: center; gap: 10px; }
.wk-m7-like { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #121110; background: #F5B82E; transition: transform .15s cubic-bezier(.2,0,0,1), background-color .2s linear; }
.wk-m7-like path { fill: #121110; }
.wk-m7-like .wk-ripple { background: rgba(245,184,46,.6); }
.wk-m7-saved { height: 22px; padding: 0 7px; background: #121110; color: #fff; font-family: 'DM Mono', ui-monospace, monospace; font-size: 11px; line-height: 22px; transition: opacity .3s cubic-bezier(.2,0,0,1), transform .3s cubic-bezier(.2,0,0,1); }
.wk-baglist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wk-baglist li { position: relative; display: grid; grid-template-columns: 20px 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid #E6E4E1; font-size: 13px; transition: opacity .3s linear; }
.wk-baglist .wk-tick { position: relative; }
.wk-baglist .wk-thumb { width: 36px; }
.wk-baglist li.is-left { opacity: .45; }
.wk-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid #121110; }
.wk-later { display: flex; flex-direction: column; gap: 8px; }
.wk-later span { display: block; background: #F2F2F2; overflow: hidden; }
.wk-later img { display: block; width: 100%; height: auto; }
.wk-fly { position: absolute; z-index: 5; pointer-events: none; object-fit: contain; mix-blend-mode: multiply; background: #F2F2F2; }

@media (min-width: 640px) {
  .wk-m1 { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 24px; }
  .wk-attrs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wk-mcards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .wk-m6 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .wk-m7 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 20px; }
  .wk-m7 > .wk-shopbar { grid-column: 1 / -1; }
  .wk-m7 > .wk-later { grid-column: 2; grid-row: 2 / span 3; }
}

/* Phone moments, before they play (JS only; site.js-free, js/r17-walk.js adds
   .is-play once the visual is in view, and the later classes as it goes). */
.js .wk-mini .wk-feed-rows > div,
.js .wk-mini .wk-attrs li,
.js .wk-mini .wk-understood span,
.js .wk-mini .wk-results span,
.js .wk-mini .wk-mcard,
.js .wk-m6 .wk-dot { transition: opacity .4s cubic-bezier(.2,0,0,1), transform .4s cubic-bezier(.2,0,0,1); }
.js .wk-mini:not(.is-play) .wk-feed-rows > div { opacity: 0; transform: translateY(8px); }
.js .wk-mini .wk-feed-rows > div { transition-delay: calc(var(--i, 0) * 110ms + 150ms); }
.js .wk-m2:not(.is-play) .wk-attrs li { opacity: 0; transform: translateY(8px); }
.js .wk-m2 .wk-attrs li { transition-delay: calc(var(--i, 0) * 80ms + 700ms); }
.js .wk-m2 .wk-note { transition: opacity .4s linear 1.6s; }
.js .wk-m2:not(.is-play) .wk-note { opacity: 0; }
.wk-scan::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #F5B82E; box-shadow: 0 0 10px 2px rgba(245,184,46,.6); opacity: 0; }
.js .wk-m2.is-play .wk-scan::after { animation: wk-scan 1.1s cubic-bezier(.45,0,.55,1) .1s; }
@keyframes wk-scan { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.js .wk-m3:not(.is-typed) .wk-understood span { opacity: 0; transform: scale(.6); }
.js .wk-m3 .wk-understood span { transition-delay: calc(var(--i, 0) * 120ms); }
.js .wk-m3:not(.is-typed) .wk-results span { opacity: 0; transform: translateY(12px); }
.js .wk-m3 .wk-results span { transition-delay: calc(var(--i, 0) * 140ms + 400ms); }
.js .wk-m4:not(.is-play) .wk-mcard { opacity: 0; transform: translateY(16px); }
.js .wk-m4 .wk-mcard { transition-delay: calc(var(--i, 0) * 100ms + 100ms); }
.js .wk-m5 .wk-old, .js .wk-m5 .wk-new { transition: opacity .45s cubic-bezier(.2,0,0,1), transform .45s cubic-bezier(.2,0,0,1); }
.js .wk-m5:not(.is-refined) .is-swapped .wk-old { opacity: 1; }
.js .wk-m5:not(.is-refined) .is-swapped .wk-new { opacity: 0; transform: translateY(-12px); }
.js .wk-m5:not(.is-refined) .wk-mcard.is-swapped .wk-m-pic { outline-color: transparent; }
.js .wk-m5 .wk-mcard .wk-m-pic { transition: outline-color .3s linear .2s; }
.js .wk-m6 .wk-try-pic > img { clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.2,0,0,1) .1s; }
.js .wk-m6.is-play .wk-try-pic > img { clip-path: inset(0); }
.js .wk-m6:not(.is-play) .wk-dot { opacity: 0; transform: scale(.4); }
.js .wk-m6 .wk-dot { transition-delay: calc(var(--j, 0) * 90ms + 900ms); }
.js .wk-m6 .wk-dot:hover, .js .wk-m6 .wk-dot:focus-visible { transition-delay: 0s; }
.js .wk-m7:not(.is-liked) .wk-m7-like { background: #fff; }
.js .wk-m7:not(.is-liked) .wk-m7-like path { fill: none; }
.js .wk-m7:not(.is-liked) .wk-m7-saved { opacity: 0; transform: translateX(-6px); }
.wk-m7-like.is-pressed { transform: scale(.88); }
.wk-m7-like.is-pressed .wk-ripple { animation: wk-ripple .65s cubic-bezier(.2,0,0,1); }
.js .wk-m7:not(.is-unticked) .wk-baglist li.is-left { opacity: 1; }
.js .wk-m7:not(.is-unticked) .is-left .wk-tick { background: #121110; }
.js .wk-m7:not(.is-unticked) .is-left .wk-tick::after { opacity: 1; }

/* ---- lg (and no JS): each step beside its visual ------------------------- */
@media (min-width: 1024px) {
  .wk-step { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: center; }
}

/* ---- The pinned stage (xl, with JS) -------------------------------------- */
/* From 1280 px: below that the stage is too narrow for the try-on and the bag
   side by side, so 1024 to 1279 keeps each step beside its own visual. */
.wk-stage-col { display: none; }
@media (min-width: 1280px) {
  .js .wk { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 56px; align-items: start; }
  .js .wk-stage-col { display: block; min-width: 0; height: 100%; }
  .js .wk-step { display: flex; min-height: 70vh; justify-content: center; }
  .js .wk-step-last { min-height: 110vh; }
  .js .wk-mini { display: none; }
  .js .wk-steps { gap: 0; padding-bottom: 12vh; }
  .js .wk-step .wk-text { opacity: .4; transition: opacity .48s cubic-bezier(.2,0,0,1); }
  .js .wk-step.is-active .wk-text { opacity: 1; }
  .js .wk-step.is-active .wk-num { background: #F5B82E; border-color: #F5B82E; color: #121110; }
}

.wk-stage { position: sticky; top: 96px; height: calc(100vh - 128px); max-height: 720px; min-height: 560px; background: #fff; color: #121110; overflow: hidden; }
.wk-bar { position: absolute; left: 0; right: 0; top: 0; height: 64px; border-bottom: 1px solid #E6E4E1; }
.wk-bar > p { position: absolute; inset: 0; padding: 0 24px; display: flex; align-items: center; gap: 12px; border: 0;
  transition: opacity .5s cubic-bezier(.2,0,0,1), transform .5s cubic-bezier(.2,0,0,1); }
.wk-bar-data { justify-content: space-between; color: #5E5B57; }
.wk-bar-ai { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; background: #F5B82E; color: #121110; font-family: 'DM Mono', ui-monospace, monospace; font-size: 12px;
  opacity: 0; transform: translateX(10px); transition: opacity .4s cubic-bezier(.2,0,0,1) .3s, transform .4s cubic-bezier(.2,0,0,1) .3s; }
[data-state="2"] .wk-bar-ai { opacity: 1; transform: none; }
.wk-bar-search { flex: 1 1 auto; max-width: 440px; margin-right: auto; min-height: 40px; font-size: 14px; }
.wk-bar-search [data-walk-type] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-stage .wk-shopname { margin-right: 24px; font-size: 20px; }
[data-mode="data"] .wk-bar-shop { opacity: 0; transform: translateY(-100%); }
[data-mode="shop"] .wk-bar-data { opacity: 0; transform: translateY(-12px); }

.wk-arena { position: absolute; left: 28px; right: 28px; top: 92px; bottom: 44px; container-type: size; }
.wk-arena > * { position: absolute; }
.wk-ticks { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.wk-ticks li { width: 22px; height: 3px; background: #E6E4E1; transition: background-color .28s linear; }
[data-state="1"] [data-tick="1"],
[data-state="2"] :is([data-tick="1"], [data-tick="2"]),
[data-state="3"] :is([data-tick="1"], [data-tick="2"], [data-tick="3"]),
[data-state="4"] :is([data-tick="1"], [data-tick="2"], [data-tick="3"], [data-tick="4"]),
[data-state="5"] .wk-ticks li:not([data-tick="6"]):not([data-tick="7"]),
[data-state="6"] .wk-ticks li:not([data-tick="7"]),
[data-state="7"] .wk-ticks li { background: #121110; }

/* Geometry, in arena units. */
.wk-arena {
  --big: min(32cqw, 66cqh);                         /* the blazer alone, 01 and 02 */
  --vy: 0px;                                        /* each state centres its content */
  --side: calc(var(--big) + 5cqw);                  /* where the feed and the attributes start */
  --rw: 17.6cqw;                                    /* a card in the row, 04 and 05 */
  --rp: 20.6cqw;                                    /* row pitch */
  --cw: min(5.6cqw, 10cqh);                         /* a card in the column, 06 and 07 */
  --cp: calc(var(--cw) * 4 / 3 + 2.4cqh);           /* column pitch */
  --tw: min(36cqw, calc((100cqh - 50px) * .75));    /* the try-on's width */
  --gx: max(0px, calc((100cqw - var(--tw) - 5cqw - var(--cw) - 12px - var(--iw)) / 2));
  --colx: calc(var(--gx) + var(--tw) + 5cqw);       /* the column's left edge */
  --iw: 27cqw;                                      /* the names beside the column */
  --gy: 0px;                                        /* 07 centres the column */
}

/* Each state centres its content in the arena. */
[data-state="1"] .wk-arena, [data-state="2"] .wk-arena { --vy: max(0px, calc((100cqh - var(--big) * 4 / 3) / 2)); }
[data-state="3"] .wk-arena { --vy: max(0px, calc((100cqh - 42px - 32cqw) / 2)); }
[data-state="4"] .wk-arena { --vy: max(0px, calc((100cqh - 64px - var(--rw) * 4 / 3 - 112px) / 2)); }
[data-state="5"] .wk-arena { --vy: max(0px, calc((100cqh - 122px - var(--rw) * 4 / 3 - 56px) / 2)); }

/* 07: the try-on steps back to the left to make room for what comes later. */
[data-state="7"] .wk-arena { --tw: min(24cqw, calc((100cqh - 50px) * .75)); --gx: 0px; --iw: 23cqw;
  --gy: max(0px, calc((100cqh - 5 * var(--cp) - 96px) / 2)); }

/* 01 the feed row, 02 the attributes: right of the blazer. */
.wk-s-feed, .wk-s-attrs { left: var(--side); right: 0; top: var(--vy); display: flex; flex-direction: column; gap: 14px; }
.wk-s-feed { top: calc(var(--vy) + 3cqh); transition: opacity .45s cubic-bezier(.2,0,0,1), transform .6s cubic-bezier(.2,0,0,1); }
.wk-s-feed .wk-feed-rows > div { transition: opacity .4s cubic-bezier(.2,0,0,1), transform .4s cubic-bezier(.2,0,0,1); transition-delay: calc(var(--i) * 110ms + 350ms); }
.wk-stage:not([data-state="1"]) .wk-s-feed { opacity: 0; transform: translateY(-24px); pointer-events: none; }
.wk-stage:not([data-state="1"]) .wk-s-feed .wk-feed-rows > div { opacity: 0; transform: translateY(8px); transition-delay: 0s; }
.wk-s-attrs-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; }
.wk-s-attrs .wk-attrs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wk-s-attrs .wk-attrs li { padding: 9px 12px; transition: opacity .4s cubic-bezier(.2,0,0,1), transform .4s cubic-bezier(.2,0,0,1); transition-delay: calc(var(--i) * 90ms + 800ms); }
.wk-s-attrs .wk-attr-v { font-size: 14px; }
.wk-s-attrs, .wk-s-attrs-head, .wk-s-attrs .wk-note { transition: opacity .45s cubic-bezier(.2,0,0,1); }
.wk-s-attrs .wk-note { transition-delay: 1.8s; }
.wk-stage:not([data-state="2"]) .wk-s-attrs { opacity: 0; pointer-events: none; }
.wk-stage:not([data-state="2"]) .wk-s-attrs li { opacity: 0; transform: translateY(10px); transition-delay: 0s; }
.wk-stage:not([data-state="2"]) .wk-s-attrs .wk-note { opacity: 0; transition-delay: 0s; }
/* 02: a Signal line scans the blazer. */
.wk-s-scan { left: 0; top: var(--vy); width: var(--big); height: 3px; background: #F5B82E; box-shadow: 0 0 14px 3px rgba(245,184,46,.55); opacity: 0; z-index: 3; }
[data-state="2"] .wk-s-scan { animation: wk-scan-big 1.3s cubic-bezier(.45,0,.55,1) .2s; }
@keyframes wk-scan-big { 0% { top: var(--vy); opacity: 1; } 90% { opacity: 1; } 100% { top: calc(var(--vy) + var(--big) * 4 / 3); opacity: 0; } }

/* 03 search: what search understood, two looks. */
.wk-s-search { left: 0; right: 0; top: var(--vy); display: flex; flex-direction: column; gap: 18px; transition: opacity .4s cubic-bezier(.2,0,0,1); }
.wk-s-search .wk-results { gap: 3cqw; }
.wk-s-search .wk-understood span, .wk-s-search .wk-results span { transition: opacity .45s cubic-bezier(.2,0,0,1), transform .55s cubic-bezier(.2,0,0,1); }
.wk-s-search .wk-understood span { transition-delay: calc(var(--i) * 120ms); }
.wk-s-search .wk-results span { transition-delay: calc(var(--i) * 160ms + 350ms); }
.wk-stage:not([data-state="3"]) .wk-s-search { opacity: 0; pointer-events: none; }
.wk-stage:not(.is-typed) .wk-s-search .wk-understood span { opacity: 0; transform: scale(.6); }
.wk-stage:not(.is-typed) .wk-s-search .wk-results span,
.wk-stage:not([data-state="3"]) .wk-s-search .wk-results span { opacity: 0; transform: translateY(16px); transition-delay: 0s; }

/* 04 and 05: the look's title, the refinement, the chips. */
.wk-s-look { left: 0; right: 0; top: var(--vy); height: 0; pointer-events: none; transition: top .8s cubic-bezier(.2,0,0,1); }
.wk-s-look > * { position: absolute; left: 0; right: 0; transition: opacity .45s cubic-bezier(.2,0,0,1), transform .55s cubic-bezier(.2,0,0,1); }
.wk-s-look .wk-look-head .display { font-size: clamp(26px, 3.6cqw, 34px); }
.wk-t4, .wk-t5 { top: 0; }
.wk-s-refine { top: 58px; max-width: 520px; }
.wk-s-chips { top: calc(64px + var(--rw) * 4 / 3 + 62px); }
.wk-stage:not([data-state="4"]):not([data-state="5"]) .wk-s-look > * { opacity: 0; transform: translateY(10px); }
[data-state="4"] .wk-t5, [data-state="4"] .wk-s-refine, [data-state="5"] .wk-s-chips { opacity: 0; }
[data-state="4"] .wk-s-refine { transform: translateY(-8px); }
[data-state="5"]:not(.is-refined) .wk-t5, [data-state="5"].is-refined .wk-t4 { opacity: 0; }
[data-state="4"] .wk-s-chips { transition-delay: .7s; }

/* The cards. Default (01, 02): the blazer alone, large, on the left; the rest
   wait, out of sight, where they will stand in the row. */
.wk-cards { left: 0; top: 0; right: 0; bottom: 0; list-style: none; margin: 0; padding: 0; pointer-events: none; }
.wk-card { position: absolute; left: calc(var(--s) * var(--rp)); top: calc(var(--vy) + 64px); width: var(--rw); opacity: 0; transform: translateY(24px);
  transition: left .8s cubic-bezier(.2,0,0,1), top .8s cubic-bezier(.2,0,0,1), width .8s cubic-bezier(.2,0,0,1), opacity .5s cubic-bezier(.2,0,0,1), transform .6s cubic-bezier(.2,0,0,1);
  transition-delay: calc(var(--s) * 80ms); }
.wk-card .wk-pic { transition: outline-color .3s linear; outline: 0 solid transparent; }
.wk-card.is-anchor .wk-pic { outline: 2px solid #121110; outline-offset: -2px; }
.wk-card .wk-tick { right: 5px; top: 5px; opacity: 0; transform: scale(.4); }
.wk-info { position: absolute; left: 0; top: calc(100% + 6px); width: 100%; display: flex; flex-direction: column; gap: 2px; transition: opacity .35s cubic-bezier(.2,0,0,1) .1s; }
.wk-stage.is-moving .wk-info { opacity: 0 !important; transition: none; }
.wk-card[data-card="blazer"] { left: 0; top: var(--vy); width: var(--big); opacity: 1; transform: none; transition-delay: 0s; }
.wk-card[data-card="blazer"] .wk-info { opacity: 0; }
.wk-card[data-card="blazer"] .wk-pic { outline-color: transparent; }
[data-state="1"] .wk-card[data-card="blazer"] { transform: none; }
/* 03: the blazer goes into the first look and fades. */
[data-state="3"] .wk-card[data-card="blazer"] { top: calc(var(--vy) + 42px); width: 12cqw; opacity: 0; transition: left .7s cubic-bezier(.2,0,0,1), top .7s cubic-bezier(.2,0,0,1), width .7s cubic-bezier(.2,0,0,1), opacity .4s linear .45s; }
/* 04: the row. 05: the same row lower, the top and the shoes swapped. */
[data-cards="row"] .wk-card { left: calc(var(--s) * var(--rp)); top: calc(var(--vy) + 64px); width: var(--rw); opacity: 1; transform: none; }
[data-cards="row"] .wk-card[data-card="blazer"] .wk-info { opacity: 1; }
[data-cards="row"] .wk-card.is-anchor .wk-pic { outline-color: #121110; }
[data-state="5"] .wk-card { top: calc(var(--vy) + 122px); transition-delay: 0s; }
[data-cards="row"] .wk-card.is-in { opacity: 0; transform: translateY(-28px); }
[data-state="5"].is-refined .wk-card.is-out { opacity: 0; transform: translateY(28px); }
[data-state="5"].is-refined .wk-card.is-in { opacity: 1; transform: none; }
[data-state="5"].is-refined .wk-card.is-in .wk-pic { outline: 3px solid #F5B82E; outline-offset: -3px; }
/* 06 and 07: a column beside the try-on, names to the right. */
[data-cards="col"] .wk-card { left: var(--colx); top: calc(var(--gy) + var(--r) * var(--cp)); width: var(--cw); opacity: 1; transform: none; transition-delay: calc(var(--r) * 70ms); pointer-events: auto; cursor: pointer; }
[data-cards="col"] .wk-card.is-out { opacity: 0; transform: translateX(-20px); pointer-events: none; }
[data-cards="col"] .wk-card .wk-pic { outline-color: transparent; }
[data-cards="col"] .wk-info { left: calc(100% + 12px); top: 0; bottom: 0; width: var(--iw); justify-content: center; opacity: 1; }
[data-cards="col"] .wk-card[data-card="blazer"] .wk-info { opacity: 1; }
[data-cards="col"] .wk-info { padding-left: 10px; border-left: 3px solid transparent; transition: opacity .35s cubic-bezier(.2,0,0,1) .1s, border-color .2s linear, background-color .2s linear; }
[data-cards="col"] .wk-card.is-active .wk-info { border-left-color: #F5B82E; background: #F2F2F2; transition-delay: 0s; }
[data-cards="col"] .wk-card.is-active .wk-pic { outline: 3px solid #F5B82E; outline-offset: -3px; }
.is-ticking .wk-card:not(.is-out) .wk-tick { opacity: 1; transform: none; transition-delay: calc(var(--r) * 120ms); }
.is-unticked .wk-card.is-left { opacity: .45; }

/* The try-on (06, 07). */
.wk-s-try { left: var(--gx); top: var(--gy); width: var(--tw); transition: left .8s cubic-bezier(.2,0,0,1), top .8s cubic-bezier(.2,0,0,1), width .8s cubic-bezier(.2,0,0,1), opacity .5s cubic-bezier(.2,0,0,1), transform .6s cubic-bezier(.2,0,0,1), visibility 0s linear 0s; }
.wk-stage:not([data-cards="col"]) .wk-s-try { opacity: 0; visibility: hidden; transform: translateX(-16px); transition: opacity .35s cubic-bezier(.2,0,0,1), transform .35s cubic-bezier(.2,0,0,1), visibility 0s linear .35s; }
.wk-s-try .wk-try-pic > img { clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.2,0,0,1) .4s; }
[data-cards="col"] .wk-s-try .wk-try-pic > img { clip-path: inset(0); }
.wk-s-try .wk-dot, .wk-s-try .wk-like, .wk-s-try .wk-try-btns { transition: opacity .35s cubic-bezier(.2,0,0,1), transform .35s cubic-bezier(.2,0,0,1); }
.wk-stage:not([data-cards="col"]) .wk-s-try .wk-dot { opacity: 0; transform: scale(.4); }
[data-cards="col"] .wk-s-try .wk-dot { transition-delay: calc(var(--j) * 90ms + 1.2s); }
[data-cards="col"] .wk-s-try .wk-dot:hover, [data-cards="col"] .wk-s-try .wk-dot:focus-visible { transition-delay: 0s; }
.wk-stage:not([data-cards="col"]) .wk-s-try .wk-like { opacity: 0; transform: scale(.6); }
[data-cards="col"] .wk-s-try .wk-like { transition-delay: 1.5s, 1.5s, 0s; }
.wk-stage:not([data-cards="col"]) .wk-s-try .wk-try-btns { opacity: 0; transform: translateY(8px); }
[data-cards="col"] .wk-s-try .wk-try-btns { transition-delay: 1.1s; }

/* 07: the total and "Add all to cart" under the column; later, the newsletter
   takes the try-on's place. */
.wk-s-buy { white-space: nowrap; left: var(--colx); top: calc(var(--gy) + 5 * var(--cp) + 4px); width: calc(var(--cw) + 12px + var(--iw)); display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; border-top: 1px solid #121110;
  transition: opacity .45s cubic-bezier(.2,0,0,1) .3s, transform .45s cubic-bezier(.2,0,0,1) .3s; }
.wk-s-buy .wk-addall { justify-content: center; padding: 0 12px; }
.wk-stage:not([data-state="7"]) .wk-s-buy { opacity: 0; transform: translateY(10px); transition-delay: 0s; }
.wk-s-later { left: 62cqw; right: 0; top: 50%; display: flex; flex-direction: column; gap: 8px; transform: translateY(-50%);
  transition: opacity .6s cubic-bezier(.2,0,0,1) .2s, transform .6s cubic-bezier(.2,0,0,1) .2s; }
.wk-s-later > span { display: block; background: #F2F2F2; }
.wk-s-later img { display: block; width: 100%; height: auto; }
.wk-stage:not(.is-later) .wk-s-later { opacity: 0; transform: translate(24px, -50%); transition-delay: 0s; }

/* ---- Reduced motion: every end state, nothing moves ---------------------- */
@media (prefers-reduced-motion: reduce) {
  .wk-stage *, .wk-mini * { transition: none !important; animation: none !important; }
  .wk-num, .js .wk-step .wk-text { transition: none; }
}
