/* Swatch cards (addon/dress_code/070) — INV-04 Keepsake Table · Luxe W1 (A1987; plan docs/plans/plan_inv04_keepsake_table_master.md).
   Stage 1, still. A stylist's swatch card per event that has a dress code, dealt on the table, each a hair turned: the
   event in capitals, the dress code in the couple's script, and two fabric swatches pinned at the top corner, a linen
   square (drawn in code) under a satin square in the couple's colour (the skin's k-satin art), held by a gold pin.
   Phone: two columns; tablets three; computers three wider cards across about 90 %. Shadows: --k-sh-* tokens only.
   W1.3 (A2027, the owner: "add icons to the dress code", "keep 3 cards only"): each card carries INV-14's outfit sketch
   for its dress code in foil, between the swatches and the event (a gown and tux for formal and black tie, the smart
   pair for relaxed, the cocktail pair, dancing shoes, traditional dress); the one-day sample gives three cards, and on
   a phone the third sits centred under the first two. */
.dc070 { position: relative; z-index: 1; background: var(--k-light-ground); color: var(--k-ink); padding: var(--k-section-pad) 0 0; }
.dc070__head { padding: 0 var(--k-gutter); text-align: center; }
.dc070 .k-kicker + .k-title { margin-top: var(--k-s-2); }
.dc070__cards { --dc070-gx: clamp(12px, 3.6vw, 36px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 5vw, 40px) var(--dc070-gx);
  width: min(92vw, 520px); margin: var(--k-s-7) auto 0; padding: 0; list-style: none; }
.dc070-card { min-width: 0; rotate: -1.4deg; }
/* W1.4 (A2034): the tailor's table: a spool of thread and a pair of scissors. W2.4 (A2094, D-193; the owner: nothing
   tucked under a thin card, and he kept the snip): both lie side by side on the open table below the cards, in a band
   of their own under the last row (the spool at the left, its loose end at its lower right; the scissors at the right,
   their blades at the upper left), so the thread between them touches no card */
.dc070__lay { --dc070-band: clamp(96px, 26vw, 150px); position: relative; width: min(92vw, 520px); margin: 0 auto; padding-bottom: var(--dc070-band); }
.dc070__cards { position: relative; z-index: 1; }
.dc070__spool { position: absolute; z-index: 0; width: clamp(64px, 18vw, 110px); left: 18%; bottom: 16px; }
.dc070__scissors { position: absolute; z-index: 0; width: clamp(58px, 16vw, 100px); right: 16%; bottom: 4px; }
.dc070__scissors::before { rotate: -6deg; }
@media (min-width: 700px) { .dc070__lay { width: min(92vw, 860px); } .dc070__spool { width: clamp(80px, 10vw, 120px); left: 30%; } .dc070__scissors { width: clamp(72px, 9vw, 110px); right: 30%; } }
@media (min-width: 1100px) { .dc070__lay { width: min(84vw, 1240px); } .dc070__spool { left: 33%; } .dc070__scissors { right: 33%; } }
.dc070-card:nth-child(3n + 2) { rotate: 1.2deg; translate: 0 10px; }
.dc070-card:nth-child(3n) { rotate: -.4deg; }
.dc070-card__paper { position: relative; display: grid; align-content: end; justify-items: center; gap: 6px; min-height: clamp(222px, 60vw, 312px);
  padding: clamp(58px, 16vw, 92px) clamp(10px, 3vw, 22px) clamp(20px, 5vw, 30px); text-align: center; box-shadow: var(--k-edge), var(--k-sh-card); }
.dc070-card__ev { font: 400 clamp(.66rem, 2.8vw, .8rem)/1.35 var(--k-font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--k-ink-soft); text-wrap: balance; }
.dc070-card__dc { font: 400 clamp(1.5rem, 6.6vw, 2.1rem)/1.1 var(--k-font-script); color: var(--k-script-ink); text-wrap: balance; }

/* the outfit sketch: INV-14's drawing as a mask, in foil (the couple's gold, a soft sheen across); formal by default,
   then the later rules win (the reverse of dc002's KINDS order, js:226) */
