/* ==========================================================================================================
   WARP VAULT STORE: shared design system ("Loft shop")
   One loud colour (lime, from the logo). Everything else is sampled from the photo backdrop.
   Pages load:  <link rel="stylesheet" href="store.css">  <script src="store.js"></script>   (see store.js header)

   COMPONENT INDEX (class: what it is)
   ---------------------------------------------------------------------------------------------------------
   Tokens          :root custom properties: --lime --lime-deep --ink --paper --concrete --concrete-deep --cork
                   --wood --sale --muted, plus --paper-hi (card ground), --gutter, --gap, --nav-h, --bar-h, eases.
   Layout
     .wv-wrap        centred content column with equal outer margins (var(--gutter)); max 1440px.
     .wv-section     vertical section padding. Add a field class for its ground.
     .wv-field       colour ground + matching text vars: .lime .ink .concrete .cork .paper (set --fg --fg2 --line).
                     Add data-grain to any field for Eric's film grain (WV.grain runs by itself).
     .wv-split       two-column block (copy | picture), stacks on phones. .wv-split.flip swaps sides.
     .wv-head        section heading row: title left, link/button right (stacks on phones).
     .wv-grid        product grid: 2-up phone, 3-up from 720px, 4-up from 1080px. .wv-grid.three caps at 3-up.
   Type
     .wv-title       condensed display headline (Archivo wdth 70, 800). An <em> inside is the serif italic accent.
                     Sizes: default section size, .xl hero size, .sm small.
     .wv-shout       extended heavy uppercase title (Archivo wdth 125, 900). One per page.
     .wv-meta        small caps meta line (12px, tracked, 600).
     .wv-lede        larger body paragraph, max 34em.
     .wv-prose       running text blocks (about page): paragraphs, h2/h3, lists, links.
     .wv-price       price row: <b> price, <s> struck price, .bf Black Friday line. Tabular numerals.
   Chrome (all injected by WV.mountChrome; do not hand-write)
     .wv-bar         announcement bar (lime; .sale = red during Black Friday).
     .wv-nav         sticky black nav: logo, links, Saved button with count, phone menu button.
     .wv-foot        black footer with the logo large.
     .wv-skip        skip link.
   Controls
     .wv-btn         pill button with round arrow chip: <a class="wv-btn"><span>Label</span><i class="wv-arrow"></i></a>
                     Variants: .ghost (outline) .sale (red, sale only) .lime (lime pill) .sm (small) .block (full width).
                     On dark fields the ghost turns light by itself. The arrow chip is optional.
     .wv-arrow       the round arrow chip (CSS drawn). .down / .back / .ext rotate it.
     .wv-ico         CSS-drawn icons: .heart .close .menu .search .link .check .plus (uses currentColor).
     .wv-heart       round save button (aria-pressed="true" = saved). Built by WV.heart(item).
     .wv-chip        filter chip (button or a). aria-pressed="true" or .is-on = selected. .sale = red variant.
     .wv-chips       row of chips (wraps). .scroll = one line that scrolls sideways on phones.
     .wv-tag         small static label: default outline; .new lime; .sale red; .ink black.
     .wv-input       text/search field. .wv-select  native select styled to match. .wv-field-label their label.
   Product
     .wv-card        product card (build with WV.card(item)): square photo, NEW tag, sale tag, heart, short name,
                     brand, size + condition tags, price / struck price / Black Friday price.
     .wv-tile        photo link tile with a caption footer (sections): <a class="wv-tile"><span class="wv-tile-ph">
                     <img></span><span class="wv-tile-cap"><b>Name</b><small>48 pieces</small><i class="wv-arrow"></i></span></a>
     .wv-photo       a square photo frame with the 1.5px ink border (img inside fills it, never cropped).
   Pieces
     .wv-marquee     scrolling black strip (build with WV.marquee(el, [words])); pauses on hover.
     .wv-badge       round scalloped rotating badge (build with WV.badge({text, big, small})).
     .wv-tear        torn-paper seam: put as first child of a section; --tear sets the paper colour (default
                     --paper). .wv-tear.bottom sits on the section's bottom edge instead. Max two per page.
     .wv-count       countdown (build with WV.countdown(el, date)); digits roll with Eric's rollcounter.
     .wv-stats       row of real numbers with rules between: <div class="wv-stats"><div><b data-count="906"></b>
                     <span>label</span></div>…</div>   (WV.counts(root) rolls every [data-count] up once).
     .wv-steps       numbered steps list (how buying works): <ol class="wv-steps"><li><h3></h3><p></p></li></ol>
     .wv-drawer      side drawer / phone bottom sheet (WV.drawer(id, {title, body}) or the Saved drawer).
     .wv-skel        loading skeleton card (WV.skeletons(n) returns n of them for a .wv-grid).
     .wv-empty       empty / missing / error state block (WV.empty({title, text, href, label})).
     .wv-toast       toast (WV.toast("Saved")).
   Motion helpers
     [data-reveal]   a block whose [data-r] children rise in once, staggered 75ms, when it scrolls into view.
                     data-r="clip" = picture wipe; data-r="fade" = fade only. WV.reveal(root) wires new blocks.
     [data-when]     show only in a sale phase: data-when="before", "during", "after" or several ("before after").
     .wv-sr          visually hidden text for screen readers.
   Everything honours prefers-reduced-motion (movement is dropped, short fades stay).
   ========================================================================================================== */

/* ---------- fonts (self-hosted, no runtime calls) ---------- */
/* TYPE (2026-11-21, Eric: "stick to the fonts Texart has" + "look very closely at the spacing"). Matched by setting
   Texart's own headline beside candidates: condensed grotesk = Archivo at 75% width, 800; accent = Playfair Display
   italic 800, same size, inline; text = DM Sans; small labels = DM Mono. The browser picks the face by font-stretch:
   narrow (<=80%) and extra-wide (>=111%) requests get Archivo, normal width gets DM Sans. */
