/* ==========================================================================
   MORE IS MORE — bazaar.css
   Souk-stall density: layered borders, patterned ornament rugs,
   price-tag typography, jewel-tone abundance; organized chaos.
   ========================================================================== */

/* ---- bundled fonts ------------------------------------------------------ */
@font-face { font-family: 'Rakkas';   font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/rakkas-400.woff2') format('woff2'); }
@font-face { font-family: 'Shrikhand'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/shrikhand-400.woff2') format('woff2'); }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('../fonts/alegreya-var.woff2') format('woff2'); }
@font-face { font-family: 'Alegreya'; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url('../fonts/alegreya-vari.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/plexmono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/plexmono-600.woff2') format('woff2'); }

/* ---- tokens -------------------------------------------------------------- */
:root {
  --ink:      #2b1030;
  --ivory:    #f8ecd8;
  --parch:    #eed9b6;
  --lacquer:  #c1272d;
  --ember:    #e0643b;
  --saffron:  #f0a009;
  --gold:     #c9920e;
  --emerald:  #0e7a55;
  --teal:     #12948f;
  --lapis:    #2b3fa0;
  --amethyst: #7c2ea8;
  --fuchsia:  #cf2a7e;
  --plum:     #52184f;

  --font-display: 'Rakkas', 'Georgia', serif;
  --font-badge:   'Shrikhand', 'Georgia', serif;
  --font-body:    'Alegreya', 'Georgia', serif;
  --font-tag:     'IBM Plex Mono', 'Courier New', monospace;

  --hard:  6px 6px 0 var(--ink);
  --hard2: 4px 4px 0 var(--ink);
  --hard3: 3px 3px 0 var(--ink);
  --lift:  9px 9px 0 var(--ink);
  --rail: clamp(14px, 2vw, 26px);
}

/* ---- base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: clip;
}
img, svg { display: inline-block; vertical-align: middle; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.02; }
p { margin: 0 0 1em; }
::selection { background: var(--fuchsia); color: var(--ivory); }

:focus-visible { outline: 3px dashed var(--fuchsia); outline-offset: 3px; }

::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: var(--parch); }
::-webkit-scrollbar-thumb { background: var(--lacquer); border: 3px solid var(--parch); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--amethyst); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; background: var(--ink); color: var(--ivory);
  padding: 10px 18px; font-family: var(--font-tag); text-decoration: none; }

.wrap { width: min(1280px, 100% - 2 * var(--rail)); margin-inline: auto; }
.wrap--wide { width: min(1460px, 100% - 2 * var(--rail)); margin-inline: auto; }

/* ---- utility text --------------------------------------------------------- */
.eyebrow { font-family: var(--font-tag); font-size: .72rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; }
.disp { font-family: var(--font-display); font-weight: 400; }
.badgefont { font-family: var(--font-badge); font-weight: 400; }
.mono { font-family: var(--font-tag); }
.c { text-align: center; }

/* ==========================================================================
   TICKERS — the market's conveyor belts
   ========================================================================== */
.ticker { position: relative; overflow: hidden; border-block: 3px solid var(--ink);
  padding: 7px 0 9px; }
.ticker-track { display: flex; width: max-content; will-change: transform;
  animation: tick var(--dur, 40s) linear infinite; }
.ticker--rev .ticker-track { animation-direction: reverse; }
.ticker-run { display: flex; align-items: center; flex: 0 0 auto; }
.ticker-item { font-family: var(--font-tag); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  padding: 0 .9rem; display: inline-flex; align-items: center; gap: .9rem; }
.ticker-item .dia { font-size: .65rem; }
.ticker-item a { text-decoration: none; }
.ticker-item a:hover { text-decoration: underline 2px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ==========================================================================
   MASTHEAD — the hanging sign
   ========================================================================== */
.topline { background: var(--ink); color: var(--ivory); }
.topline .ticker { border-block: 0; }

.masthead { position: relative; padding: 0 0 10px; }
.mast-band { height: 10px; border-block: 3px solid var(--ink); }
.mast-row { display: flex; align-items: stretch; gap: 18px; padding-top: 14px; }

.mast-sign { position: relative; flex: 1 1 auto; background: var(--ivory);
  border: 4px solid var(--ink); box-shadow: var(--hard);
  padding: 10px 26px 6px; text-align: center; }
.mast-sign::before { content: ''; position: absolute; inset: 5px;
  border: 2px dashed var(--lacquer); pointer-events: none; }
.mast-sign .corner { position: absolute; width: 30px; height: 30px; z-index: 2; }
.mast-sign .corner.tl { top: -9px; left: -9px; }
.mast-sign .corner.tr { top: -9px; right: -9px; transform: scaleX(-1); }
.mast-sign .corner.bl { bottom: -9px; left: -9px; transform: scaleY(-1); }
.mast-sign .corner.br { bottom: -9px; right: -9px; transform: scale(-1); }

.logo { font-family: var(--font-display); font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  line-height: .9; letter-spacing: .01em; text-decoration: none; display: inline-block;
  color: var(--ink); padding-top: 8px; }
.logo em { font-style: normal; color: var(--lacquer); }
.logo .star { display: inline-block; width: .62em; height: .62em; vertical-align: baseline;
  transform: translateY(.05em); }
.logo-sub { font-family: var(--font-tag); font-size: .68rem; font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase; margin-top: 2px; }

.mast-seal { flex: 0 0 auto; align-self: center; }
.mast-seal svg { display: block; }
.orn-seal { animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* nav — hanging price tags */
.navrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 16px 4px 4px; }
.nav-tag { position: relative; font-family: var(--font-tag); font-weight: 600;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; padding: 9px 16px 9px 26px; border: 2.5px solid var(--ink);
  background: var(--ivory); box-shadow: var(--hard3); transform: rotate(-2deg); }
.nav-tag::before { content: ''; position: absolute; left: 9px; top: 50%;
  width: 7px; height: 7px; border-radius: 50%; background: var(--ivory);
  border: 2px solid var(--ink); transform: translateY(-50%); }
.nav-tag:nth-child(2n) { transform: rotate(1.6deg); }
.nav-tag:nth-child(3n) { transform: rotate(-1.2deg); }
.nav-tag:hover { transform: rotate(0deg) translateY(-2px); box-shadow: 5px 6px 0 var(--ink); }
.nav-tag.on { background: var(--saffron); }
.nav-spacer { flex: 1; }
.trove-btn { position: relative; font-family: var(--font-tag); font-weight: 600;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 14px; border: 2.5px solid var(--ink); background: var(--fuchsia);
  color: var(--ivory); box-shadow: var(--hard3); }
.trove-btn:hover { transform: translateY(-2px); box-shadow: 5px 6px 0 var(--ink); }
.trove-count { display: inline-block; min-width: 22px; padding: 1px 5px; margin-left: 7px;
  background: var(--ivory); color: var(--ink); border: 2px solid var(--ink);
  border-radius: 999px; font-size: .72rem; }

.nav-tools { display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  justify-content: center; }
.nav-burger, .nav-close { display: none; font-family: var(--font-tag); font-weight: 600;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  border: 2.5px solid var(--ink); background: var(--saffron); padding: 9px 14px;
  box-shadow: var(--hard3); }

/* ==========================================================================
   FRAMES — borders within borders
   ========================================================================== */
.frame { position: relative; padding: 16px; }
.frame-in { position: relative; border: 4px solid var(--ink); background: var(--ivory);
  box-shadow: var(--hard); height: 100%; }
.frame-in::before { content: ''; position: absolute; inset: 6px;
  border: 2px dashed var(--gold); pointer-events: none; z-index: 1; }
.frame-in > * { position: relative; z-index: 2; }

.frame--thick { padding: 20px; }
.frame--thick .frame-in::after { content: ''; position: absolute; inset: -10px;
  border: 2px solid var(--ink); pointer-events: none; }

.rug { border-block: 3px solid var(--ink); position: relative; }
.rug::before, .rug::after { content: ''; position: absolute; left: 0; right: 0;
  height: 5px; border-block: 1.5px dashed rgba(43,16,48,.55); }
.rug::before { top: 4px; } .rug::after { bottom: 4px; }

/* signboard section headers */
.signboard { display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin: 0 0 26px; text-align: center; }
.signboard .eyebrow { color: var(--lacquer); }
.signboard h2 { font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.4rem); padding: 8px 30px 4px; position: relative;
  background: var(--ivory); border: 4px solid var(--ink); box-shadow: var(--hard2); }
.signboard h2::before { content: ''; position: absolute; inset: 4px;
  border: 1.5px dashed var(--amethyst); }
.signboard .orn-divider { margin-top: 10px; }

/* ==========================================================================
   TAGS / BADGES / MEDALLIONS / BUTTONS
   ========================================================================== */
.tag { display: inline-flex; align-items: center; gap: .45em; font-family: var(--font-tag);
  font-weight: 600; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; padding: 5px 10px 5px 22px; border: 2px solid var(--ink);
  background: var(--ivory); position: relative; }
.tag::before { content: ''; position: absolute; left: 7px; top: 50%; width: 6px; height: 6px;
  border-radius: 50%; border: 1.6px solid var(--ink); transform: translateY(-50%); }
.tag:hover { background: var(--saffron); }
.tag--inv { background: var(--ink); color: var(--ivory); }
.tag--inv::before { border-color: var(--ivory); }
.tag--inv:hover { background: var(--plum); }

.sticker { display: inline-block; font-family: var(--font-badge); font-size: .82rem;
  line-height: 1.15; text-align: center; padding: .55em .9em; color: var(--ivory);
  background: var(--lacquer); border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: var(--hard3); transform: rotate(-7deg); text-transform: uppercase;
  letter-spacing: .04em; }
.sticker--star { border-radius: 0; border: 0; background: none; box-shadow: none;
  padding: 0; color: var(--ink); position: relative; }
.sticker--star .st-label { position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center; text-align: center;
  padding: 18%; font-family: var(--font-badge); font-size: .72rem;
  text-transform: uppercase; line-height: 1.1; color: var(--ivory);
  text-shadow: 1.5px 1.5px 0 var(--ink); }

.medallion { position: relative; display: inline-block; }
.medallion svg { display: block; }
.medallion--spin:hover svg { animation: wob .7s ease-in-out; }
@keyframes wob { 25% { transform: rotate(7deg); } 60% { transform: rotate(-6deg); } }

.btn { display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-tag); font-weight: 600; font-size: .82rem;
  letter-spacing: .13em; text-transform: uppercase; text-decoration: none;
  padding: 13px 22px; border: 3px solid var(--ink); background: var(--lacquer);
  color: var(--ivory); box-shadow: var(--hard2); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--hard); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--ivory { background: var(--ivory); color: var(--ink); }
.btn--teal { background: var(--teal); }
.btn--lapis { background: var(--lapis); }
.btn--gold { background: var(--saffron); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: default; }

.linkmore { font-family: var(--font-tag); font-weight: 600; font-size: .76rem;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  border-bottom: 3px double var(--lacquer); padding-bottom: 2px; }
.linkmore:hover { color: var(--lacquer); }

/* ==========================================================================
   PAGE SHELL — ground texture + edge rails
   ========================================================================== */
.pageground { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  opacity: .34; }
.pageground--2 { position: fixed; inset: 0; z-index: -3; pointer-events: none; }

section { position: relative; }
.sect { padding: clamp(34px, 5vw, 72px) 0; }

/* ==========================================================================
   HERO — layered panels, organized chaos
   ========================================================================== */
.hero { position: relative; padding: clamp(26px, 4vw, 54px) 0 clamp(30px, 4vw, 60px); }
.hero-stage { position: relative; }
.hero-main { position: relative; z-index: 3; margin: 0 auto; max-width: 780px;
  text-align: center; padding: clamp(30px, 5vw, 60px) clamp(22px, 4vw, 54px); }
.hero-main h1 { font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.9rem, 8.2vw, 6.6rem); line-height: .92; }
.hero-main h1 .l1 { display: block; color: var(--lacquer); }
.hero-main h1 .l2 { display: block; -webkit-text-stroke: 2px var(--ink);
  color: transparent; }
