/* Drapewell cursor (assets/js/cursor.js). Only active once the script adds html.dwc-on. */
/* normal cursor everywhere (Bashir, 16 Nov 2026); only over photos and swatches does it become the worded disc */
html.dwc-word:not(.dwc-off), html.dwc-word:not(.dwc-off) * { cursor: none; }
.dwc:not([data-m="word"]) .dwc-dot, .dwc:not([data-m="word"]) .dwc-ring { opacity: 0; }
.dwc-ring { transition: opacity .2s; }
html.dwc-on input, html.dwc-on textarea, html.dwc-on select, html.dwc-on [contenteditable] { cursor: auto; }

.dwc { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.dwc.on { opacity: 1; }
html.dwc-off .dwc { opacity: 0; }

.dwc-dot, .dwc-ring { position: absolute; left: 0; top: 0; will-change: transform; }
.dwc-dot::before { content: ''; position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--walnut, #2A2320); box-shadow: 0 0 0 1px rgba(244,240,233,.55); transition: transform .25s cubic-bezier(.22,.61,.36,1), opacity .2s; }

/* the ring: a hairline circle with a faint woven sheer inside */
.dwc-ring::before { content: ''; position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  border: 1px solid rgba(42, 35, 32, .38);
  background:
    repeating-linear-gradient(90deg, rgba(42,35,32,.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(42,35,32,.025) 0 1px, transparent 1px 3px);
  transition: width .45s cubic-bezier(.22,.61,.36,1), height .45s cubic-bezier(.22,.61,.36,1), margin .45s cubic-bezier(.22,.61,.36,1), background-color .35s, border-color .35s, transform .25s; }
.dwc-lb { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.6); opacity: 0; white-space: nowrap;
  font: 500 13px/1 var(--sans, 'Instrument Sans', sans-serif); letter-spacing: .01em; color: var(--limewash, #F4F0E9);
  transition: opacity .25s, transform .45s cubic-bezier(.22,.61,.36,1); }

/* links and buttons: wider, softly tinted ring, dot steps back */
.dwc[data-m="link"] .dwc-ring::before { width: 58px; height: 58px; margin: -29px 0 0 -29px; background-color: rgba(42,35,32,.06); border-color: rgba(42,35,32,.22); }
.dwc[data-m="link"] .dwc-dot::before { transform: scale(.5); }

/* photos and swatches: a filled walnut disc with a word */
.dwc[data-m="word"] .dwc-ring::before { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: rgba(42,35,32,.9); border-color: transparent; }
.dwc[data-m="word"] .dwc-lb { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.dwc[data-m="word"] .dwc-dot::before { opacity: 0; }

/* press */
.dwc.down .dwc-ring::before { transform: scale(.86); }
.dwc.down .dwc-dot::before { transform: scale(.7); }

/* readable on any background: solid walnut with a cream halo (no blend mode, which went grey on mid-tone photos and linen) */
.dwc-dot::before { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--walnut, #2A2320); box-shadow: 0 0 0 2px rgba(244,240,233,.9), 0 1px 4px rgba(0,0,0,.25); }
.dwc:not([data-m="word"]) .dwc-ring::before { border: 1.5px solid rgba(42,35,32,.7); background: none;
  box-shadow: 0 0 0 1.5px rgba(244,240,233,.65), inset 0 0 0 1.5px rgba(244,240,233,.4), 0 2px 10px rgba(0,0,0,.12); }
.dwc[data-m="link"] .dwc-ring::before { background-color: rgba(42,35,32,.08); border-color: rgba(42,35,32,.75); }
.dwc[data-m="word"] .dwc-ring::before { box-shadow: 0 0 0 2px rgba(244,240,233,.5), 0 8px 24px rgba(0,0,0,.25); }