@font-face { font-family: "Archivo"; src: url("fonts/archivo-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 80%; font-style: normal; font-display: swap; }
/* the one big title per page (extra-wide request) uses the tall condensed display face the page sizes were tuned and checked with */
@font-face { font-family: "Archivo"; src: url("fonts/bigshoulders-display.woff2") format("woff2"); font-weight: 100 900; font-stretch: 111% 200%; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/dmsans-normal.woff2") format("woff2"); font-weight: 100 1000; font-stretch: 81% 110%; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/dmsans-italic.woff2") format("woff2"); font-weight: 100 1000; font-stretch: 81% 110%; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/playfair-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/dmmono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --lime: #b6f23c;
  --lime-deep: #8fd014;
  --ink: #141412;
  --paper: #f4f1ea;
  --concrete: #b9b3a8;
  --concrete-deep: #6f6a61;
  --cork: #c79a5b;
  --wood: #5a3a22;
  --sale: #e5482d;
  --muted: #5d594f;

  --paper-hi: #fbf9f3;                 /* card ground, a step lighter than the page */
  --fg: var(--ink); --fg2: var(--muted); --line: var(--ink); --ground: var(--paper);

  --gutter: clamp(16px, 4vw, 56px);
  --gap: clamp(12px, 1.6vw, 24px);
  --nav-h: 60px;
  --bar-h: 40px;
  --bw: 1.5px;                          /* the card/border weight */

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
}
@media (min-width: 900px) { :root { --nav-h: 72px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); scrollbar-color: var(--ink) var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-stretch: 100%; font-weight: 400; font-size: 1rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; display: block; min-height: calc(100vh - var(--bar-h) - var(--nav-h)); min-height: calc(100svh - var(--bar-h) - var(--nav-h)); }
/* before store.js mounts the bar and nav, hold their exact room so nothing jumps (a page may also ship a static
   shell marked data-wv-shell, as the home page does) */
html.wv-pre body:not(:has(> [data-wv-shell]))::before { content: ""; flex: none; display: block; height: calc(var(--bar-h) + var(--nav-h)); background: linear-gradient(var(--lime) 0 var(--bar-h), var(--ink) 0); }
html.wv-pre[data-bar="sale"] body:not(:has(> [data-wv-shell]))::before { background: linear-gradient(var(--sale) 0 var(--bar-h), var(--ink) 0); }
html[data-bar="sale"] .wv-bar[data-wv-shell] { background: var(--sale); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
/* the only italic on the site is the serif accent: <i> is used for drawn bits (arrows, labels), never slanted text */
i, cite, address, dfn, var { font-style: normal; }
::selection { background: var(--lime); color: var(--ink); }
.wv-field.lime ::selection, .wv-bar ::selection { background: var(--ink); color: var(--lime); }
input, textarea, select { caret-color: var(--ink); accent-color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--lime); }
.wv-field.ink :focus-visible, .wv-nav :focus-visible, .wv-foot :focus-visible { outline-color: var(--lime); box-shadow: none; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 3px solid var(--paper); border-radius: 999px; }

.wv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wv-skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.wv-skip:focus { top: 12px; }

/* sale-phase switches: html[data-phase] is set by store.js after the data loads */
html:not([data-phase]) [data-when],
html[data-phase="none"] [data-when],
html[data-phase="before"] [data-when]:not([data-when~="before"]),
html[data-phase="during"] [data-when]:not([data-when~="during"]),
html[data-phase="after"] [data-when]:not([data-when~="after"]) { display: none !important; }

/* ---------- layout ---------- */
.wv-wrap { width: 100%; max-width: calc(1440px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wv-section { position: relative; padding-block: clamp(56px, 8.5vw, 124px); }
.wv-section.tight { padding-block: clamp(40px, 5.5vw, 80px); }

.wv-field { position: relative; background: var(--ground); color: var(--fg); isolation: isolate; }
.wv-field.paper { --ground: var(--paper); --fg: var(--ink); --fg2: var(--muted); --line: var(--ink); }
.wv-field.lime { --ground: var(--lime); --fg: var(--ink); --fg2: #2f3a12; --line: var(--ink); }
.wv-field.ink { --ground: var(--ink); --fg: var(--paper); --fg2: var(--concrete); --line: #3a3833; }
.wv-field.concrete { --ground: var(--concrete); --fg: var(--ink); --fg2: #3b3832; --line: var(--ink); }
.wv-field.cork { --ground: var(--cork); --fg: var(--ink); --fg2: #3d2a12; --line: var(--ink); }
.wv-field.sale { --ground: var(--sale); --fg: var(--ink); --fg2: var(--ink); --line: var(--ink); }   /* no dimmed text on red: only ink passes 4.5:1 */
.wv-field.sale .wv-meta.dim, .wv-field.sale .wv-count-u > span, .wv-field.sale .wv-dim { color: var(--ink); }
/* film grain sits under the content of any field that asks for it */
:where([data-grain]) > :where(:not(.fg)) { position: relative; z-index: 1; }
[data-grain] > .fg { z-index: 0; }

.wv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(24px, 3.4vw, 48px); }
.wv-head > :first-child { min-width: 0; }

.wv-split { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
@media (min-width: 860px) {
  .wv-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wv-split.flip > :first-child { order: 2; }
}

.wv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (min-width: 720px) { .wv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .wv-grid:not(.three) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- type ---------- */
.wv-title {
  font-family: var(--sans); font-stretch: 70%; font-weight: 800; letter-spacing: -0.02em; line-height: 0.9;
  font-size: clamp(2.6rem, 6.4vw, 5.5rem); text-wrap: balance; color: var(--fg);
}
.wv-title.xl { font-size: clamp(3.3rem, 9vw, 8.5rem); }
.wv-title.sm { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 0.95; }
.wv-title em, .wv-accent {
  font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: 100%; letter-spacing: -0.015em;
  font-size: 1.06em; padding-right: 0.04em;
}
.wv-shout {
  font-family: var(--sans); font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: -0.035em;
  line-height: 0.84; font-size: clamp(2.7rem, 12.4vw, 12.5rem); color: var(--fg);
}
.wv-meta { font-size: 0.75rem; line-height: 1.3; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--fg); }
.wv-meta.dim { color: var(--fg2); }
@media (max-width: 719px) { .wv-meta { font-size: 0.8125rem; letter-spacing: 0.07em; } }
.wv-lede { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.45; max-width: 34em; color: var(--fg); text-wrap: pretty; }
.wv-lede.dim, .wv-dim { color: var(--fg2); }
.wv-num { font-variant-numeric: tabular-nums; font-weight: 700; }

.wv-prose { max-width: 66ch; font-size: 1.0625rem; line-height: 1.6; }
.wv-prose > * + * { margin-top: 1em; }
.wv-prose h2 { font-stretch: 70%; font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 0.98; letter-spacing: -0.015em; margin-top: 1.6em; }
.wv-prose h3 { font-weight: 700; font-size: 1.125rem; margin-top: 1.5em; }
.wv-prose ul { list-style: none; }
.wv-prose ul li { position: relative; padding-left: 1.4em; }
.wv-prose ul li + li { margin-top: 0.4em; }
.wv-prose ul li::before { content: ""; position: absolute; left: 0.2em; top: 0.55em; width: 0.5em; height: 0.5em; background: var(--fg); transform: rotate(45deg); }
.wv-prose a { font-weight: 600; }
.wv-prose a:hover { background: var(--lime); text-decoration: none; }

.wv-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.wv-price b { font-weight: 700; font-size: 1.125rem; }
.wv-price s { color: var(--muted); font-weight: 500; font-size: 0.875rem; text-decoration-thickness: 1.5px; }
/* before the sale: "Today $35" then "Black Friday $26", the Friday price at full price size */
.wv-price.has-bf { display: grid; gap: 5px; justify-items: start; }
.wv-price .now, .wv-price .bf { display: inline-flex; align-items: baseline; gap: 7px; }
.wv-price .now i, .wv-price .bf i { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; }
.wv-price .now i { color: var(--muted); }
.wv-price .now b { font-weight: 600; font-size: 0.9375rem; color: var(--muted); }
.wv-price .bf i { background: var(--sale); color: var(--ink); padding: 3px 6px 2px; }
.wv-price .bf b { font-weight: 700; font-size: 1.125rem; }
.wv-price.is-sale b { background: var(--sale); padding: 1px 6px; margin-left: -2px; }
.wv-price.lg b { font-stretch: 70%; font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 0.95; }
.wv-price.lg s { font-size: 1.25rem; }
.wv-price.lg .now b { font-stretch: 100%; font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.wv-price.lg .now i, .wv-price.lg .bf i { font-size: 0.8125rem; }

/* ---------- icons (CSS drawn, one stroke weight) ---------- */
.wv-ico { display: inline-block; width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.wv-ico.heart { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 20.5s-7.5-4.6-7.5-10.2A4.3 4.3 0 0 1 12 7.6a4.3 4.3 0 0 1 7.5 2.7c0 5.600-7.5 10.200-7.500 10.200z'/%3E%3C/svg%3E"); }
.wv-ico.heart.full, [aria-pressed="true"] > .wv-ico.heart { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 20.5s-7.5-4.6-7.5-10.2A4.3 4.3 0 0 1 12 7.6a4.3 4.3 0 0 1 7.5 2.7c0 5.600-7.5 10.200-7.500 10.200z'/%3E%3C/svg%3E"); }
.wv-ico.close { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.wv-ico.menu { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 8h16M4 16h16'/%3E%3C/svg%3E"); }
.wv-ico.search { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.500 4.500'/%3E%3C/svg%3E"); }
.wv-ico.link { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.700 0l3-3a4 4 0 0 0-5.700-5.700l-1 1M14 10a4 4 0 0 0-5.700 0l-3 3a4 4 0 0 0 5.700 5.700l1-1'/%3E%3C/svg%3E"); }
.wv-ico.check { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.500l4.500 4.500L19 7.500'/%3E%3C/svg%3E"); }
.wv-ico.plus { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }

/* ---------- buttons ---------- */
.wv-btn {
  --b-bg: var(--ink); --b-fg: var(--paper); --b-chip: var(--lime); --b-chip-fg: var(--ink); --b-line: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 6px 24px;
  border: var(--bw) solid var(--b-line); border-radius: 999px; background: var(--b-bg); color: var(--b-fg);
  font-weight: 700; font-size: 1rem; line-height: 1.1; letter-spacing: 0.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent; user-select: none;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.wv-btn:has(.wv-arrow) { padding-right: 6px; justify-content: space-between; }
.wv-btn:active { transform: scale(0.97); }
.wv-btn.ghost { --b-bg: transparent; --b-fg: var(--fg, var(--ink)); --b-line: var(--fg, var(--ink)); --b-chip: var(--fg, var(--ink)); --b-chip-fg: var(--ground, var(--paper)); }
.wv-btn.lime { --b-bg: var(--lime); --b-fg: var(--ink); --b-chip: var(--ink); --b-chip-fg: var(--lime); }
.wv-btn.sale { --b-bg: var(--sale); --b-fg: var(--ink); --b-chip: var(--ink); --b-chip-fg: var(--paper); }
.wv-field.ink .wv-btn:not(.ghost):not(.sale), .wv-foot .wv-btn:not(.ghost):not(.sale) { --b-bg: var(--lime); --b-fg: var(--ink); --b-line: var(--lime); --b-chip: var(--ink); --b-chip-fg: var(--lime); }
.wv-field.lime .wv-btn.lime { --b-line: var(--ink); }
.wv-field.sale .wv-btn.sale { --b-bg: var(--ink); --b-fg: var(--paper); --b-line: var(--ink); --b-chip: var(--sale); --b-chip-fg: var(--ink); }
.wv-btn.sm { min-height: 44px; padding: 4px 18px; font-size: 0.9375rem; gap: 10px; }
.wv-btn.sm:has(.wv-arrow) { padding-right: 5px; }
.wv-btn.block { display: flex; width: 100%; }
.wv-btn[disabled], .wv-btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .wv-btn:hover { --b-bg: var(--lime); --b-fg: var(--ink); --b-chip: var(--ink); --b-chip-fg: var(--lime); }
  .wv-field.lime .wv-btn:not(.ghost):not(.sale):hover, .wv-btn.lime:hover { --b-bg: var(--paper); }
  .wv-field.ink .wv-btn:not(.ghost):not(.sale):hover, .wv-foot .wv-btn:not(.ghost):not(.sale):hover { --b-bg: var(--paper); --b-line: var(--paper); }
  .wv-btn.ghost:hover { --b-bg: var(--fg, var(--ink)); --b-fg: var(--ground, var(--paper)); --b-chip: var(--lime); --b-chip-fg: var(--ink); }
  .wv-btn.sale:hover { --b-bg: var(--ink); --b-fg: var(--paper); --b-chip: var(--sale); --b-chip-fg: var(--ink); }
  .wv-btn:hover .wv-arrow::before, a:hover > .wv-arrow::before { transform: translateX(3px); }
}
.wv-arrow {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: var(--b-chip, var(--ink)); color: var(--b-chip-fg, var(--lime)); transition: background-color 160ms ease, color 160ms ease;
}
.wv-btn.sm .wv-arrow { width: 34px; height: 34px; }
.wv-arrow::before {
  content: ""; width: 18px; height: 18px; background: currentColor; transition: transform 200ms var(--ease-out);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wv-arrow.down { transform: rotate(90deg); } .wv-arrow.back { transform: rotate(180deg); } .wv-arrow.ext { transform: rotate(-45deg); }

/* ---------- tags + chips + form bits ---------- */
.wv-tag {
  display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border: var(--bw) solid var(--ink); background: transparent; color: var(--ink);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.2; white-space: nowrap; border-radius: 999px;
}
.wv-tag.new { background: var(--lime); }
.wv-tag.sale { background: var(--sale); }
.wv-tag.ink { background: var(--ink); color: var(--paper); }

.wv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wv-chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x proximity; }
.wv-chips.scroll::-webkit-scrollbar { display: none; }
.wv-chips.scroll > * { scroll-snap-align: start; flex: none; }
@media (min-width: 900px) { .wv-chips.scroll { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }
.wv-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px; border: var(--bw) solid var(--fg, var(--ink)); border-radius: 999px;
  background: transparent; color: var(--fg, var(--ink)); font-weight: 600; font-size: 0.9375rem; line-height: 1.1; text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background-color 140ms ease, color 140ms ease, transform 140ms var(--ease-out);
}
.wv-chip small { font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums; opacity: 0.7; }
.wv-chip:active { transform: scale(0.96); }
.wv-chip[aria-pressed="true"], .wv-chip.is-on, .wv-chip[aria-current="true"] { background: var(--fg, var(--ink)); color: var(--ground, var(--paper)); }
.wv-chip.sale[aria-pressed="true"], .wv-chip.sale.is-on { background: var(--sale); color: var(--ink); }
.wv-chip.sale[aria-pressed="true"] small, .wv-chip.sale.is-on small { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .wv-chip:not([aria-pressed="true"]):not(.is-on):hover { background: var(--lime); color: var(--ink); }
}

.wv-field-label { display: block; margin-bottom: 6px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
.wv-input, .wv-select {
  width: 100%; min-height: 48px; padding: 10px 16px; border: var(--bw) solid var(--ink); border-radius: 999px; background: var(--paper-hi); color: var(--ink);
  font: inherit; font-weight: 500; -webkit-appearance: none; appearance: none;
}
.wv-input::placeholder { color: var(--muted); opacity: 1; }
.wv-input:focus-visible, .wv-select:focus-visible { outline-offset: 2px; }
.wv-select { padding-right: 44px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141412' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.wv-search { position: relative; }
.wv-search .wv-ico { position: absolute; left: 16px; top: 50%; margin-top: -10px; pointer-events: none; }
.wv-search .wv-input { padding-left: 46px; }

/* ---------- photo frame + product card ---------- */
.wv-photo { position: relative; display: block; aspect-ratio: 1 / 1; border: var(--bw) solid var(--ink); background: var(--concrete); overflow: hidden; }
.wv-photo img { width: 100%; height: 100%; object-fit: contain; }

.wv-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--paper-hi); color: var(--ink);
  border: var(--bw) solid var(--ink); box-shadow: 0 0 0 var(--ink);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.wv-card-ph { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--concrete); border-bottom: var(--bw) solid var(--ink); overflow: hidden; }
.wv-card-ph img { width: 100%; height: 100%; object-fit: contain; }
.wv-card-tags { position: absolute; left: 8px; top: 8px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; pointer-events: none; }
.wv-card-foot { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 14px; transition: background-color 180ms ease; }
.wv-card-brand { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.3em; line-height: 1.3; }
.wv-card-name { font-size: 0.9375rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.wv-card-name a { text-decoration: none; }
.wv-card-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }       /* whole card is the link */
.wv-card-chips { display: flex; flex-wrap: wrap; gap: 4px; min-height: 24px; }
.wv-card .wv-price { padding-top: 4px; }            /* starts at the same height in every card; spare room falls below */
/* keyboard focus lifts the card; a touch tap on the heart does not leave it stuck */
.wv-card:has(:focus-visible) { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--ink); }
.wv-card:has(:focus-visible) .wv-card-foot { background: var(--lime); }
.wv-card:has(:focus-visible) .wv-card-brand, .wv-card:has(:focus-visible) .wv-price s, .wv-card:has(:focus-visible) .wv-price .now i, .wv-card:has(:focus-visible) .wv-price .now b { color: #2f3a12; }
.wv-card:has(.wv-card-name a:active) { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.wv-card:has(.wv-card-name a:active) .wv-card-foot { background: var(--lime); }
@media (hover: hover) and (pointer: fine) {
  .wv-card:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--ink); }
  .wv-card:hover .wv-card-foot { background: var(--lime); }
  .wv-card:hover .wv-card-brand, .wv-card:hover .wv-price s, .wv-card:hover .wv-price .now i, .wv-card:hover .wv-price .now b { color: #2f3a12; }
  .wv-card:hover:has(.wv-card-name a:active) { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
}
@media (max-width: 719px) {                          /* two cards across a phone: narrow the same family so names fit */
  .wv-card-name { font-stretch: 84%; font-size: 0.9375rem; -webkit-line-clamp: 3; }
  .wv-card-brand { font-stretch: 86%; letter-spacing: 0.06em; }
  .wv-card-foot { padding: 10px 10px 12px; }
  .wv-card-chips .wv-tag { font-stretch: 88%; padding-inline: 7px; }
}
@media (min-width: 720px) {
  .wv-card-foot { padding: 14px 16px 16px; }
  .wv-card-name { font-size: 1.0625rem; }
  .wv-card-tags { left: 12px; top: 12px; }
}

.wv-heart {
  position: absolute; right: 8px; top: 8px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: var(--bw) solid var(--ink); border-radius: 50%; background: var(--paper-hi); color: var(--ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background-color 140ms ease, transform 140ms var(--ease-out);
}
.wv-heart::after { content: ""; position: absolute; inset: -4px; }                        /* 48px touch target */
.wv-heart.static { position: relative; right: auto; top: auto; }
.wv-heart[aria-pressed="true"] { background: var(--lime); }
.wv-heart:active { transform: scale(0.9); }
@media (hover: hover) and (pointer: fine) { .wv-heart:hover { background: var(--lime); } }
@media (min-width: 720px) { .wv-heart { right: 12px; top: 12px; } }

/* photo tile with caption (sections) */
.wv-tile { position: relative; display: flex; flex-direction: column; min-width: 0; border: var(--bw) solid var(--ink); background: var(--paper-hi); color: var(--ink); text-decoration: none; transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out); }
.wv-tile-ph { display: block; aspect-ratio: 1 / 1; background: var(--concrete); border-bottom: var(--bw) solid var(--ink); overflow: hidden; }
.wv-tile-ph img { width: 100%; height: 100%; object-fit: contain; }
.wv-tile-cap { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 10px 10px 10px 12px; transition: background-color 180ms ease; }
.wv-tile-cap b { font-stretch: 75%; font-weight: 800; font-size: clamp(1.0625rem, 1.7vw, 1.5rem); line-height: 1; letter-spacing: -0.01em; }
.wv-tile-cap small { grid-column: 1; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.wv-tile-cap .wv-arrow { grid-column: 2; grid-row: 1 / span 2; width: 34px; height: 34px; }
.wv-tile:active { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.wv-tile:active .wv-tile-cap, .wv-tile:focus-visible .wv-tile-cap { background: var(--lime); }
@media (hover: hover) and (pointer: fine) {
  .wv-tile:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--ink); }
  .wv-tile:hover .wv-tile-cap { background: var(--lime); }
  .wv-tile:hover .wv-tile-cap small { color: #2f3a12; }
}
@media (min-width: 720px) { .wv-tile-cap { padding: 14px 14px 14px 16px; } .wv-tile-cap .wv-arrow { width: 40px; height: 40px; } }

/* ---------- announcement bar ---------- */
.wv-bar {
  position: relative; z-index: 60; flex: none; height: var(--bar-h); display: flex; align-items: center; justify-content: center; overflow: hidden;
  padding: 0 var(--gutter); background: var(--lime); color: var(--ink); font-size: 0.875rem; font-weight: 600; line-height: 1.25; text-align: center;
}
.wv-bar.sale { background: var(--sale); }
.wv-bar-txt { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.wv-bar .s { display: none; }
.wv-bar a { font-weight: 800; white-space: nowrap; display: inline-block; padding: 11px 6px; margin: -11px -2px -11px 4px; }
@media (max-width: 599px) {                          /* one short line on phones, and the whole strip is the link */
  .wv-bar .l { display: none; } .wv-bar .s { display: inline; }
  .wv-bar a::after { content: ""; position: absolute; inset: 0; }
}
.wv-bar a:hover { text-decoration-thickness: 2.5px; }
.wv-bar b { font-weight: 800; font-variant-numeric: tabular-nums; }
.wv-bar-txt { transition: opacity 300ms ease; }
.wv-bar:not(.is-ready) .wv-bar-txt { opacity: 0; }

/* ---------- nav ---------- */
.wv-nav {
  position: sticky; top: 0; z-index: 70; height: var(--nav-h); display: flex; align-items: center; gap: 12px;
  padding-inline: var(--gutter); background: var(--ink); color: var(--paper);
}
.wv-nav-logo { flex: none; display: block; align-self: center; height: calc(100% - 8px); margin-left: -6px; aspect-ratio: 480 / 336; }
.wv-nav-logo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: lighten; }
.wv-foot-logo img {
  width: 100%; height: 100%; object-fit: contain; mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 80%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 80%, transparent 100%);
}
.wv-nav-links { display: none; align-items: center; gap: 4px; margin-left: clamp(8px, 2vw, 32px); }
.wv-nav-links a { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 0.9375rem; text-decoration: none; transition: background-color 140ms ease, color 140ms ease; }
.wv-nav-links a[aria-current="page"] { background: var(--paper); color: var(--ink); }
.wv-nav-dot { width: 8px; height: 8px; background: var(--sale); transform: rotate(45deg); flex: none; }
@media (hover: hover) and (pointer: fine) { .wv-nav-links a:not([aria-current="page"]):hover { background: #2b2a26; } }
.wv-nav-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.wv-nav-saved, .wv-nav-menu {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 16px 0 14px; border: var(--bw) solid var(--paper); border-radius: 999px;
  background: transparent; color: var(--paper); font-weight: 700; font-size: 0.9375rem; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms var(--ease-out);
}
.wv-nav-saved:active, .wv-nav-menu:active { transform: scale(0.96); }
.wv-nav-saved.has { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.wv-nav-n { min-width: 1.5em; padding: 2px 6px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 0.75rem; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; line-height: 1.3; }
.wv-nav-saved.has .wv-nav-n { background: var(--ink); color: var(--lime); }
.wv-nav-menu { padding: 0; width: 44px; }
@media (hover: hover) and (pointer: fine) {
  .wv-nav-saved:hover, .wv-nav-menu:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
  .wv-nav-saved.has:hover .wv-nav-n { background: var(--ink); color: var(--paper); }
}
@media (min-width: 720px) { .wv-nav-links { display: flex; } .wv-nav-menu { display: none; } }
@media (min-width: 720px) and (max-width: 899px) { .wv-nav-links { margin-left: 4px; gap: 0; } .wv-nav-links a { padding: 0 12px; } }
@media (max-width: 380px) { .wv-nav-saved > span:not(.wv-ico):not(.wv-nav-n) { display: none; } }

/* phone menu (inside a .wv-drawer) */
.wv-menu-links { display: flex; flex-direction: column; }
.wv-menu-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: var(--bw) solid var(--ink); font-stretch: 70%; font-weight: 800; font-size: 2.75rem; line-height: 1; letter-spacing: -0.02em; text-decoration: none; }
.wv-menu-links a em { font-style: normal; }
.wv-menu-links a[aria-current="page"] em { font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: 100%; }
.wv-menu-note { margin-top: 24px; color: var(--muted); font-size: 0.9375rem; }

/* ---------- marquee ---------- */
.wv-marquee { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); border-block: var(--bw) solid var(--ink); }
.wv-marquee.lime { background: var(--lime); color: var(--ink); }
.wv-marquee.sale { background: var(--sale); color: var(--ink); }
.wv-marquee-track { display: flex; width: max-content; animation: wv-marquee var(--mq-dur, 38s) linear infinite; will-change: transform; }
.wv-marquee-set { display: flex; align-items: center; flex: none; }
.wv-marquee-set > span { display: inline-flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); padding: 12px 0 12px clamp(18px, 2.4vw, 34px); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.wv-marquee-set > span::after { content: ""; width: 9px; height: 9px; background: var(--lime); transform: rotate(45deg); flex: none; }
.wv-marquee.lime .wv-marquee-set > span::after, .wv-marquee.sale .wv-marquee-set > span::after { background: var(--ink); }
.wv-marquee.big .wv-marquee-set > span { font-stretch: 125%; font-weight: 900; font-size: clamp(1.6rem, 3.6vw, 3rem); letter-spacing: -0.02em; padding-block: 14px; }
.wv-marquee.big .wv-marquee-set > span::after { width: 0.42em; height: 0.42em; }
@keyframes wv-marquee { to { transform: translate3d(-50%, 0, 0); } }
@media (hover: hover) and (pointer: fine) { .wv-marquee:hover .wv-marquee-track { animation-play-state: paused; } }
.wv-marquee.is-paused .wv-marquee-track, .wv-marquee.is-off .wv-marquee-track { animation-play-state: paused; }   /* tap to pause; rests off screen */
.wv-marquee-btn { position: absolute; z-index: 2; right: 8px; top: 50%; transform: translateY(-50%); min-height: 32px; padding: 4px 14px; border: var(--bw) solid var(--ink); border-radius: 999px; background: var(--paper-hi); color: var(--ink); font-weight: 700; font-size: 0.8125rem; cursor: pointer; opacity: 0; pointer-events: none; }
.wv-marquee-btn:focus-visible { opacity: 1; pointer-events: auto; }

/* ---------- round rotating badge ---------- */
.wv-badge { position: relative; display: grid; place-items: center; width: max(112px, var(--badge, 132px)); height: max(112px, var(--badge, 132px)); color: var(--ink); text-decoration: none; flex: none; }
.wv-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wv-badge-shape { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.5; filter: drop-shadow(3px 4px 0 var(--ink)); }
.wv-badge-ring { animation: wv-spin 26s linear infinite; transform-origin: 50% 50%; }
.wv-badge-ring text { font-family: var(--sans); font-stretch: 100%; font-weight: 800; font-size: 9.6px; letter-spacing: 0.16em; text-transform: uppercase; fill: var(--ink); }
.wv-badge-mid { position: relative; display: grid; justify-items: center; gap: 1px; text-align: center; line-height: 1; }
.wv-badge-mid b { font-stretch: 70%; font-weight: 800; font-size: max(28px, calc(var(--badge, 132px) * 0.25)); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.wv-badge-mid small { font-size: max(10px, calc(var(--badge, 132px) * 0.07)); font-stretch: 76%; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; max-width: 6.4em; line-height: 1.05; }
.wv-badge.lime .wv-badge-shape { fill: var(--lime); }
.wv-badge.sale .wv-badge-shape { fill: var(--sale); }
@keyframes wv-spin { to { transform: rotate(360deg); } }

/* ---------- torn-paper seam ---------- */
.wv-tear {
  --tear: var(--paper); --tear-h: clamp(16px, 2.6vw, 34px);
  --tear-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1200V22L1185 21.6L1137 16.1L1134 13.3L1121 18.9L1118 16.8L1092 22.6L1089 17.5L1041 26.9L1007 20.5L989 26.7L986 33.3L983 31.6L949 30.5L942 28.9L908 19.7L890 19.0L881 11.9L876 16.2L871 18.5L862 18.8L828 12.4L794 16.3L785 14.7L767 7.0L719 9.9L712 9.4L705 11.4L702 15.4L654 12.0L641 14.9L636 18.7L631 13.8L622 17.1L574 8.5L561 7.3L556 12.1L553 16.4L546 11.0L537 12.9L503 22.7L498 24.3L450 12.6L445 18.3L436 23.2L418 19.6L405 23.6L396 19.7L391 16.5L382 12.1L379 13.4L374 8.4L326 8.4L323 7L305 11.9L257 20.9L254 22.2L247 28.8L199 34.1L186 28.9L177 27.6L170 28.4L144 33.5L118 35.6L113 32.2L87 33.1L74 32.6L65 27.5L47 26.4L40 32.0L27 29.2L22 26.0L13 26.4L0 22Z'/%3E%3C/svg%3E");
  position: absolute; left: 0; right: 0; top: -1px; height: var(--tear-h); z-index: 3; pointer-events: none;
}
.wv-tear::before, .wv-tear::after {
  content: ""; position: absolute; inset: 0; background: var(--tear);
  -webkit-mask: var(--tear-shape) left top / 1200px 100% repeat-x; mask: var(--tear-shape) left top / 1200px 100% repeat-x;
}
.wv-tear::before { background: #fff; opacity: 0.5; transform: translate(-9px, 5px); }   /* the pale fibre edge under a real tear */
.wv-tear.bottom { top: auto; bottom: -1px; transform: scaleY(-1); }

/* ---------- countdown ---------- */
.wv-count { display: inline-flex; align-items: stretch; gap: 0; color: var(--fg); font-variant-numeric: tabular-nums; }
.wv-count-u { display: grid; justify-items: center; gap: 6px; padding-inline: clamp(10px, 2vw, 26px); border-left: var(--bw) solid var(--line); min-width: 2.6ch; }
.wv-count-u:first-of-type { border-left: 0; padding-left: 0; }
.wv-count-hold { font-stretch: 70%; font-weight: 800; font-size: clamp(2.6rem, 8vw, 6rem); line-height: 0.9; letter-spacing: -0.02em; }
.wv-count.sm .wv-count-hold { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.wv-count-u:last-child { padding-right: 0; }
.wv-count-u b { display: flex; white-space: nowrap; font-stretch: 70%; font-weight: 800; font-size: clamp(2.6rem, 8vw, 6rem); line-height: 0.9; letter-spacing: -0.02em; }
.wv-count-u > span { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg2); }
.wv-count.sm .wv-count-u b { display: flex; white-space: nowrap; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.wv-count .rc-digit { -webkit-mask-image: none; mask-image: none; height: 0.9em; }
.wv-count .rc-strip > span, .wv-count .rc-sym { height: 0.9em; line-height: 0.9em; }
.wv-count .rc-strip { transition-duration: 520ms; }

/* ---------- stats + steps ---------- */
.wv-stats { display: grid; gap: 0; }
.wv-stats[hidden] { display: none; }
.wv-stats > div { display: grid; gap: 4px; padding: 16px 0; border-top: var(--bw) solid var(--line); }
.wv-stats > div:last-child { border-bottom: var(--bw) solid var(--line); }
.wv-stats b { font-stretch: 70%; font-weight: 800; font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 0.9; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.wv-stats > div > span { font-size: 0.9375rem; font-weight: 500; color: var(--fg2); max-width: 22em; }
.wv-stats.row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); column-gap: var(--gap); }
.wv-stats.row > div:last-child { border-bottom: 0; }

.wv-steps { display: grid; gap: 0; counter-reset: step; }
.wv-steps > li { counter-increment: step; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; row-gap: 6px; padding: 22px 0; border-top: var(--bw) solid var(--line); }
.wv-steps > li::before { content: counter(step); grid-row: 1 / span 2; font-stretch: 70%; font-weight: 800; font-size: clamp(3.4rem, 6vw, 5rem); line-height: 0.82; letter-spacing: -0.03em; min-width: 0.7em; font-variant-numeric: tabular-nums; }
.wv-steps h3 { font-weight: 700; font-size: 1.25rem; line-height: 1.15; }
.wv-steps p { color: var(--fg2); max-width: 32em; }
@media (min-width: 860px) {
  .wv-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
  .wv-steps > li { grid-template-columns: 1fr; padding: 22px 0 0; align-content: start; }
  .wv-steps > li::before { grid-row: auto; margin-bottom: 14px; }
}

/* ---------- drawer / sheet ---------- */
.wv-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(20, 20, 18, 0.55); opacity: 0; visibility: hidden; transition: opacity 260ms ease, visibility 0s linear 260ms; }
.wv-scrim, .wv-drawer { pointer-events: none; }
.wv-scrim.is-open, .wv-drawer.is-open { pointer-events: auto; }
.wv-scrim.is-open { opacity: 1; visibility: visible; transition: opacity 260ms ease, visibility 0s; }
.wv-drawer {
  position: fixed; z-index: 100; right: 0; top: 0; bottom: 0; width: min(440px, 100vw); display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink); border-left: var(--bw) solid var(--ink);
  transform: translate3d(100%, 0, 0); visibility: hidden; transition: transform 260ms var(--ease-drawer), visibility 0s linear 260ms;
}
.wv-drawer.is-open { transform: none; visibility: visible; transition: transform 260ms var(--ease-drawer), visibility 0s; }
.wv-drawer-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: var(--bw) solid var(--ink); }
.wv-drawer-head h2 { font-stretch: 70%; font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -0.015em; }
.wv-drawer-head h2 small { font: 700 0.875rem/1 var(--sans); font-stretch: 100%; letter-spacing: 0; color: var(--muted); margin-left: 8px; font-variant-numeric: tabular-nums; }
.wv-drawer-x { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: var(--bw) solid var(--ink); border-radius: 50%; background: transparent; cursor: pointer; transition: background-color 140ms ease, transform 140ms var(--ease-out); }
.wv-drawer-x:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .wv-drawer-x:hover { background: var(--lime); } }
.wv-drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 24px; -webkit-overflow-scrolling: touch; }
.wv-drawer-foot { flex: none; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: var(--bw) solid var(--ink); display: grid; gap: 8px; }
@media (max-width: 599px) {
  .wv-drawer.sheet { top: auto; left: 0; width: 100%; max-height: 88dvh; border-left: 0; border-top: var(--bw) solid var(--ink); transform: translate3d(0, 100%, 0); }
  .wv-drawer.sheet.is-open { transform: none; }
  .wv-drawer.sheet .wv-drawer-head::before { content: ""; position: absolute; left: 50%; top: 6px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--concrete); }
  .wv-drawer.sheet .wv-drawer-head { position: relative; padding-top: 20px; }
}
/* saved list rows */
.wv-saved-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: var(--bw) solid var(--ink); }
.wv-saved-row > a:first-child { display: block; border: var(--bw) solid var(--ink); aspect-ratio: 1; background: var(--concrete); }
.wv-saved-row img { width: 100%; height: 100%; object-fit: contain; }
.wv-saved-row h3 { font-size: 0.9375rem; font-weight: 700; line-height: 1.2; }
.wv-saved-row h3 a { text-decoration: none; }
.wv-saved-row h3 a:hover { text-decoration: underline; }
.wv-saved-info { display: grid; gap: 6px; align-content: start; }
.wv-saved-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 0.875rem; font-weight: 700; }
.wv-saved-acts a, .wv-saved-acts button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; cursor: pointer; font-weight: 700; }
.wv-saved-acts button { color: var(--muted); font-weight: 600; }
.wv-saved-acts a:hover { background: var(--lime); }
.wv-saved-acts button:hover { color: var(--ink); }
body.wv-lock { overflow: hidden; }

/* ---------- skeletons, empty state, toast ---------- */
.wv-skel { border: var(--bw) solid #d9d4c9; background: var(--paper-hi); }
.wv-skel::before { content: ""; display: block; aspect-ratio: 1 / 1; background: #e3ded3; animation: wv-pulse 1.4s ease-in-out infinite alternate; }
.wv-skel::after { content: ""; display: block; height: 104px; margin: 12px; background: linear-gradient(#e3ded3 0 0) 0 0 / 40% 10px no-repeat, linear-gradient(#e3ded3 0 0) 0 22px / 92% 14px no-repeat, linear-gradient(#e3ded3 0 0) 0 44px / 64% 14px no-repeat, linear-gradient(#e3ded3 0 0) 0 82px / 30% 18px no-repeat; animation: wv-pulse 1.4s ease-in-out infinite alternate; }
.wv-skel-line { display: block; height: 1em; background: #e3ded3; animation: wv-pulse 1.4s ease-in-out infinite alternate; }
.wv-skel-box { display: block; aspect-ratio: 1; background: #e3ded3; animation: wv-pulse 1.4s ease-in-out infinite alternate; }
@keyframes wv-pulse { from { opacity: 1; } to { opacity: 0.45; } }

.wv-empty { display: grid; justify-items: start; gap: 14px; padding: clamp(28px, 5vw, 56px); border: var(--bw) dashed var(--fg, var(--ink)); max-width: 720px; }
.wv-empty h2, .wv-empty h3 { font-stretch: 70%; font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 0.95; letter-spacing: -0.02em; }
.wv-empty p { color: var(--fg2); max-width: 36em; }
.wv-empty.center { margin-inline: auto; justify-items: center; text-align: center; }
.wv-grid > .wv-empty { grid-column: 1 / -1; }

.wv-toasts { position: fixed; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 120; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding-inline: 16px; }
.wv-toast {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 20px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 0.9375rem; box-shadow: 0 10px 28px -10px rgba(20, 20, 18, 0.6), 0 2px 6px rgba(20, 20, 18, 0.25);
  opacity: 0; transform: translate3d(0, 14px, 0) scale(0.97); transition: opacity 200ms ease, transform 240ms var(--ease-out); pointer-events: auto;
}
.wv-toast.is-in { opacity: 1; transform: none; }
.wv-toast .wv-ico { color: var(--lime); }
.wv-toast a { color: var(--lime); font-weight: 700; }
.wv-toast button { background: none; border: 0; padding: 0; color: var(--lime); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ---------- footer ---------- */
.wv-foot { position: relative; flex: none; background: var(--ink); color: var(--paper); --fg: var(--paper); --fg2: var(--concrete); --line: #3a3833; --ground: var(--ink); isolation: isolate; }
.wv-foot-in { display: grid; gap: clamp(32px, 5vw, 64px); padding-block: clamp(56px, 8vw, 104px) 28px; }
.wv-foot-top { display: grid; gap: 28px; align-items: center; }
.wv-foot-logo { display: block; width: min(560px, 92%); aspect-ratio: 755 / 530; margin: -4% 0 -4% -5%; }
.wv-foot-line { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1; letter-spacing: -0.01em; color: var(--lime); }
.wv-foot-lore { margin-top: 14px; color: var(--concrete); max-width: 30em; }
.wv-foot-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.wv-foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--gap); padding-top: 28px; border-top: var(--bw) solid var(--line); }
.wv-foot-cols h3 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--concrete); margin-bottom: 8px; }
.wv-foot-cols a, .wv-foot-savedlink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.wv-foot-savedlink { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.wv-foot-savedlink:hover { color: var(--lime); text-decoration: underline; }
.wv-foot-cols a:hover { color: var(--lime); text-decoration: underline; }
.wv-foot-cols li { break-inside: avoid; }
.wv-foot-cols li small { color: var(--concrete); font-weight: 500; font-size: 0.75rem; font-variant-numeric: tabular-nums; margin-left: 5px; align-self: flex-start; margin-top: 9px; text-decoration: none; }
/* phones: a long section name wraps and its count stays right after the last word; wide screens: one line each */
.wv-foot-cols .two a { display: block; min-height: 0; padding-block: 11px; line-height: 1.35; }
.wv-foot-cols .two a small { vertical-align: 0.5em; margin-top: 0; }
.wv-foot-cols li[hidden] { display: none; }
.wv-foot-cols > :first-child { grid-column: 1 / -1; }
.wv-foot-cols .two { columns: 2; column-gap: var(--gap); }
.wv-foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: var(--bw) solid var(--line); font-size: 0.8125rem; color: var(--concrete); }
.wv-foot-base a:hover { color: var(--lime); }
@media (min-width: 860px) {
  .wv-foot-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .wv-foot-cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .wv-foot-cols:has([data-foot-closets-col][hidden]) { grid-template-columns: 2fr 1fr 1fr; }
  .wv-foot-cols > :first-child { grid-column: auto; }
  .wv-foot-cols .two a { display: flex; max-width: 100%; white-space: nowrap; padding-block: 0; min-height: 44px; line-height: 1.5; }
  .wv-foot-cols .two a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .wv-foot-cols .two a small { flex: none; vertical-align: baseline; margin-top: 9px; }
}

/* ---------- reveal on scroll ---------- */
.js [data-reveal] [data-r] {
  transition: opacity 560ms var(--ease-out), transform 720ms var(--ease-out), clip-path 820ms var(--ease-out);
  transition-delay: calc(var(--r-i, 0) * 75ms);
}
.js [data-reveal]:not(.is-in) [data-r] { opacity: 0; transform: translate3d(0, 22px, 0); }
.js [data-reveal]:not(.is-in) [data-r="fade"] { transform: none; }
.js [data-reveal]:not(.is-in) [data-r="clip"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); }
.js [data-reveal] [data-r="clip"] { clip-path: inset(0 0 0 0); }
.js [data-reveal].is-done [data-r] { transition-delay: 0s; clip-path: none; }
/* hero headline: Eric's blurtext, tuned to rise line by line */
.wv-title.bt .bt-piece { transition-duration: 380ms, 520ms, 520ms; }

/* ---------- kit overrides (Eric's UI kit pieces, restyled to the loft shop) ---------- */
.ps-card { border-radius: 0; border: 8px solid var(--paper-hi); outline: var(--bw) solid var(--ink); background: var(--concrete); box-shadow: 0 16px 30px -14px rgba(20, 20, 18, 0.55), 0 3px 8px -3px rgba(20, 20, 18, 0.3); }
.ps-card img { object-fit: contain; background: var(--concrete); }
.ps:focus-visible { box-shadow: none; }
.ps:focus-visible .ps-card[data-top] { outline: 3px solid var(--ink); outline-offset: 4px; }
.tc-shadow { background: rgba(20, 20, 18, 0.6); }
.tc-caption { font: 700 13px/18px var(--sans); background: var(--lime); color: var(--ink); border-radius: 999px; padding: 6px 12px; box-shadow: 0 0 0 1.5px var(--ink); }

/* ---------- reduced motion: keep short fades, drop movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wv-marquee-track, .wv-badge-ring, .wv-skel::before, .wv-skel::after, .wv-skel-line, .wv-skel-box { animation: none; }
  .wv-marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .wv-marquee-set + .wv-marquee-set { display: none; }
  .wv-card, .wv-tile, .wv-btn, .wv-chip, .wv-heart { transition: background-color 120ms ease; }
  .wv-card:hover, .wv-card:has(:focus-visible), .wv-tile:hover, .wv-tile:active, .wv-btn:active, .wv-chip:active, .wv-heart:active { transform: none; }
  .wv-drawer { transition: opacity 160ms ease, visibility 0s linear 160ms; transform: none !important; opacity: 0; }
  .wv-drawer.is-open { opacity: 1; transition: opacity 160ms ease, visibility 0s; }
  .wv-toast { transform: none; }
  .js [data-reveal] [data-r] { transition: opacity 240ms ease; transition-delay: 0s; }
  .js [data-reveal]:not(.is-in) [data-r] { transform: none; clip-path: none; opacity: 0; }
  .wv-arrow::before { transition: none; }
}
@media print { .wv-bar, .wv-nav, .wv-foot, .wv-drawer, .wv-scrim, .wv-toasts { display: none !important; } }

/* ---- type tuning, measured against the Texart headline (2026-11-21) ---- */
/* headline: lines almost touching, tight tracking; the serif phrase is bold, the same size as the sans, on the same line */
.wv-title { font-stretch: 75%; font-weight: 800; letter-spacing: -0.032em; word-spacing: 0.09em; line-height: 0.93; }
.wv-title em, .wv-accent, .wv-shout em, .wv-menu-links a[aria-current="page"] em { font-weight: 800; font-size: 1.02em; letter-spacing: -0.048em; word-spacing: 0.12em; line-height: inherit; padding-right: 0.03em; margin-left: 0.05em; }
.wv-title br + em, .wv-title em:first-child { margin-left: 0; }
.wv-foot-line, .ab-line, .ab-story-pull { font-weight: 700; letter-spacing: -0.035em; }
/* small label above a headline: tiny mono caps, wide tracking, close to the headline */
.wv-meta { font-family: "DM Mono", ui-monospace, Menlo, monospace; font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.1em; }
@media (max-width: 719px) { .wv-meta { font-size: 0.6875rem; letter-spacing: 0.09em; } }
/* supporting sentence: small, calm, short lines */
.wv-lede { font-size: clamp(0.975rem, 1.12vw, 1.0625rem); line-height: 1.42; letter-spacing: -0.005em; max-width: 30em; }
/* buttons: lighter weight, a little smaller */
.wv-btn { font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.005em; min-height: 48px; }

/* ---------- bag + card checkout (cart.js, 2026-11-25) ---------- */
.wv-ico.bag { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M5 8h14l-1 12H6L5 8z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E"); }
.wv-bag-sum { margin: 18px 0 16px; padding-top: 4px; display: grid; gap: 10px; }
.wv-bag-sum > div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.wv-bag-sum dt { font-size: 0.9375rem; }
.wv-bag-sum dt small { display: block; font-size: 0.75rem; opacity: 0.66; margin-top: 2px; }
.wv-bag-sum dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 700; }
.wv-bag-sum .tot { padding-top: 10px; border-top: 1px dashed currentColor; }
.wv-bag-sum .tot dt, .wv-bag-sum .tot dd { font-size: 1.125rem; font-weight: 800; }
.wv-bag-fine { margin: 12px 0 0; font-size: 0.8125rem; opacity: 0.75; line-height: 1.45; }
.wv-bag-fine a { text-decoration: underline; text-underline-offset: 2px; }
.wv-btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
@media (max-width: 420px) { .wv-nav-bag > span:not(.wv-ico):not(.wv-nav-n) { display: none; } }
.it-card-buy { display: grid; gap: 10px; }
.it-held { margin: 0; padding: 14px 16px; border: 1px dashed currentColor; border-radius: 12px; font-size: 0.9375rem; }