.hero-main h1 .l3 { display: block; color: var(--lapis); }
.hero-dek { font-family: var(--font-tag); font-weight: 600; font-size: .78rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--emerald);
  margin-bottom: 14px; }
.hero-sub { max-width: 46ch; margin: 18px auto 26px; font-size: 1.08rem; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-card { position: absolute; z-index: 2; width: 190px; border: 4px solid var(--ink);
  box-shadow: var(--hard); background: var(--ivory); padding: 8px;
  text-decoration: none; display: block; }
.hero-card .hc-art { height: 130px; border: 2.5px solid var(--ink); position: relative;
  overflow: hidden; }
.hero-card .hc-art i { position: absolute; inset: 0; display: block; transition: transform .5s; }
.hero-card:hover .hc-art i { transform: scale(1.15) rotate(2deg); }
.hero-card .hc-name { font-family: var(--font-tag); font-weight: 600; font-size: .66rem;
  letter-spacing: .08em; text-transform: uppercase; padding-top: 7px; display: block; }
.hero-card .hc-price { font-family: var(--font-badge); color: var(--lacquer);
  font-size: .95rem; }
.hero-card.h1 { left: 0; top: 4%; transform: rotate(-6deg); }
.hero-card.h2 { right: 1%; top: 0; transform: rotate(5deg); }
.hero-card.h3 { left: 3%; bottom: -6%; transform: rotate(4deg); }
.hero-card.h4 { right: 0; bottom: -2%; transform: rotate(-5deg); }

.hero-sticker { position: absolute; z-index: 4; }
.hero-sticker.hs1 { left: 16%; top: -2%; }
.hero-sticker.hs2 { right: 14%; bottom: 8%; transform: rotate(9deg); }

/* drifting ornament confetti layer */
.confetti-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  z-index: 5; }
.confetti-bit { position: absolute; top: -8%; opacity: 0;
  animation: drift var(--d, 16s) linear var(--dl, 0s) infinite; }