.dc070-card__ico { display: block; width: clamp(44px, 13vw, 56px); aspect-ratio: 1000 / 1194.5; margin-bottom: 4px;
  --dc070-art: url("/skins/keepsake_table/assets/art/attire-formal.svg");
  background: linear-gradient(115deg, var(--c-secondary-dark) 0 30%, color-mix(in oklab, var(--c-secondary) 70%, #fff) 48%, var(--c-secondary-dark) 66%);
  -webkit-mask: var(--dc070-art) center / contain no-repeat; mask: var(--dc070-art) center / contain no-repeat; }
.dc070-card__ico:is([data-dc*="casual" i], [data-dc*="smart" i], [data-dc*="relaxed" i], [data-dc*="informal" i], [data-dc*="garden" i], [data-dc*="summer" i]) {
  --dc070-art: url("/skins/keepsake_table/assets/art/attire-smart.svg"); }
.dc070-card__ico:is([data-dc*="cocktail" i], [data-dc*="semi-formal" i], [data-dc*="lounge" i]) {
  --dc070-art: url("/skins/keepsake_table/assets/art/attire-cocktail.svg"); }
.dc070-card__ico:is([data-dc*="danc" i], [data-dc*="shoe" i], [data-dc*="heel" i]) {
  --dc070-art: url("/skins/keepsake_table/assets/art/attire-shoes.svg"); }
.dc070-card__ico:is([data-dc*="traditional" i], [data-dc*="shalwar" i], [data-dc*="kameez" i], [data-dc*="sherwani" i], [data-dc*="saree" i],
  [data-dc*="sari" i], [data-dc*="lehenga" i], [data-dc*="desi" i], [data-dc*="eastern" i], [data-dc*="cultural" i]) {
  --dc070-art: url("/skins/keepsake_table/assets/art/attire-traditional.svg"); }
/* phones: an odd last card sits centred under the pair above it */
@media (max-width: 699px) {
  .dc070-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - var(--dc070-gx) / 2); }
}

/* the swatches: linen under satin, both a little askew, one gold pin through them */
.dc070-sw { position: absolute; left: 50%; top: clamp(-14px, -3vw, -8px); width: clamp(66px, 19vw, 108px); aspect-ratio: 1.25; translate: -50% 0; }
.dc070-sw__linen, .dc070-sw__satin { position: absolute; display: block; width: 62%; aspect-ratio: 1; }
.dc070-sw__linen { left: 0; top: 6%; rotate: -9deg; box-shadow: var(--k-sh-ribbon);
  background:
    repeating-linear-gradient(0deg, rgb(120 98 66 / .14) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgb(120 98 66 / .12) 0 1px, transparent 1px 3px),
    #E6DCCB; }
.dc070-sw__satin { right: 0; top: 0; rotate: 7deg; box-shadow: var(--k-sh-ribbon); background-size: 300% 100%; background-position: 40% 0; }
.dc070-sw__pin { position: absolute; left: 50%; top: 22%; width: 9px; height: 9px; translate: -50% 0; border-radius: 50%; filter: var(--k-sh-prop);
  background: radial-gradient(circle at 35% 30%, #FFF6DA, #D9BC7A 35%, #8C6A2E 80%); }

@media (min-width: 700px) {
  .dc070__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(92vw, 860px); }
  .dc070-card__paper { min-height: 290px; }
}
@media (min-width: 1100px) {
  .dc070__cards { width: min(84vw, 1240px); gap: 56px 48px; }
  .dc070-card__paper { min-height: 344px; padding-top: 110px; }
  .dc070-card__ico { width: 64px; }
  .dc070-sw { width: 124px; }
  .dc070-card__dc { font-size: 2.4rem; }
}

/* ---- stage 2 W2.2 (A2057; plan ~/.claude/plans/witty-leaping-globe.md, the owner's pick "spool and scissors snip"):
   once, when the cards are 70 % up the screen, a thread runs on from the end of the spool's own loose thread, across
   the table below the cards (W2.4), to the scissors' blades (650 ms); the scissors close in along it (8 px) and the
   short end beyond them falls away. section.js draws the path from where the spool and the scissors lie. Linen thread:
   a pale stroke with a hair of dark edge and a thread's own shadow. No
   thread without the script; lite: drawn and cut at once ---- */
.dc070__thread { position: absolute; z-index: 0; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none;
  filter: drop-shadow(0 0 .35px rgb(92 72 46 / .8)) drop-shadow(0 calc(.9 * var(--k-u)) calc(.5 * var(--k-u)) rgb(30 22 14 / .32)); }
.dc070__thr { fill: none; stroke: #DDD1B8; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.dc070.is-thread .dc070__thr--run { stroke-dashoffset: 0; transition: stroke-dashoffset .65s cubic-bezier(.45, .05, .35, 1); }
.dc070.is-thread .dc070__thr--tail { stroke-dashoffset: 0; transition: stroke-dashoffset .15s linear .65s; }
.dc070.is-snip .dc070__thr--tail { opacity: 0; translate: 0 6px; transition: opacity .45s ease .12s, translate .45s var(--k-ease) .12s; }
.dc070__scissors { transition: translate .22s cubic-bezier(.3, .7, .4, 1); }
.dc070.is-snip .dc070__scissors { translate: var(--dc070-sx, 0px) var(--dc070-sy, 0px); }
html.kjy-lite .dc070 :is(.dc070__thr, .dc070__scissors) { transition: none; }
