/* station 7: dress code. The swatches are silk ribbon bows (dress.js draws them in each swatch's colour). */
.swatches{display:flex;justify-content:center;gap:22px;margin:18px 0 8px}
.sw{display:flex;flex-direction:column;align-items:center;gap:8px;font-family:var(--caps);letter-spacing:.14em;font-size:12px;color:var(--ink-soft)}
.sw i{width:54px;height:54px;border-radius:50%;display:block;position:relative;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.sw i::after{content:"";position:absolute;left:6px;right:6px;top:50%;height:1.5px;background:#fff;transform:rotate(-40deg);box-shadow:0 0 0 .5px rgba(0,0,0,.15)}

/* the bows (only when dress.js has drawn them; otherwise the plain swatches above stay) */
#st-dress .swatches{gap:clamp(14px,6vw,40px);margin:14px 0 4px}
#st-dress .sw{gap:2px;font-size:13px}
#st-dress .sw i.has-bow{width:96px;height:86px;border-radius:0;background:none!important;box-shadow:none}
#st-dress .sw i.has-bow::after{display:none}
.silk-bow{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 3px 3px rgba(27,42,74,.14))}
.silk-bow .bw-loops,.silk-bow .bw-tails{transform-box:view-box;transform-origin:50px 32px}

/* tying: the loops pull out from the knot and the tails drop, with a little spring */
#st-dress:not(.bows-tied) .bw-loops{transform:scale(.25,.4);opacity:.0}
#st-dress:not(.bows-tied) .bw-tails{transform:scaleY(.2);opacity:0}
#st-dress .bw-loops{transition:transform .9s var(--ease-spring) .15s,opacity .4s .15s}
#st-dress .bw-tails{transition:transform 1s var(--ease-out) .45s,opacity .5s .45s}
#st-dress .sw:nth-child(2) .bw-loops{transition-delay:.4s}
#st-dress .sw:nth-child(2) .bw-tails{transition-delay:.7s}

/* the small bow tied on the trellis, on the left where the painting has no ribbon */
#st-dress .st-art{position:relative}
#st-dress .st-art img{display:block}
#st-dress .trellis-bow{position:absolute;left:4%;top:50%;width:30%;height:auto;aspect-ratio:100/90;opacity:.92;
  filter:drop-shadow(0 2px 2px rgba(27,42,74,.12)) saturate(.85)}
#st-dress .trellis-bow{opacity:0;transition:opacity 1s .3s}
#st-dress.is-near .st-art img.ready ~ .trellis-bow{opacity:.92}