@keyframes drift {
  0% { transform: translate3d(0, -10vh, 0) rotate(0deg); opacity: 0; }
  8% { opacity: .9; }
  90% { opacity: .9; }
  100% { transform: translate3d(var(--sw, 40px), 112vh, 0) rotate(var(--rot, 340deg)); opacity: 0; }
}

/* ==========================================================================
   GOOD CARDS — dense decorated stall cards
   ========================================================================== */
.goods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 26px; }

.good-card { position: relative; border: 4px solid var(--ink); background: var(--ivory);
  box-shadow: var(--hard); display: flex; flex-direction: column; overflow: hidden; }
.good-card::before { content: ''; position: absolute; inset: 5px; z-index: 0;
  border: 1.5px dashed var(--gold); pointer-events: none; }

.gc-strip { display: flex; justify-content: space-between; align-items: center;
  padding: 7px 10px; border-bottom: 3px solid var(--ink); font-family: var(--font-tag);
  font-size: .62rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  position: relative; z-index: 2; }
.gc-art { position: relative; height: 190px; overflow: hidden;
  border-bottom: 3px solid var(--ink); z-index: 1; }
.gc-art .p1 { position: absolute; inset: 0; transition: transform .55s ease; }
.gc-art .p2 { position: absolute; inset: 22% 24%; border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(43,16,48,.8); transition: transform .55s ease, inset .55s ease; }
.good-card:hover .p1 { transform: scale(1.12); }
.good-card:hover .p2 { transform: rotate(-5deg) scale(1.14); }
.gc-med { position: absolute; right: 10px; top: -33px; z-index: 3;
  transition: transform .4s ease; }
.good-card:hover .gc-med { transform: rotate(-12deg) scale(1.08); }
.gc-badge { position: absolute; left: 10px; top: 10px; z-index: 3; }
.gc-badge .sticker { font-size: .62rem; }

.gc-body { position: relative; z-index: 2; padding: 26px 14px 14px; flex: 1;
  display: flex; flex-direction: column; gap: 6px; background: var(--ivory); }
.gc-name { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; }
.gc-name a { text-decoration: none; }
.gc-name a:hover { color: var(--lacquer); }
.gc-vendor { font-family: var(--font-tag); font-size: .64rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--lapis);
  text-decoration: none; }
.gc-vendor:hover { color: var(--lacquer); }
.gc-tag { font-size: .92rem; font-style: italic; color: var(--plum); }

/* the hover pile-on: more detail, not less */
.gc-more { position: absolute; inset: auto 0 0; z-index: 4; background: var(--ink);
  color: var(--ivory); border-top: 3px solid var(--gold); padding: 12px 14px;
  transform: translateY(102%); transition: transform .38s cubic-bezier(.2,.9,.3,1.2);
  font-family: var(--font-tag); font-size: .68rem; letter-spacing: .06em; }
.good-card:hover .gc-more, .good-card:focus-within .gc-more { transform: translateY(0); }
.gc-more .m-row { display: flex; justify-content: space-between; gap: 8px;
  padding: 2.5px 0; border-bottom: 1px dashed rgba(248,236,216,.35); }
.gc-more .m-row:last-of-type { border-bottom: 0; }
.gc-more .m-k { color: var(--saffron); text-transform: uppercase; letter-spacing: .12em; }
.gc-more .m-actions { display: flex; gap: 8px; margin-top: 9px; }
.gc-more .m-actions .mini { flex: 1; text-align: center; font-family: var(--font-tag);
  font-weight: 600; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; padding: 7px 6px; border: 2px solid var(--ivory);
  color: var(--ivory); background: transparent; }
.gc-more .m-actions .mini:hover { background: var(--ivory); color: var(--ink); }
.gc-more .m-actions .mini.keep.kept { background: var(--fuchsia); border-color: var(--fuchsia); }

/* ==========================================================================
   STALL SIGNS — vendor directory chips
   ========================================================================== */
.stall-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px; }
.stall-sign { position: relative; border: 3px solid var(--ink); background: var(--ivory);
  box-shadow: var(--hard3); padding: 10px 10px 8px; text-decoration: none;
  text-align: center; overflow: hidden; }
.stall-sign::before { content: ''; position: absolute; inset: 0; opacity: .9; }
.stall-sign > * { position: relative; }
.stall-sign .ss-no { display: inline-block; font-family: var(--font-badge);
  background: var(--ink); color: var(--ivory); padding: 2px 12px; font-size: .9rem;
  border: 2px solid var(--ivory); box-shadow: 2px 2px 0 rgba(43,16,48,.5); }
.stall-sign .ss-name { display: block; font-family: var(--font-display);
  font-size: 1.12rem; line-height: 1.06; margin-top: 8px; color: var(--ink);
  text-shadow: 1px 1px 0 var(--ivory); }
.stall-sign .ss-kind { display: block; font-family: var(--font-tag); font-size: .58rem;
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px;
  color: var(--ink); }
.stall-sign:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 5px 7px 0 var(--ink); }

/* ==========================================================================
   FILTER BAZAAR controls
   ========================================================================== */
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  border: 3px solid var(--ink); background: var(--parch); box-shadow: var(--hard3);
  padding: 12px; }
.controls .lbl { font-family: var(--font-tag); font-weight: 600; font-size: .62rem;
  letter-spacing: .16em; text-transform: uppercase; margin-right: 2px; }
.chip { font-family: var(--font-tag); font-weight: 600; font-size: .66rem;
  letter-spacing: .1em; text-transform: uppercase; padding: 7px 13px;
  border: 2.4px solid var(--ink); background: var(--ivory); }
.chip:hover { transform: translateY(-2px); box-shadow: 3px 4px 0 var(--ink); }
.chip.on { background: var(--ink); color: var(--ivory); }
.controls select, .controls input[type='search'] { font-family: var(--font-tag);
  font-weight: 600; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 10px; border: 2.4px solid var(--ink); background: var(--ivory);
  color: var(--ink); }
.controls input[type='search'] { text-transform: none; min-width: 150px; flex: 1 1 150px; }
.count-note { font-family: var(--font-tag); font-size: .66rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--plum); }

/* ==========================================================================
   PRODUCT PAGE — the full celebration
   ========================================================================== */
.prod-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 34px; align-items: start; }
@media (max-width: 900px) { .prod-layout { grid-template-columns: 1fr; } }

.swatch-stage { position: relative; border: 4px solid var(--ink); box-shadow: var(--hard);
  height: clamp(300px, 44vw, 480px); overflow: hidden; cursor: grab; background: var(--ivory); }
.swatch-stage.grabbing { cursor: grabbing; }
.swatch-stage .sw { position: absolute; inset: 0; background-repeat: repeat; }
.swatch-zoombar { display: flex; align-items: center; gap: 12px; margin-top: 10px;
  border: 3px solid var(--ink); background: var(--parch); padding: 10px 14px;
  box-shadow: var(--hard3); }
.swatch-zoombar .lbl { font-family: var(--font-tag); font-weight: 600; font-size: .62rem;
  letter-spacing: .14em; text-transform: uppercase; }
.swatch-zoombar input[type='range'] { flex: 1; accent-color: var(--lacquer); height: 6px; }
.zoombtn { width: 34px; height: 34px; border: 2.4px solid var(--ink); background: var(--ivory);
  font-family: var(--font-tag); font-weight: 600; font-size: 1rem; line-height: 1; }
.zoombtn:hover { background: var(--saffron); }
.zoom-readout { font-family: var(--font-tag); font-weight: 600; font-size: .72rem;
  min-width: 46px; text-align: right; }
.swatch-hint { font-family: var(--font-tag); font-size: .6rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--plum); margin-top: 7px; }

.swatch-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.swatch-thumb { width: 74px; height: 74px; border: 3px solid var(--ink); padding: 0;
  background: var(--ivory); position: relative; box-shadow: var(--hard3); }
.swatch-thumb i { position: absolute; inset: 0; display: block; }
.swatch-thumb.on { outline: 3px solid var(--fuchsia); outline-offset: 2px; }
.swatch-thumb:hover { transform: translateY(-2px); }

.spec-table { border: 3px solid var(--ink); background: var(--ivory); box-shadow: var(--hard3); }
.spec-row { display: flex; gap: 10px; padding: 9px 14px; border-bottom: 2px dashed var(--gold);
  font-family: var(--font-tag); font-size: .72rem; align-items: baseline; }
.spec-row:last-child { border-bottom: 0; }
.spec-row .k { flex: 0 0 96px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--lacquer); }
.spec-row .v { flex: 1; }

.price-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.prod-title { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: .95; }
.prod-lede { font-size: 1.12rem; font-style: italic; color: var(--plum); }

/* scroll rails — ornament that shifts as you scroll */
.scroll-rail { position: fixed; top: 0; bottom: 0; width: 46px; z-index: -1;
  opacity: .5; pointer-events: none; transition: opacity .5s; }
.scroll-rail.rl { left: 0; } .scroll-rail.rr { right: 0; }
@media (max-width: 1400px) { .scroll-rail { display: none; } }

/* pairs loudly */
.pairs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; }

/* vendor story block */
.vendor-story { position: relative; }
.vendor-story .vs-sign { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.vendor-story .vs-story p { font-size: 1.04rem; }
.stall-medallion { flex: 0 0 auto; }

/* ==========================================================================
   HOME — category cards, spotlight, teases, banner
   ========================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px; }
.cat-card { position: relative; display: flex; flex-direction: column; min-height: 250px;
  border: 4px solid var(--ink); box-shadow: var(--hard); overflow: hidden;
  text-decoration: none; background: var(--ivory); }
.cat-card .cc-bg { position: absolute; inset: 0; transition: transform .6s ease; }
.cat-card:hover .cc-bg { transform: scale(1.1) rotate(1.2deg); }
.cat-card .cc-count { position: relative; align-self: flex-end; margin: 10px;
  font-family: var(--font-tag); font-weight: 600; font-size: .62rem;
  letter-spacing: .12em; text-transform: uppercase; background: var(--ink);
  color: var(--ivory); padding: 4px 10px; border: 2px solid var(--ivory); }
.cat-card .cc-plate { position: relative; margin: auto 14px 14px; background: var(--ivory);
  border: 3px solid var(--ink); box-shadow: var(--hard3); padding: 12px 16px 10px;
  text-align: center; }
.cat-card .cc-name { display: block; font-family: var(--font-display); font-size: 2rem;
  line-height: 1; }
.cat-card .cc-blurb { display: block; font-size: .88rem; font-style: italic;
  color: var(--plum); margin-top: 3px; }
.cat-card .cc-go { position: relative; margin: 0 14px 14px; font-family: var(--font-tag);
  font-weight: 600; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  background: var(--ink); color: var(--ivory); text-align: center; padding: 8px; }
.cat-card:hover .cc-plate { transform: rotate(-1.6deg); }
.cat-card:hover .cc-go { background: var(--lacquer); }

.spot-in { min-height: 300px; }
.spot-grid { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 0; }
.spot-art { position: relative; display: block; min-height: 300px;
  border-right: 4px solid var(--ink); overflow: hidden; }
.spot-art i { position: absolute; inset: 0; display: block; }
.spot-art .spot-med { position: absolute; right: 14px; bottom: 14px; }
.spot-copy { padding: clamp(18px, 3vw, 36px); display: flex; flex-direction: column;
  gap: 10px; justify-content: center; }
.spot-name { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); }
.spot-name a { text-decoration: none; }
.spot-name a:hover { color: var(--lacquer); }
.spot-tag { font-size: 1.2rem; font-style: italic; color: var(--plum); margin: 0; }
.spot-story { margin: 0; }
.spot-motto { font-size: .7rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--emerald); margin: 0; }
.spot-navrow { display: flex; justify-content: center; margin-top: 18px; }
.spot-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@media (max-width: 760px) {
  .spot-grid { grid-template-columns: 1fr; }
  .spot-art { min-height: 180px; border-right: 0; border-bottom: 4px solid var(--ink); }
}

.tease-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .tease-grid { grid-template-columns: 1fr; } }
.tease-in { padding: clamp(18px, 3vw, 30px); display: flex; flex-direction: column;
  gap: 8px; align-items: flex-start; }
.tease-title { font-family: var(--font-display); font-size: 2.2rem; }
.tease-x { font-size: .98rem; margin: 0; }

.banner-in { text-align: center; padding: clamp(26px, 4vw, 50px); }
.banner-title { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 4.4rem);
  color: var(--ink); line-height: .95; margin: 14px 0 22px; }
#banner-bunting { display: flex; justify-content: center; }

/* ==========================================================================
   PATTERN LIBRARY
   ========================================================================== */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px; }
.lib-card { position: relative; border: 4px solid var(--ink); box-shadow: var(--hard);
  padding: 10px; background: var(--ivory); text-align: left; display: flex;
  flex-direction: column; cursor: pointer; }
.lib-card .lc-prev { display: block; height: 150px; border: 3px solid var(--ink); position: relative;
  overflow: hidden; flex: 0 0 auto; }
.lib-card .lc-prev i { position: absolute; inset: 0; display: block; transition: transform .5s; }
.lib-card:hover .lc-prev i { transform: scale(1.18) rotate(1.5deg); }
.lib-card .lc-plate { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%) rotate(-2deg);
  background: var(--ivory); border: 2.5px solid var(--ink); box-shadow: var(--hard3);
  padding: 5px 16px; font-family: var(--font-display); font-size: 1.14rem; white-space: nowrap; }
.lib-card:hover .lc-plate { transform: translateX(-50%) rotate(1.5deg); }
.lib-card .lc-meta { display: flex; justify-content: space-between; align-items: flex-end;
  height: 44px;
  font-family: var(--font-tag); font-size: .6rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--plum); }
.lib-card .lc-meta span { white-space: nowrap; }

dialog.lib-zoom { border: none; padding: 0; background: transparent; max-width: min(860px, 94vw);
  width: 100%; }
dialog.lib-zoom::backdrop { background: rgba(43,16,48,.72); }
.lz-frame { border: 5px solid var(--ink); box-shadow: 10px 10px 0 rgba(43,16,48,.6);
  background: var(--ivory); position: relative; padding: 18px; }
.lz-frame::before { content: ''; position: absolute; inset: 7px;
  border: 2px dashed var(--gold); pointer-events: none; }
.lz-prev { height: clamp(240px, 40vh, 380px); border: 4px solid var(--ink);
  position: relative; overflow: hidden; }
.lz-prev i { position: absolute; inset: 0; display: block; }
.lz-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  margin-top: 14px; position: relative; z-index: 2; }
.lz-ways { display: flex; gap: 8px; }
.way-dot { width: 40px; height: 40px; border: 3px solid var(--ink); padding: 0;
  box-shadow: var(--hard3); position: relative; overflow: hidden; }
.way-dot i { position: absolute; inset: 0; }
.way-dot.on { outline: 3px solid var(--fuchsia); outline-offset: 2px; }
.lz-close { position: absolute; top: -18px; right: -14px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink);
  background: var(--lacquer); color: var(--ivory); font-family: var(--font-tag);
  font-weight: 600; font-size: 1.1rem; box-shadow: var(--hard3); }
.lz-close:hover { transform: rotate(90deg); }
.lz-meta { position: relative; z-index: 2; }
.lz-meta h3 { font-family: var(--font-display); font-size: 2rem; }
.lz-meta .origin { font-style: italic; color: var(--plum); }

/* census strip */
.census { display: flex; flex-wrap: wrap; gap: 8px; }
.census .tag { cursor: pointer; }

/* ==========================================================================
   JOURNAL
   ========================================================================== */
.essay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px; }
.essay-card { position: relative; border: 4px solid var(--ink); background: var(--ivory);
  box-shadow: var(--hard); display: flex; flex-direction: column; overflow: hidden; }
.essay-card .ec-top { height: 110px; border-bottom: 3px solid var(--ink);
  position: relative; overflow: hidden; }
.essay-card .ec-top i { position: absolute; inset: 0; transition: transform .5s; }
.essay-card:hover .ec-top i { transform: scale(1.15); }
.essay-card .ec-body { padding: 16px 16px 14px; display: flex; flex-direction: column;
  gap: 8px; flex: 1; }
.essay-card .ec-title { font-family: var(--font-display); font-size: 1.7rem;
  line-height: 1; }
.essay-card .ec-title a { text-decoration: none; }
.essay-card .ec-title a:hover { color: var(--lacquer); }
.essay-card .ec-dek { font-style: italic; color: var(--plum); font-size: .98rem; }
.essay-card .ec-by { display: flex; gap: 10px; flex-wrap: wrap; font-family: var(--font-tag);
  font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* featured essay split — text left, the essay's cloth right */
.feat-split { display: grid; grid-template-columns: 1.65fr .95fr; gap: clamp(18px,3vw,36px);
  align-items: stretch; }
.feat-pat { position: relative; display: flex; flex-direction: column; text-decoration: none;
  border: 3px solid var(--ink); box-shadow: var(--hard2); overflow: hidden;
  background: var(--ivory); min-height: 280px; transition: transform .35s ease; }
.feat-pat i { position: absolute; inset: 0 0 52px; transition: transform .5s ease; }
.feat-pat:hover { transform: rotate(-.8deg) translateY(-3px); }
.feat-pat:hover i { transform: scale(1.1) rotate(1deg); }
.feat-pat-tag { position: absolute; left: 0; right: 0; bottom: 0; height: 52px;
  border-top: 3px solid var(--ink); background: var(--ivory); display: flex;
  align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; }
@media (max-width: 900px) {
  .feat-split { grid-template-columns: 1fr; }
  .feat-pat { min-height: 190px; }
}

/* article page */
.article-hero { text-align: center; padding-bottom: 10px; }
.article-hero h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 4.6rem);
  max-width: 20ch; margin: 10px auto 0; line-height: .95; }
.article-body { max-width: 68ch; margin: 0 auto; font-size: 1.14rem; }
.article-body p { margin-bottom: 1.25em; }
.article-body > p:first-of-type::first-letter { font-family: var(--font-display);
  font-size: 4.4em; float: left; line-height: .78; padding: 6px 12px 0 0;
  color: var(--lacquer); }
.article-body h3 { font-family: var(--font-display); font-weight: 400;
  font-size: 1.9rem; margin: 1.4em 0 .6em; color: var(--lapis); }
.pull-quote { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.15; color: var(--fuchsia); text-align: center; margin: 1.4em auto;
  max-width: 24ch; position: relative; padding: 18px 0; }
.pull-quote::before, .pull-quote::after { content: '❖'; display: block; color: var(--gold);
  font-size: 1rem; margin: 0 auto 8px; }
.pull-quote::after { margin: 8px auto 0; }
.article-foot { max-width: 68ch; margin: 34px auto 0; display: flex; flex-wrap: wrap;
  gap: 10px; align-items: center; justify-content: space-between; }

/* ==========================================================================
   EVENTS
   ========================================================================== */
.day-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px; }
.day-card { border: 4px solid var(--ink); background: var(--ivory); box-shadow: var(--hard); }
.day-head { padding: 12px 16px; border-bottom: 3px solid var(--ink); position: relative;
  overflow: hidden; }
.day-head > * { position: relative; }
.day-head .d-day { font-family: var(--font-display); font-size: 1.9rem; line-height: 1;
  color: var(--ivory); text-shadow: 2px 2px 0 var(--ink); }
.day-head .d-open { font-family: var(--font-tag); font-weight: 600; font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ivory); }
.sched { padding: 10px 0 6px; }
.sched-item { display: grid; grid-template-columns: 52px 1fr; gap: 10px;
  padding: 9px 14px; border-bottom: 1.6px dashed var(--gold); }
.sched-item:last-child { border-bottom: 0; }
.sched-item .t { font-family: var(--font-tag); font-weight: 600; font-size: .78rem;
  color: var(--lacquer); padding-top: 3px; }
.sched-item .ti { font-family: var(--font-display); font-size: 1.18rem; line-height: 1.05; }
.sched-item .w { font-family: var(--font-tag); font-size: .6rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--lapis); }
.sched-item .x { font-size: .86rem; font-style: italic; color: var(--plum); }
.sched-item .pill { display: inline-block; font-family: var(--font-tag); font-size: .56rem;
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 2px 8px;
  border: 1.8px solid var(--ink); margin-left: 6px; vertical-align: middle;
  background: var(--saffron); }

/* stall map */
.stallmap { border: 4px solid var(--ink); box-shadow: var(--hard); padding: 18px;
  position: relative; }
.stallmap .mapgrid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.map-stall { aspect-ratio: 1.5; border: 2.5px solid var(--ink); position: relative;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  font-family: var(--font-badge); color: var(--ivory); text-shadow: 1.6px 1.6px 0 var(--ink);
  font-size: clamp(.85rem, 1.6vw, 1.15rem); overflow: hidden; }
.map-stall i { position: absolute; inset: 0; opacity: .85; }
.map-stall span { position: relative; }
.map-stall:hover { transform: scale(1.06) rotate(-1.5deg); z-index: 2;
  box-shadow: var(--hard3); }
.map-aisle { display: flex; align-items: center; justify-content: center;
  font-family: var(--font-tag); font-size: .6rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ivory); text-shadow: 1px 1px 0 var(--ink);
  border: 2.5px dashed var(--ink); }
.map-gate { border: 3px solid var(--ink); background: var(--saffron);
  font-family: var(--font-tag); font-weight: 600; font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase; display: flex; align-items: center; justify-content: center; }

/* tickets */
.ticket-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px; }
.ticket { position: relative; border: 4px solid var(--ink); background: var(--ivory);
  box-shadow: var(--hard); padding: 18px 18px 16px; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px; }
.ticket::before, .ticket::after { content: ''; position: absolute; top: 54%;
  width: 34px; height: 34px; border-radius: 50%; background: var(--body-bg, var(--ivory));
  border: 4px solid var(--ink); }
.ticket::before { left: -20px; } .ticket::after { right: -20px; }
.ticket .tk-band { position: absolute; inset: 0 0 auto; height: 10px; }
.ticket .tk-name { font-family: var(--font-display); font-size: 1.9rem; margin-top: 8px; }
.ticket .tk-note { font-size: .95rem; font-style: italic; color: var(--plum); flex: 1; }
.ticket .tk-foot { display: flex; align-items: center; justify-content: space-between;
  border-top: 2.4px dashed var(--ink); padding-top: 12px; }
.ticket .tk-price { font-family: var(--font-badge); font-size: 1.7rem; color: var(--lacquer); }
.ticket .tk-held { font-family: var(--font-tag); font-weight: 600; font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--emerald); }

/* practical list */
.practical { border: 4px solid var(--ink); background: var(--ivory); box-shadow: var(--hard); }
.practical .spec-row { font-size: .8rem; }

/* ==========================================================================
   TROVE DRAWER
   ========================================================================== */
.scrim { position: fixed; inset: 0; background: rgba(43,16,48,.6); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 92vw); z-index: 95;
  background: var(--ivory); border-left: 5px solid var(--ink);
  box-shadow: -8px 0 0 rgba(43,16,48,.35); transform: translateX(104%);
  transition: transform .38s cubic-bezier(.2,.9,.3,1.15); display: flex;
  flex-direction: column; }
.drawer.on { transform: translateX(0); }
.drawer-head { padding: 16px; border-bottom: 3px solid var(--ink); display: flex;
  align-items: center; justify-content: space-between; position: relative; }
.drawer-head h2 { font-family: var(--font-display); font-size: 1.9rem; }
.drawer-head .eyebrow { color: var(--lacquer); }
.drawer-body { flex: 1; overflow: auto; padding: 14px; }
.trove-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px;
  align-items: center; border: 3px solid var(--ink); margin-bottom: 12px;
  background: var(--ivory); box-shadow: var(--hard3); padding: 8px; }
.trove-item .ti-art { width: 64px; height: 64px; border: 2.5px solid var(--ink); }
.trove-item .ti-name { font-family: var(--font-display); font-size: 1.05rem; line-height: 1; }
.trove-item .ti-name a { text-decoration: none; }
.trove-item .ti-name a:hover { color: var(--lacquer); }
.trove-item .ti-price { font-family: var(--font-tag); font-weight: 600; font-size: .72rem; }
.trove-item .ti-x { width: 30px; height: 30px; border: 2.4px solid var(--ink);
  background: var(--ivory); font-family: var(--font-tag); font-weight: 600; }
.trove-item .ti-x:hover { background: var(--lacquer); color: var(--ivory); }
.drawer-foot { padding: 14px 16px; border-top: 3px solid var(--ink);
  font-family: var(--font-tag); font-size: .66rem; letter-spacing: .08em; }
.drawer-empty { text-align: center; padding: 40px 18px; font-style: italic;
  color: var(--plum); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 0; visibility: hidden;
  transform: translateX(-50%) translateY(calc(100% + 34px));
  z-index: 120; background: var(--ink); color: var(--ivory); border: 3px solid var(--saffron);
  font-family: var(--font-tag); font-weight: 600; font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; padding: 12px 22px; transition: transform .4s cubic-bezier(.2,.9,.3,1.3), visibility 0s .4s;
  box-shadow: var(--hard2); }
.toast.on { visibility: visible; transform: translateX(-50%) translateY(-26px);
  transition: transform .4s cubic-bezier(.2,.9,.3,1.3), visibility 0s; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { margin-top: 40px; border-top: 4px solid var(--ink); position: relative;
  background: var(--ink); color: var(--ivory); }
.foot-band { height: 34px; border-bottom: 3px solid var(--ink); }
.foot-main { padding: 34px 0 20px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 26px; }
.foot-grid h4 { font-family: var(--font-tag); font-weight: 600; font-size: .66rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--saffron);
  margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 7px; }
.foot-grid a { font-family: var(--font-tag); font-size: .74rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border-bottom: 2px solid transparent; }
.foot-grid a:hover { border-bottom-color: var(--saffron); }
.foot-mark { font-family: var(--font-display); font-size: 2.2rem; line-height: .95;
  color: var(--ivory); }
.foot-mark em { font-style: normal; color: var(--saffron); }
.foot-note { font-size: .92rem; font-style: italic; color: var(--parch);
  margin-top: 10px; max-width: 34ch; }
.foot-news { margin-top: 14px; display: flex; gap: 0; max-width: 320px; }
.foot-news input { flex: 1; font-family: var(--font-tag); font-size: .72rem;
  padding: 10px 12px; border: 3px solid var(--saffron); border-right: 0;
  background: var(--ivory); color: var(--ink); }
.foot-news button { font-family: var(--font-tag); font-weight: 600; font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase; border: 3px solid var(--saffron);
  background: var(--saffron); color: var(--ink); padding: 0 14px; }
.foot-news button:hover { background: var(--ivory); }
.colophon { border-top: 2px dashed rgba(248,236,216,.4); margin-top: 26px;
  padding: 16px 0 10px; display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; font-family: var(--font-tag); font-size: .62rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--parch); }

/* ==========================================================================
   REVEAL + MISC MOTION
   ========================================================================== */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease,
  transform .7s cubic-bezier(.2,.8,.3,1); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; }
.rv-d3 { transition-delay: .24s; }

.hang { animation: hangs 5s ease-in-out infinite; transform-origin: top center; }
@keyframes hangs { 0%,100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg); } }
.floaty { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-12px) rotate(3deg); } }

/* spotlight */
.spot-panel { position: relative; }
.spot-swap { transition: opacity .45s ease, transform .45s ease; }
.spot-swap.out { opacity: 0; transform: translateY(14px) rotate(1deg); }
.spot-nav { display: flex; gap: 8px; }
.spot-dot { width: 30px; height: 30px; border: 2.4px solid var(--ink);
  font-family: var(--font-tag); font-weight: 600; font-size: .62rem;
  background: var(--ivory); }
.spot-dot.on { background: var(--ink); color: var(--ivory); }
.spot-dot:hover { background: var(--saffron); color: var(--ink); }

/* breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-family: var(--font-tag); font-size: .64rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; }
.crumbs a { text-decoration: none; border-bottom: 2px dotted var(--lacquer); }
.crumbs a:hover { color: var(--lacquer); }
.crumbs .sep { color: var(--lacquer); }

/* notice / empty */
.notice { border: 3px dashed var(--amethyst); padding: 22px; text-align: center;
  font-style: italic; color: var(--plum); background: var(--ivory); }

/* horizontal scroller */
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px);
  gap: 22px; overflow-x: auto; padding: 6px 4px 18px; scroll-snap-type: x proximity; }
.hscroll > * { scroll-snap-align: start; }

/* ==========================================================================
   RESPONSIVE — the rich single column
   ========================================================================== */
@media (max-width: 1020px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-card { width: 150px; } .hero-card .hc-art { height: 100px; }
}
@media (max-width: 860px) {
  .nav-burger { display: inline-block; }
  .navrow { position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); z-index: 96;
    flex-direction: column; align-items: stretch; background: var(--parch);
    border-left: 5px solid var(--ink); padding: 76px 20px 20px; gap: 12px;
    transform: translateX(104%); transition: transform .35s ease;
    box-shadow: -8px 0 0 rgba(43,16,48,.3); }
  .navrow.on { transform: none; }
  .nav-tag { transform: none !important; font-size: .92rem; text-align: center; }
  .nav-spacer { display: none; }
  .nav-tools { flex-direction: row; align-items: center; align-self: flex-end; }
  .nav-close { display: block; align-self: flex-end; }
  .mast-seal { display: none; }
  .hero-card.h3, .hero-card.h4 { display: none; }
  .hero-card { position: relative; display: inline-block; margin: 8px; }
  .hero-cards-row { display: flex; justify-content: center; flex-wrap: wrap; }
  .hero-card.h1 { left: auto; top: auto; }
  .hero-card.h2 { right: auto; top: auto; }
  .prod-layout { grid-template-columns: 1fr; }
  .stallmap .mapgrid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-sticker.hs1 { left: 4%; top: auto; bottom: -18px; transform: scale(.78); }
  .hero-sticker.hs2 { right: 2%; bottom: -30px; transform: scale(.8) rotate(9deg); }
  .mast-row { flex-direction: column; }
  .goods-grid { grid-template-columns: 1fr; }
  .lib-grid { grid-template-columns: 1fr 1fr; }
  .essay-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-main { padding: 26px 14px; }
  .frame { padding: 10px; }
  .controls { padding: 10px; }
  .stallmap .mapgrid { grid-template-columns: repeat(2, 1fr); }
  .swatch-stage { height: 300px; }
  .gc-art { height: 170px; }
  .lib-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   REDUCED MOTION — the market can hold still
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important;
    animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker-track { animation: none; flex-wrap: wrap; }
  .confetti-layer { display: none; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
html { scroll-behavior: smooth; }
