/* ============================================================
   MAUR DEPT — BLACKTOP theme
   Token system per design/design-system.md §1 (spec is canon).
   Night Court (dark) is the default; Chalk Court (light) via
   [data-theme="light"]. No framework, no build step.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141414;            /* asphalt */
  --bg-raised: #1C1C1C;
  --bg-overlay: rgba(20, 20, 20, .72);
  --ink: #F2EFE9;           /* chalk */
  --ink-dim: #8E8B84;
  --line: #2A2A2C;
  --accent: #FF6A2B;        /* court paint */
  --accent-ink: #140C08;
  --accent-text: #FF6A2B;   /* splits from --accent in light mode */
  --well: #211F1C;          /* chalk-tinted image well behind product shots (F2) */
  --bg-flip: #F2EFE9;       /* the opposite court (story-tease inversion) */
  --ink-flip: #141414;
  --logo-invert: 1;         /* logo.png is asphalt-on-transparent */
  --shadow-ambient: none;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F2EFE9;
  --bg-raised: #FAF8F3;
  --bg-overlay: rgba(20, 20, 20, .38);
  --ink: #141414;
  --ink-dim: #6E6A62;
  --line: #DDD8CE;
  --accent: #FF6A2B;
  --accent-ink: #140C08;
  --accent-text: #B8400C;   /* orange letterforms on chalk: 4.8:1 */
  --well: #F7F5F0;          /* near-invisible on chalk; eases white-box shots */
  --bg-flip: #141414;
  --ink-flip: #F2EFE9;
  --logo-invert: 0;
  --shadow-ambient: 0 2px 12px rgba(20, 20, 20, .08);
}
:root {
  /* spacing (base-4) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  /* lines + radius */
  --border-hard: 2px solid var(--ink);
  --border-hair: 1px solid var(--line);
  --radius: 2px;
  /* type */
  --font-ui: "Archivo", system-ui, sans-serif;
  --font-marker: "Permanent Marker", cursive;
  /* small type floor: nothing that carries information renders under 12px
     (the marquee keeps its own size) */
  --fs-micro: .75rem;   /* 12px: size pills, badges, captions, meta rows */
  --fs-label: .8rem;    /* 12.8px: labels, buttons, nav */
  /* motion */
  --ease-out: cubic-bezier(.23, 1, .32, 1);     /* enter / exit / hover */
  --ease-inout: cubic-bezier(.65, 0, .35, 1);   /* on-screen moves, pulses */
  --ease-exit: cubic-bezier(.7, 0, .3, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --ease-ball: cubic-bezier(.33, 0, .67, 1);    /* loader ball drop (spec 4.1) */
  --dur-press: .12s;
  --dur-ui: .2s;
  --dur-drawer: .28s;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html {
  scroll-behavior: smooth;
  /* in-page jumps and focus scrolling clear the pinned marquee + header */
  scroll-padding-top: calc(var(--chrome-h, 96px) + var(--s2));
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
/* F10: the hidden attribute always wins — component display values
   (flex/grid) must never resurrect a [hidden] overlay for keyboard/SR users */
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
main { display: block; }

html.theming, html.theming body,
html.theming *:not(#loader):not(#loader *) {
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out);
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 120;
  background: var(--ink); color: var(--bg); padding: 16px;
  font: 600 var(--fs-label)/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* layout shells */
.wrap, .wrap-n {
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: calc(1200px + 32px); }
.wrap-n { max-width: calc(1020px + 32px); }
.prose { max-width: 72ch; }
.section { padding-block: var(--s8); }
.section--slow { padding-block: var(--s9); }
@media (min-width: 768px) {
  .section { padding-block: var(--s9); }
  .section--slow { padding-block: var(--s10); }
}

/* ---------- type scale ---------- */
.t-display-xl, .t-display-l, .t-display-m {
  font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; margin: 0;
}
.t-display-xl { font-size: clamp(2.6rem, 7vw, 4.5rem); line-height: .93; }
.t-display-l { font-size: clamp(2rem, 5vw, 3.25rem); line-height: .98; }
.t-display-m { font-size: clamp(1.5rem, 3.5vw, 2.25rem); line-height: 1.02; letter-spacing: 0; }
.t-title { font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.2; }
.t-label { font-weight: 600; font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; }
.t-label-s { font-weight: 600; font-size: var(--fs-micro); letter-spacing: .14em; text-transform: uppercase; }
.t-body { font-weight: 400; font-size: 1rem; line-height: 1.55; }
.t-body-s { font-weight: 400; font-size: .875rem; line-height: 1.5; }
.t-price { font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; }
.dim { color: var(--ink-dim); }

/* stroke type — hero + drops only */
.stroke {
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
  font-style: normal;
}
@media (max-width: 560px) { .stroke { -webkit-text-stroke-width: 1.5px; } }

/* the scrawl */
.scrawl {
  font-family: var(--font-marker);
  font-size: clamp(1rem, 2.6vw, 1.3rem);
  color: var(--accent-text);
  display: inline-block;
  transform: rotate(-2deg);
  letter-spacing: 0; text-transform: none; font-weight: 400;
}
.scrawl-big {
  font-family: var(--font-marker);
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  color: var(--accent); /* ≥32px rendered — full court paint in both themes */
  display: inline-block;
  transform: rotate(-3deg);
}

/* ---------- 2.1 buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 var(--fs-label)/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase;
  padding: 13px 22px; min-height: 44px;
  border-radius: var(--radius); border: none; cursor: pointer;
  text-decoration: none; text-align: center;
  transition: opacity .15s var(--ease-out), transform .15s var(--ease-out), background-color .15s var(--ease-out), color .15s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .btn--primary:hover { opacity: .88; } }
.btn--primary:active { opacity: .8; }
.btn--chalk { background: var(--ink); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .btn--chalk:hover { opacity: .85; } }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: var(--border-hard); padding: 11px 20px;
}
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); } }
.btn--ghost:active { background: var(--ink); color: var(--bg); }
.btn--compact { padding: 10px 16px; min-height: 40px; width: 100%; font-size: var(--fs-micro); }
.btn--ghost.btn--compact { padding: 8px 14px; }
.btn[disabled], .btn.is-disabled {
  background: var(--line); color: var(--ink-dim); border-color: var(--line);
  pointer-events: none;
}

/* shake — "PICK A SIZE" guidance */
@keyframes shakeX { 0%,100% { translate: 0 0; } 25% { translate: -2px 0; } 75% { translate: 2px 0; } }
.shake { animation: shakeX .12s linear 2; }

/* ---------- badges + chips ---------- */
.badge {
  display: inline-block; border-radius: var(--radius);
  font: 600 var(--fs-micro)/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 8px;
}
.badge--ghost { border: 1px solid var(--ink); color: var(--ink); background: var(--bg); }
.badge--chalk { background: var(--ink); color: var(--bg); }
.badge--orange { background: var(--accent); color: var(--accent-ink); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center;
  border: var(--border-hard); border-radius: var(--radius);
  background: transparent; color: var(--ink); cursor: pointer;
  font: 600 var(--fs-micro)/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 14px; min-height: 36px; text-decoration: none;
  transition: background-color .15s var(--ease-out), color .15s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .chip:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); } }
.chip.is-on { background: var(--ink); color: var(--bg); }

/* ---------- size pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  position: relative;
  min-width: 32px; min-height: 32px; padding: 4px 7px;
  display: inline-grid; place-items: center;
  background: transparent; color: var(--ink); cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--ink) 80%, transparent);
  border-radius: var(--radius);
  font: 600 var(--fs-micro)/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .1s linear, color .1s linear, border-color .1s linear;
}
/* hit area 38px: half the 6px gap on each side, so neighbours touch but
   never overlap */
.pill::before { content: ""; position: absolute; inset: -3px; }
@media (hover: hover) and (pointer: fine) { .pill:hover { border-color: var(--ink); } }
.pill.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* sold out: still a live button (restock alert), so the label keeps 4.5:1 —
   --ink-dim text (5.4:1 night, 4.6:1 day), dim border, strike line */
.pill.is-out { color: var(--ink-dim); border-color: var(--ink-dim); border-style: dashed; }
.pill.is-out::after {
  content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 1px;
  background: var(--ink-dim); transform: rotate(-18deg);
}
.pill.is-out.is-on { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.pill.is-out.is-on::after { background: var(--ink); }
.pill--lg {
  min-width: 44px; min-height: 44px; padding: 6px 12px;
  font-size: var(--fs-label); letter-spacing: .12em;
}

/* ---------- 2.12 forms ---------- */
.field { display: block; margin-bottom: var(--s4); }
.field > span { display: block; margin-bottom: 6px; font: 600 var(--fs-label)/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; }
.pdp-sub .nw { white-space: nowrap; } /* ship line + free-shipping line break at the dot */
.field abbr.req { text-decoration: none; border: 0; color: var(--ink-dim); } /* required mark (wholesale form) */
.input, .f-input, select.f-input, textarea.f-input {
  width: 100%; height: 48px; padding: 0 var(--s4);
  background: var(--bg-raised); color: var(--ink);
  border: var(--border-hard); border-radius: var(--radius);
  font: 400 1rem/1.4 var(--font-ui);
}
textarea.f-input { height: auto; min-height: 120px; padding: var(--s3) var(--s4); resize: vertical; }
.f-input::placeholder { color: var(--ink-dim); }
.f-input:focus { border-color: var(--accent); outline: none; }
.f-err { display: block; margin-top: 6px; font-size: .875rem; }
.f-err::before { content: "↳ "; }

/* inline capture (card notify, PDP back-in-stock, footer list) */
.capture-inline { display: flex; gap: 8px; }
.capture-inline .f-input { flex: 1; min-width: 0; }
.capture-inline .btn { width: 48px; min-width: 48px; height: 48px; padding: 0; font-size: 1rem; }
.capture-ctx { display: block; margin-bottom: 8px; font: 600 var(--fs-micro)/1.4 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- 2.10 marquee ---------- */
/* Pinned with the header so the top of the page stays steady instead of
   moving: an unpinned marquee would scroll away and the header ride up
   32px before sticking. Sticky keeps its space in flow, so
   pinning adds zero layout shift. The text loop inside is unchanged. */
.marquee {
  height: 32px; overflow: hidden;
  position: sticky; top: 0; z-index: 41;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center;
}
:root[data-theme="light"] .marquee { background: #141414; color: #F2EFE9; }
.mq-track { display: flex; white-space: nowrap; animation: mqScroll var(--mq-dur, 22s) linear infinite; }
.marquee:focus-within .mq-track, .marquee.is-paused .mq-track { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) { .marquee:hover .mq-track { animation-play-state: paused; } }
.mq-seg { font: 600 .66rem/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; padding-right: 48px; }
@keyframes mqScroll { to { transform: translateX(-50%); } }
/* pause / play for the moving strip (WCAG 2.2.2). Sits on the strip's own
   colour at the right edge; the name stays fixed, aria-pressed carries state */
.mq-pause {
  position: absolute; right: 0; top: 0; bottom: 0; z-index: 1;
  width: 44px; display: grid; place-items: center; padding: 0;
  background: inherit; color: inherit; border: none; cursor: pointer;
  border-left: 1px solid color-mix(in srgb, currentColor 35%, transparent);
}
.mq-pause svg { display: block; }
.mq-pause .ic-play { display: none; }
.mq-pause[aria-pressed="true"] .ic-play { display: block; }
.mq-pause[aria-pressed="true"] .ic-pause { display: none; }
.mq-pause:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }

/* ---------- 2.2 header ---------- */
/* Steady: pinned right under the 32px marquee, always visible — no
   hide-on-scroll, no shrink, no transition on scroll. */
.site-head {
  position: sticky; top: var(--mq-h, 32px); z-index: 40;
  /* fully opaque: at 96% bright content ghosted through the pinned bar
     (worst in the day theme); no blur needed once it's solid */
  background: var(--bg);
  border-bottom: var(--border-hard);
}
.head-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4); padding-block: 10px;
}
.head-logo { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; }
.head-logo img, .logo-img { width: 34px; filter: invert(var(--logo-invert)); }
.head-nav { display: none; gap: 20px; align-items: center; }
.head-nav a, .head-search, .bag-btn {
  font: 600 var(--fs-label)/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; background: none; border: none; cursor: pointer; padding: 6px 2px;
}
.head-nav a, .head-search { display: inline-flex; align-items: center; min-height: 44px; }
.bag-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s2); margin-right: calc(-1 * var(--s2)); }
@media (hover: hover) and (pointer: fine) { .head-nav a:hover, .head-search:hover { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; } }
.head-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.head-right { display: flex; align-items: center; gap: var(--s4); }
.bag-btn .flash { color: var(--accent-text); }
@keyframes bagPulse { 0% { scale: 1; } 50% { scale: 1.15; } 100% { scale: 1; } }
.bag-btn.pulse { animation: bagPulse .3s var(--ease-inout); }

.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 7px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: none; cursor: pointer;
}
.burger i { display: block; height: 2px; width: 100%; background: var(--ink); transition: transform .2s var(--ease-out); }
.burger[aria-expanded="true"] i:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-4.5px) rotate(-45deg); }
/* F8: NIGHT/DAY toggle lives in the menu only at mobile (spec §2.2/§2.9);
   .toggle.head-toggle outweighs the later .toggle display rule */
.toggle.head-toggle { display: none; }
@media (min-width: 768px) {
  .head-nav { display: flex; }
  .burger { display: none; }
  .toggle.head-toggle { display: inline-flex; }
}

/* mobile menu takeover */
#menu {
  position: fixed; inset: 0; z-index: 60; background: var(--bg);
  transform: translateX(-102%); transition: transform var(--dur-drawer) var(--ease-drawer);
  display: flex; flex-direction: column; padding: var(--s4);
  padding-top: max(var(--s4), env(safe-area-inset-top, 0px));
  overflow-y: auto;
}
#menu.open { transform: translateX(0); }
.menu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s6); }
.menu-close { width: 44px; height: 44px; background: none; border: none; color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a {
  font-weight: 900; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(2rem, 9vw, 3.25rem); line-height: .98;
  color: var(--ink); text-decoration: none; padding: var(--s4) 0;
  border-bottom: var(--border-hair);
}
.menu-nav a:first-child { border-top: var(--border-hair); }
/* the menu's SEARCH entry wears the same display-nav clothes as the links */
.menu-search {
  font-weight: 900; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(2rem, 9vw, 3.25rem); line-height: .98;
  font-family: var(--font-ui); color: var(--ink); padding: var(--s4) 0;
  background: none; border: none; border-bottom: var(--border-hair);
  text-align: left; cursor: pointer;
}
.menu-foot { margin-top: auto; padding-top: var(--s6); }
.menu-lights { display: flex; align-items: center; justify-content: space-between; padding: var(--s4) 0; border-top: var(--border-hair); }
.menu-meta { display: flex; flex-wrap: wrap; gap: var(--s4); padding-top: var(--s4); color: var(--ink-dim); font: 600 var(--fs-micro)/1.6 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; }
.menu-meta a { color: inherit; text-decoration: none; }
.menu-scrawl { font-family: var(--font-marker); font-size: .95rem; color: var(--accent-text); transform: rotate(-2deg); display: inline-block; margin-left: 10px; vertical-align: middle; }

/* ---------- 2.9 theme toggle ---------- */
.toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer; color: var(--ink); padding: 4px;
}
.toggle .tg-lab { font: 600 var(--fs-micro)/1 var(--font-ui); letter-spacing: .14em; color: var(--ink-dim); }
.toggle .tg-lab.on { color: var(--ink); }
.tg-track {
  position: relative; width: 56px; height: 28px;
  border: var(--border-hard); border-radius: var(--radius); display: inline-block;
}
.tg-knob {
  position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
  background: var(--ink); border-radius: var(--radius);
  transition: left .15s var(--ease-out);
}
:root[data-theme="light"] .tg-knob { left: calc(100% - 22px); }
@media (hover: hover) and (pointer: fine) { .toggle:hover .tg-knob { translate: 2px 0; } }
@media (hover: hover) and (pointer: fine) { :root[data-theme="light"] .toggle:hover .tg-knob { translate: -2px 0; } }

/* floodlight sweep */
#sweep {
  position: fixed; left: 0; right: 0; top: -2px; height: 2px; z-index: 90;
  background: var(--ink); pointer-events: none; display: none;
}
#sweep.go { display: block; animation: sweepDown .3s linear both; }
@keyframes sweepDown { from { top: -2px; } to { top: 100vh; } }

/* ---------- 2.3 product card ---------- */
.grid-products {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--s5) var(--s3); /* cards stretch to the row height so rows line up */
}
@media (min-width: 768px) { .grid-products { gap: var(--s6) var(--s4); } }
@media (min-width: 1024px) { .grid-products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .grid-products { grid-template-columns: repeat(4, 1fr); gap: var(--s6) var(--s5); } }

/* One frame per card: the 3:4 image well. No outer border, no padding
   around it; the text sits on the page under the photo. */
.card {
  position: relative;
  min-width: 0;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .18s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-3px); }
}
.card-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
/* ---------- image well ----------
   Uniform chalk-tinted surface behind every product shot, both themes:
   white-background photos read as framed shots, not glowing rectangles;
   cutouts sit on the same surface so cards never mix treatments. */
.img-well { background: var(--well); border-radius: var(--radius); }

/* 3:4 = the catalog's most common lifestyle-photo shape. Portrait
   lifestyle photos fill the frame (cover, marked .is-photo by site.js once
   the image's real shape is known); square studio shots and cut-outs sit
   contained on the well with one shared inset. */
.card-media { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--well); border-radius: var(--radius); overflow: hidden; }
.card-media img {
  position: absolute; inset: var(--s4);
  width: calc(100% - 2 * var(--s4)); height: calc(100% - 2 * var(--s4));
  object-fit: contain;
}
.card-media img.is-photo { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.card-media img.alt { opacity: 0; transition: opacity .15s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-media img.alt { opacity: 1; }
}
/* three lines: two products never truncate to the same words */
.card-name {
  color: var(--ink); text-decoration: none;
  font: 700 var(--fs-label)/1.35 var(--font-ui); letter-spacing: .12em; text-transform: uppercase;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  padding-top: 8px; margin-top: -8px; /* 24px+ tall link without moving the text (top only, so the clamp never shows a 4th line) */
}
.card-name .note { color: var(--ink-dim); font-weight: 600; }
.card-price { font: 600 .95rem/1 var(--font-ui); font-variant-numeric: tabular-nums; }
.card-colcount { font: 600 var(--fs-micro)/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.card-colors { display: flex; gap: 6px; }
.card-colors a {
  width: 28px; height: 34px; border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; place-items: center; overflow: hidden; background: var(--well);
}
.card-colors a img { width: 100%; height: 100%; object-fit: contain; }
.card-colors a.is-on { border: 2px solid var(--ink); }
.card .pills { margin-top: 2px; }
.card-cta-zone { margin-top: auto; padding-top: 4px; }
.card.is-soldout .card-media img { opacity: .55; }
.card-notify { margin-top: 8px; }

/* ---------- search layer ----------
   Same drawer chrome as the bag: asphalt raised panel on the scrim,
   court-line left border, chalk Archivo labels. */
#searchLayer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: min(480px, calc(100vw - 24px));
  background: var(--bg-raised); border-left: var(--border-hard);
  transform: translateX(102%); transition: transform var(--dur-drawer) var(--ease-drawer);
  display: flex; flex-direction: column;
}
#searchLayer.open { transform: translateX(0); }
.search-field { padding: var(--s4); border-bottom: var(--border-hair); }
.search-field .f-input { width: 100%; }
.search-hint { display: block; min-height: 1em; margin-top: 8px; color: var(--ink-dim); }
#searchResults { display: flex; flex-direction: column; gap: 10px; }
.sr-row {
  display: flex; align-items: center; gap: var(--s3);
  padding: 10px; min-height: 44px;
  border: var(--border-hair); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
}
@media (hover: hover) and (pointer: fine) { .sr-row:hover { border-color: var(--ink); } }
.sr-thumb {
  width: 56px; height: 64px; flex: none;
  background: var(--well); border-radius: var(--radius);
  display: grid; place-items: center; overflow: hidden;
}
.sr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sr-name { font: 700 var(--fs-label)/1.3 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; }
.sr-sub { font: 600 var(--fs-micro)/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.sr-right { margin-left: auto; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sr-price { font: 600 .9rem/1 var(--font-ui); font-variant-numeric: tabular-nums; }
.search-empty { padding: var(--s5) 0; }
.search-empty p { margin: 0; }

/* ---------- 2.4 cart drawer ---------- */
#scrim {
  position: fixed; inset: 0; z-index: 59; background: var(--bg-overlay);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .2s var(--ease-out);
}
#scrim.show { opacity: 1; pointer-events: auto; }
#drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: min(440px, calc(100vw - 24px));
  background: var(--bg-raised); border-left: var(--border-hard);
  transform: translateX(102%); transition: transform var(--dur-drawer) var(--ease-drawer);
  display: flex; flex-direction: column;
}
#drawer.open { transform: translateX(0); }
.dw-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s4); border-bottom: var(--border-hair);
}
.dw-head h2 { margin: 0; font: 700 var(--fs-label)/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; }
.dw-close { width: 44px; height: 44px; background: none; border: none; color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.dw-body { flex: 1; overflow-y: auto; padding: var(--s4); }
.dw-line { display: flex; gap: var(--s3); padding-block: var(--s4); border-bottom: var(--border-hair); overflow: hidden; }
.dw-line.removing { transition: opacity .2s var(--ease-out); opacity: 0; }
.dw-thumb { width: 72px; height: 72px; border: var(--border-hair); border-radius: var(--radius); flex: none; display: grid; place-items: center; background: var(--well); }
.dw-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dw-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dw-name { font: 600 var(--fs-label)/1.3 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.dw-size { font: 600 var(--fs-micro)/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.dw-tag { font: 600 var(--fs-micro)/1.4 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; }
.dw-qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; }
.dw-qty button {
  width: 44px; height: 44px; /* 44 px tap target */ display: grid; place-items: center;
  background: transparent; color: var(--ink); border: var(--border-hard); border-radius: var(--radius);
  font-size: .9rem; cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .dw-qty button:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); } }
.dw-qty span { min-width: 28px; text-align: center; font: 600 .85rem/1 var(--font-ui); font-variant-numeric: tabular-nums; }
.dw-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.dw-price { font: 600 .95rem/1 var(--font-ui); font-variant-numeric: tabular-nums; }
.dw-remove {
  background: none; border: none; cursor: pointer; padding: 0 4px;
  min-width: 44px; min-height: 44px; /* 44 px tap target */
  font-size: var(--fs-micro); color: var(--ink-dim); text-decoration: underline; text-underline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) { .dw-remove:hover { color: var(--accent-text); } }
.dw-mixed {
  border: var(--border-hair); border-radius: var(--radius);
  padding: var(--s3); margin-top: var(--s4); font-size: .875rem; line-height: 1.5;
}
.dw-foot { border-top: var(--border-hair); padding: var(--s4); }
.dw-meter { margin-bottom: var(--s4); }
.dw-meter .track { height: 2px; background: var(--line); margin-bottom: 8px; }
.dw-meter .track i { display: block; height: 100%; background: var(--accent); transition: width .3s var(--ease-out); }
.dw-meter .cap { font: 600 var(--fs-micro)/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; }
/* order-protection row — shown only when the owner's protection product is
   live in the catalog. Checkbox on, by default; whole row is the label. */
.dw-op {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  border: var(--border-hair); border-radius: var(--radius);
  padding: var(--s3); margin-bottom: var(--s4);
}
.dw-op input {
  appearance: none; -webkit-appearance: none; flex: none; cursor: pointer;
  width: 16px; height: 16px; margin-top: 1px;
  border: 1.5px solid var(--ink); border-radius: 3px; background: transparent;
  display: grid; place-content: center;
}
.dw-op input:checked { background: var(--accent); border-color: var(--accent); }
.dw-op input:checked::before {
  content: ""; width: 9px; height: 5px;
  border-left: 2px solid #141414; border-bottom: 2px solid #141414;
  transform: translateY(-1px) rotate(-45deg);
}
.dw-op input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dw-op-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dw-op-tx .t { font: 600 var(--fs-micro)/1 var(--font-ui); letter-spacing: .12em; }
.dw-op-tx .c { font-size: .8rem; line-height: 1.35; color: var(--ink-dim); }
.dw-op-price { margin-left: auto; font: 600 .85rem/1 var(--font-ui); font-variant-numeric: tabular-nums; }
.dw-sub { display: flex; justify-content: space-between; margin-bottom: var(--s4); font: 700 .95rem/1 var(--font-ui); font-variant-numeric: tabular-nums; }
.dw-legal { text-align: center; margin-top: 8px; font-size: .875rem; color: var(--ink-dim); }
.dw-empty { text-align: center; padding: var(--s8) var(--s4); display: flex; flex-direction: column; align-items: center; gap: var(--s4); }
.dw-empty .mark { width: 48px; opacity: .3; filter: invert(var(--logo-invert)); }

/* ---------- 2.11 toast ---------- */
#toast {
  position: fixed; z-index: 70;
  left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  width: min(360px, calc(100vw - 32px));
  background: var(--bg-raised); border: var(--border-hard); border-radius: var(--radius);
  padding: var(--s4); display: flex; gap: var(--s3); align-items: center;
  opacity: 0; translate: 0 12px; pointer-events: none;
  transition: opacity .2s var(--ease-out), translate .2s var(--ease-out);
}
#toast.show { opacity: 1; translate: 0 0; pointer-events: auto; }
@media (min-width: 768px) { #toast { left: auto; right: 24px; transform: none; } }
#toast .check {
  position: absolute; top: 6px; right: 8px;
  font-family: var(--font-marker); font-size: 12px; color: var(--accent-text); transform: rotate(-8deg);
}
#toast img { width: 40px; height: 40px; object-fit: contain; background: var(--well); border-radius: var(--radius); }
#toast .tx { flex: 1; min-width: 0; }
#toast .t1 { font: 600 var(--fs-label)/1.3 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; }
#toast .t2 { font: 600 var(--fs-micro)/1.4 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
#toast .tx-close {
  flex: none; width: 44px; height: 44px; margin: -8px -8px -8px 0;
  background: none; border: none; cursor: pointer; color: var(--ink-dim); font-size: .9rem;
}
@media (hover: hover) and (pointer: fine) { #toast .tx-close:hover { color: var(--ink); } }
#toast .check { right: 52px; }
#toast .tv {
  background: none; border: none; cursor: pointer; color: var(--ink); padding: 8px 2px;
  font: 600 var(--fs-micro)/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- hero ---------- */
/* One on-location photo carries the first screen. Phone: full-width photo
   on top (its own crop: shorter frame, focus on the fits), copy under it.
   768+: copy on the left aligned to .wrap, photo full-bleed to the right
   edge across half the width. */
.hero { display: grid; grid-template-columns: 1fr; min-height: 72svh; }
.hero-photo { order: -1; position: relative; margin: 0; height: min(56svh, 125vw); background: var(--well); overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.hero-copy { align-self: center; padding: var(--s6) max(16px, env(safe-area-inset-right, 0px)) var(--s7) max(16px, env(safe-area-inset-left, 0px)); min-width: 0; }
.hero-cap {
  position: absolute; left: var(--s3); bottom: var(--s3);
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s3);
  background: var(--bg); color: var(--ink); border-radius: var(--radius); text-decoration: none;
  font: 600 var(--fs-micro)/1.2 var(--font-ui); letter-spacing: .12em; text-transform: uppercase;
}
@media (hover: hover) and (pointer: fine) { .hero-cap:hover { color: var(--accent-text); } }
@media (min-width: 768px) {
  .hero { grid-template-columns: 1fr 1fr; margin-bottom: var(--s8); }
  .hero-photo { order: 0; height: auto; min-height: 72svh; }
  .hero-photo img { position: absolute; inset: 0; }
  .hero-copy { padding: var(--s8) var(--s6) var(--s8) max(16px, calc(50vw - 600px)); }
}
.court-arc {
  position: absolute; left: 50%; bottom: -8px; translate: -50% 0;
  width: 280px; height: 140px;
  border: 2px solid var(--ink); border-top: none; border-radius: 0 0 160px 160px;
  opacity: .18; pointer-events: none;
}
.hero .scrawl { margin-top: var(--s3); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }

/* ---------- 2.6 drop-calendar card ---------- */
.drop-card {
  position: relative;
  border: var(--border-hard); border-radius: var(--radius);
  display: flex; flex-wrap: wrap; gap: var(--s4);
  padding: var(--s4);
  transition: transform .18s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .drop-card:hover { transform: translateY(-3px); } }
.drop-card.is-live { border-color: var(--accent); }
/* past and latest cards open from anywhere on them (site.js) */
.drop-card.is-past, .drop-card.is-latest { cursor: pointer; }
.dc-date {
  flex: none; width: 96px; padding-right: var(--s4);
  border-right: var(--border-hard);
  display: flex; flex-direction: column; justify-content: center;
}
@media (min-width: 768px) { .dc-date { width: 120px; } }
.dc-date .dow { font: 600 var(--fs-micro)/1.4 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.dc-date .num { font-weight: 900; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; }
.dc-date .mon { font: 600 var(--fs-label)/1.4 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; }
/* three 900-weight letters run wider than two numerals — TBA gets its own,
   smaller scale so it never touches the divider */
.drop-card[data-drop="tba"] .dc-date .num { font-size: clamp(1.9rem, 4vw, 2.8rem); }
/* under 480px the side-by-side column is too tight for ANY date: stack.
   The divider turns horizontal and the copy gets the card's full width. */
@media (max-width: 479px) {
  .dc-date {
    width: 100%; border-right: none; border-bottom: var(--border-hard);
    padding: 0 0 var(--s3);
    flex-direction: row; align-items: baseline; gap: 10px;
  }
}
.dc-body { flex: 1; min-width: min(200px, 100%); display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.dc-name { margin: 0; font-weight: 900; text-transform: uppercase; font-size: clamp(1.3rem, 3.5vw, 2.25rem); line-height: 1.02; }
/* product lines come from mixed-case catalog titles: one case on every card */
.dc-desc { font: 600 var(--fs-micro)/1.5 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); }
.dc-count { align-self: flex-start; }
.dc-chips { display: flex; flex-wrap: wrap; gap: var(--s2); width: 100%; }
@media (min-width: 768px) { .dc-chips { justify-content: flex-end; } }
.dc-status { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: var(--s3); width: 100%; }
@media (min-width: 768px) { .dc-status { flex-direction: column; justify-content: center; align-items: flex-end; width: auto; min-width: 140px; } }
/* phone: count, status badge and button share one row under the copy */
@media (max-width: 767.98px) {
  .drop-card .dc-body { gap: var(--s2); }
  .drop-card .dc-status { padding-top: 0; }
}
/* a11y: dim only the large date figures on past drops; the small
   weekday label keeps full --ink-dim so it stays above 4.5:1 */
.drop-card.is-past .dc-date .num, .drop-card.is-past .dc-date .mon { opacity: .6; }
.drop-grid-expand { grid-column: 1 / -1; }
.drop-section + .drop-section { margin-top: var(--s5); }

/* ---------- proof band / stat row ---------- */
.band { border-top: var(--border-hard); border-bottom: var(--border-hard); padding-block: var(--s6); }
.stats { display: grid; grid-template-columns: 1fr; gap: var(--s5); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(var(--stat-cols, 3), 1fr); } }
/* two labelled figures side by side at every width */
.stats--2 { grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .stats--2 { grid-template-columns: 1fr 1fr; } }
.stat .n { font-weight: 900; text-transform: uppercase; font-size: clamp(1.5rem, 3.5vw, 2.25rem); line-height: 1.02; }
.stat .c { margin-top: 6px; font: 600 var(--fs-label)/1.4 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }

/* ---------- email capture section ---------- */
.capture-band { border-top: var(--border-hard); border-bottom: var(--border-hard); padding-block: var(--s7); }
.capture-grid { display: grid; grid-template-columns: 1fr; gap: var(--s5); align-items: center; }
@media (min-width: 768px) { .capture-grid { grid-template-columns: 1.1fr 1fr; } }
.capture-form { display: flex; gap: 8px; }
.capture-form .f-input { flex: 1; min-width: 0; }
.capture-form .btn { width: 48px; min-width: 48px; height: 48px; padding: 0; font-size: 1.1rem; }

/* ---------- category lanes ---------- */
.lanes { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 768px) { .lanes { grid-template-columns: repeat(3, 1fr); gap: var(--s4); } }
@media (min-width: 1200px) { .lanes { grid-template-columns: repeat(6, 1fr); } }
.lane {
  border: var(--border-hard); border-radius: var(--radius);
  padding: var(--s4); text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: var(--s3); align-items: center; text-align: center;
  transition: transform .18s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .lane:hover { transform: translateY(-3px); } }
.lane img { height: 110px; width: 100%; object-fit: contain; background: var(--well); border-radius: var(--radius); padding: var(--s2); }
.lane .t-display-m { font-size: clamp(1rem, 2.2vw, 1.35rem); font-weight: 900; text-transform: uppercase; }

/* ---------- story tease (inverted band) ---------- */
.flip-band { background: var(--bg-flip); color: var(--ink-flip); padding-block: var(--s8); }
.flip-band .btn--ghost { color: var(--ink-flip); border-color: var(--ink-flip); }
@media (hover: hover) and (pointer: fine) { .flip-band .btn--ghost:hover { background: color-mix(in srgb, var(--ink-flip) 8%, transparent); } }
.flip-band .btn--ghost:active { background: var(--ink-flip); color: var(--bg-flip); }

/* ---------- section heads / tabs ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s5); }
.text-tab {
  background: none; border: none; cursor: pointer; color: var(--ink-dim); padding: 6px 0;
  font: 900 1.1rem/1 var(--font-ui); text-transform: uppercase; letter-spacing: 0;
  border-bottom: 2px solid transparent;
}
.text-tab.is-on { color: var(--ink); border-bottom-color: var(--ink); }
.ghost-link {
  font: 600 var(--fs-label)/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: 3px;
  display: inline-block; padding-top: 10px; margin-top: -10px; /* taller hit area, same look */
}
@media (hover: hover) and (pointer: fine) { .ghost-link:hover { color: var(--accent-text); border-color: var(--accent-text); } }

/* ---------- shop: category intro + category links ----------
   Plain links to each category page (/shop/<slug>), in the HTML before
   any script runs. One quiet row under the heading; the current one is
   underlined. Scrolls sideways on phones instead of wrapping. */
.shop-intro { margin: var(--s3) 0 0; color: var(--ink-dim); }
.cat-links {
  display: flex; gap: var(--s4); margin-top: var(--s3);
  padding: 4px 4px; margin-inline: -4px; /* room for the focus ring inside the scroll box */
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cat-links::-webkit-scrollbar { display: none; }
@media (max-width: 767.98px) {
  /* same edge fade as the filter chips: says the row scrolls */
  .cat-links {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
}
.cat-links a {
  flex: none; display: inline-flex; align-items: center; min-height: 44px;
  font: 600 var(--fs-label)/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-dim); text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s var(--ease-out), border-color .15s var(--ease-out);
}
.cat-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .cat-links a:hover { color: var(--ink); } }

/* ---------- shop filter bar ---------- */
.filter-bar {
  /* sits under the pinned marquee+header stack; --chrome-h is measured by
     site.js (fallback ≈ 32px marquee + 64px header) */
  position: sticky; top: var(--chrome-h, 96px); z-index: 30;
  background: var(--bg); /* opaque, same ghosting fix as .site-head */
  padding-block: var(--s3); margin-bottom: var(--s5);
  display: flex; align-items: center; gap: var(--s3);
  /* same height empty (first HTML) as filled, so the grid never moves */
  min-height: calc(36px + 2 * var(--s3));
}
.filter-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; padding-bottom: 2px; }
.filter-chips::-webkit-scrollbar { display: none; }
@media (max-width: 767.98px) {
  /* F9: edge fade = scroll affordance for the clipped chip strip */
  .filter-chips {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
}
.filter-chips .chip { flex: none; }
.sort-sel {
  height: 36px; padding: 0 10px; flex: none;
  background: var(--bg-raised); color: var(--ink);
  border: var(--border-hard); border-radius: var(--radius);
  font: 600 var(--fs-micro)/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase;
}
/* phone and tablet: 16px so iOS doesn't zoom on focus; 44px tall tap row */
@media (max-width: 1023.98px) {
  .sort-sel { height: 44px; max-width: 46vw; font-size: 1rem; letter-spacing: .02em; }
  .filter-bar .chip { min-height: 44px; }
  .filter-bar { min-height: calc(44px + 2 * var(--s3)); }
}

/* ---------- shop filter drawer + active chips ---------- */
.fb-open { flex: none; }
.chip--rm span { margin-left: 2px; }
#filterDrawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 60;
  width: min(400px, calc(100vw - 24px));
  background: var(--bg-raised); border-right: var(--border-hard);
  transform: translateX(-102%); transition: transform var(--dur-drawer) var(--ease-drawer);
  display: flex; flex-direction: column;
}
#filterDrawer.open { transform: translateX(0); }
.facet { padding-block: var(--s4); border-bottom: var(--border-hair); }
.facet:first-child { padding-top: 0; }
.facet-name { display: block; margin-bottom: 12px; }
.fd-foot { display: flex; gap: 8px; }
.fd-foot .btn { flex: 1; }
.shop-empty {
  grid-column: 1 / -1; padding-block: var(--s7);
  display: grid; gap: var(--s4); justify-items: center;
}

/* ---------- PDP ---------- */
.pdp { display: grid; grid-template-columns: 1fr; gap: var(--s6); padding-block: var(--s6); }
@media (min-width: 768px) { .pdp { grid-template-columns: 55fr 45fr; align-items: start; } }
.pdp-gallery { min-width: 0; }
.pdp-main {
  position: relative; aspect-ratio: 4 / 5; display: grid; place-items: center;
  background: var(--well); border: var(--border-hair); border-radius: var(--radius);
  padding: var(--s3); overflow: hidden;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr); /* fixed track so the photo's 100% resolves */
}
.pdp-main img { position: relative; z-index: 1; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.pdp-main .court-arc { bottom: 24px; }
.pdp-thumbs { display: flex; gap: 8px; margin-top: var(--s3); flex-wrap: wrap; }
.pdp-thumbs button {
  width: 56px; height: 56px; padding: 4px; cursor: pointer;
  background: var(--well); border: var(--border-hair); border-radius: var(--radius);
}
.pdp-thumbs button.is-on, .pdp-thumbs button[aria-current="true"] { border: 2px solid var(--ink); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-buy { min-width: 0; display: flex; flex-direction: column; gap: var(--s4); }
@media (min-width: 768px) { .pdp-buy { position: sticky; top: calc(var(--chrome-h, 96px) + 24px); } }
/* protection add-on page: name, Shopify text, tiers */
.pdp-addon { max-width: 640px; margin-inline: auto; display: grid; gap: var(--s4); }
.pdp-addon .t-body { margin: 0; }
.pdp-addon-tiers { list-style: none; margin: 0; padding: 0; border-top: var(--border-hair); }
.pdp-addon-tiers li { display: flex; justify-content: space-between; gap: var(--s3); padding-block: var(--s3); border-bottom: var(--border-hair); }
.pdp-crumb { font: 600 var(--fs-micro)/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); text-decoration: none; }
/* 44px tall hit area without moving the layout */
.pdp-crumb a { color: inherit; text-decoration: none; display: inline-block; padding: 16px 6px; margin: -16px -6px; }
@media (hover: hover) and (pointer: fine) { .pdp-crumb a:hover { color: var(--accent-text); } }
/* the product name in the display face: the biggest thing in the buy box,
   above the price and the RUNS WITH heading */
.pdp-name { margin: 0; font: 900 clamp(1.75rem, 3.2vw, 2.5rem)/1.02 var(--font-ui); text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; }
/* colorway chip under a family-named headline (badge already uppercases) */
.pdp-colorrow { margin-top: -8px; }
.pdp-price { font: 600 1.15rem/1 var(--font-ui); font-variant-numeric: tabular-nums; }

/* expectation line: one line under the buy button (status chip + ship time) */
.pdp-expect { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s2); margin: var(--s3) 0 0; font: 400 .875rem/1.4 var(--font-ui); text-align: center; }
.pdp-soldout { align-self: flex-start; }
/* expectation block (legacy panel, no longer rendered on the PDP) */
.expect { border: var(--border-hard); border-radius: var(--radius); padding: var(--s4); }
.expect-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s3); }
.expect-body { font-size: .875rem; line-height: 1.5; }
.expect-body p { margin: 0 0 2px; }
.expect .countdown { font: 600 var(--fs-micro)/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
@keyframes chipPulse { 0%, 100% { border-color: var(--ink); } 50% { border-color: var(--accent); } }
.expect .badge--ghost.pulse, .pdp-expect .badge--ghost.pulse { animation: chipPulse .6s var(--ease-inout) 1; }
.timeline { display: flex; align-items: center; margin-top: var(--s4); }
.timeline .tstep { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.timeline .tdot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; }
.timeline .tstep.fill .tdot { background: var(--ink); }
.timeline .tlab { font: 600 var(--fs-micro)/1.3 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; text-align: center; max-width: 90px; }
.timeline .tline { flex: 1; height: 2px; background: var(--ink); margin: 0 6px 18px; min-width: 24px; }

/* option rows */
.opt-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.opt-row.flash .pills { animation: shakeX .12s linear 2; }
.pdp-pick { margin: -4px 0 0; font: 600 var(--fs-label)/1.3 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
/* Size guide: link beside the SIZE label; native <dialog>
   (focus trap, Esc, focus return). Bottom sheet on phones, centred on
   desktop. Existing tokens only; sentence case on purpose. */
.sg-link {
  background: none; border: none; padding: 10px 0; margin: -10px 0; cursor: pointer;
  font: 500 .8rem/1 var(--font-ui); color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
@media (hover: hover) and (pointer: fine) { .sg-link:hover { color: var(--accent-text); } }
.sg {
  width: min(560px, calc(100vw - 32px)); max-height: min(720px, calc(100vh - 48px));
  padding: 0; border: var(--border-hard); border-radius: var(--radius);
  background: var(--bg); color: var(--ink); overflow: hidden;
}
.sg[open] { display: flex; flex-direction: column; }
.sg::backdrop { background: var(--bg-overlay, rgba(20, 20, 20, .72)); }
.sg-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 4px var(--s4); border-bottom: var(--border-hair); }
.sg-head h2 { margin: 0; font: 700 1rem/1.2 var(--font-ui); }
.sg-body { overflow-y: auto; padding: var(--s4) var(--s4) calc(var(--s5) + env(safe-area-inset-bottom, 0px)); }
.sg-sub { margin: 0 0 var(--s3); font: 400 .875rem/1.4 var(--font-ui); color: var(--ink-dim); }
.sg-scroll { overflow-x: auto; }
.sg-table { width: 100%; border-collapse: collapse; font: 400 .9rem/1.2 var(--font-ui); font-variant-numeric: tabular-nums; }
.sg-table th, .sg-table td { padding: 10px 8px; text-align: left; border-bottom: var(--border-hair); }
.sg-table thead th { font-weight: 600; font-size: .78rem; color: var(--ink-dim); border-bottom: var(--border-hard); }
.sg-table tbody th { font-weight: 700; }
.sg-h3 { margin: var(--s5) 0 var(--s3); font: 700 .9rem/1.2 var(--font-ui); }
.sg-how { margin: 0; }
.sg-how dt { font: 600 .875rem/1.3 var(--font-ui); }
.sg-how dd { margin: 2px 0 var(--s3); font: 400 .875rem/1.5 var(--font-ui); color: var(--ink-dim); }
@media (max-width: 768px) {
  .sg {
    width: 100%; max-width: 100%; margin: auto 0 0; max-height: 88vh;
    border-width: 2px 0 0; border-radius: 0;
  }
}

/* Phone buy bar: phones only, existing
   tokens, no new colours or shadow. Product pages get bottom padding so the
   bar never covers the footer; the toast lifts above it while it shows. */
.buybar { display: none; }
@media (max-width: 768px) {
  body[data-page="product"] { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .buybar {
    display: flex; align-items: center; gap: var(--s3);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: var(--bg); border-top: var(--border-hard);
    visibility: hidden; translate: 0 100%;
    transition: translate .2s var(--ease-out), visibility 0s linear .2s;
  }
  .buybar.is-on { visibility: visible; translate: 0 0; transition: translate .2s var(--ease-out), visibility 0s; }
  .buybar-name {
    flex: 1; min-width: 0;
    font: 600 var(--fs-label)/1.2 var(--font-ui); letter-spacing: .12em; text-transform: uppercase;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .buybar .btn { flex: none; max-width: 64%; }
  body.buybar-on #toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .buybar, .buybar.is-on { transition: none; } }
.pdp-sub { font: 600 var(--fs-micro)/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); text-align: center; margin-top: 8px; }

/* colorway family links */
.fam-row { display: flex; gap: 8px; flex-wrap: wrap; }
.fam-row a {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none;
  color: var(--ink); font: 600 var(--fs-micro)/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase;
}
.fam-row a .sw { width: 48px; height: 56px; border: var(--border-hair); border-radius: var(--radius); display: grid; place-items: center; padding: 3px; background: var(--well); }
.fam-row a.is-on .sw { border: 2px solid var(--ink); }
.fam-row a .sw { overflow: hidden; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.fam-row img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }

/* accordions */
.acc { border-top: var(--border-hair); }
.acc:last-of-type { border-bottom: var(--border-hair); }
.acc summary {
  list-style: none; cursor: pointer; padding: var(--s4) 0;
  display: flex; justify-content: space-between; align-items: center;
  font: 600 var(--fs-label)/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase;
}
.acc summary::-webkit-details-marker { display: none; }
/* the + / minus glyph is decoration: empty alt text keeps it out of the
   accessible name ("DETAILS", not "DETAILS plus"); details carries state */
.acc summary::after { content: "+"; content: "+" / ""; font-size: 1rem; }
.acc[open] summary::after { content: "−"; content: "−" / ""; }
.acc .acc-body { padding: 0 0 var(--s4); font-size: .875rem; line-height: 1.6; }
.acc .acc-body p { margin: 0 0 8px; }
.acc .acc-body p.acc-care { margin-top: var(--s3); color: var(--ink-dim); }

/* ---------- wholesale ---------- */
.ws-table { border-top: var(--border-hard); border-bottom: var(--border-hard); }
.ws-table .stat { padding-block: var(--s5); }
.ws-table .stat + .stat { border-top: var(--border-hair); }
@media (min-width: 768px) {
  .ws-table { display: grid; grid-template-columns: repeat(3, 1fr); }
  .ws-table .stat + .stat { border-top: none; border-left: var(--border-hair); padding-left: var(--s5); }
}
.ws-steps { counter-reset: step; }
.ws-step { display: flex; gap: var(--s4); padding-block: var(--s5); border-top: var(--border-hair); }
.ws-step:last-child { border-bottom: var(--border-hair); }
.ws-step .no { font-weight: 900; font-size: 1.5rem; line-height: 1; min-width: 48px; }
.ws-step h3 { margin: 0 0 4px; font: 600 .95rem/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .04em; }
.ws-step p { margin: 0; color: var(--ink-dim); font-size: .95rem; }
/* BOOK A CALL row — hidden until js/site.js has an owner Calendly link */
.ws-call { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); padding-block: var(--s5); border-top: var(--border-hair); margin-top: var(--s6); }
.ws-call p { margin: 0; color: var(--ink-dim); flex: 1 1 28ch; }
.ws-call[hidden] { display: none; }
/* wholesale lookbook strip — shots only, deliberately price-free */
.ws-shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
@media (max-width: 640px) { .ws-shots { grid-template-columns: 1fr 1fr; gap: var(--s2); } }
.ws-shots figure { margin: 0; border: var(--border-hair); border-radius: var(--radius); overflow: hidden; }
.ws-shots img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }

.ws-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
@media (min-width: 768px) { .ws-grid { grid-template-columns: repeat(4, 1fr); } }
.ws-card { border: var(--border-hair); border-radius: var(--radius); padding: var(--s4); }
.ws-card .im { aspect-ratio: 4 / 5; display: grid; place-items: center; margin-bottom: var(--s3); background: var(--well); border-radius: var(--radius); padding: var(--s2); }
.ws-card img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ws-card .nm { font: 600 var(--fs-micro)/1.4 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.ws-card .ct { font: 600 var(--fs-micro)/1.6 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.ws-card .pr { font: 600 .85rem/1.6 var(--font-ui); font-variant-numeric: tabular-nums; }
.ws-form { display: grid; grid-template-columns: 1fr; gap: 0 var(--s4); max-width: 640px; }
@media (min-width: 768px) { .ws-form { grid-template-columns: 1fr 1fr; } .ws-form .full { grid-column: 1 / -1; } }

/* ---------- about ---------- */
.about-photo {
  border: var(--border-hard); border-radius: var(--radius);
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  color: var(--ink-dim); font: 600 var(--fs-micro)/1.6 var(--font-ui); letter-spacing: .14em; text-transform: uppercase;
  text-align: center; padding: var(--s4); overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* about — full-bleed photo band under SAGINAW (same crop discipline as the
   lookbook wide shots: cover + high object-position, portrait source) */
/* about — SAGINAW photo. 4:5 (source is 3:4) so the full sweatsuits stay
   in frame on every device. Desktop: beside the text; mobile: under it.
   Never a full-bleed band — ultra-wide monitors crop portraits to faces. */
.sag-photo { margin: var(--s5) 0 0; border: var(--border-hair); border-radius: var(--radius); overflow: hidden; }
.sag-photo img {
  /* height:auto is load-bearing: without it the height attribute wins
     and aspect-ratio is ignored */
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: 50% 20%;
}
@media (min-width: 900px) {
  /* align start, not center: centering floated SAGINAW ~160px down the
     tall photo column and read as a dead gap under the hero */
  .sag-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s7); align-items: start; }
  .sag-photo { margin: 0; }
}

/* in-page jumps (#floyd) must clear the sticky header */
#floyd { scroll-margin-top: 110px; }

/* about — the codes: 4 identity tiles */
.codes { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
@media (max-width: 900px) { .codes { grid-template-columns: 1fr 1fr; } }
.code {
  border: var(--border-hair); border-radius: var(--radius);
  padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2);
}
.code-well {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  background: var(--well); display: grid; place-content: center;
}
.code-well img { width: 44px; height: 44px; object-fit: contain; }
/* the mark PNG is black; invert it in night mode or it vanishes on the well */
[data-theme="dark"] .code-well img { filter: invert(1); }
.code h3 { margin: var(--s2) 0 0; font: 600 .78rem/1 var(--font-ui); letter-spacing: .14em; }
.code p { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--ink-dim); }

/* about — receipts timeline: hairline rail, marker dates */
.tl { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.tl li { position: relative; padding: 0 0 var(--s5) var(--s5); }
.tl li:last-child { padding-bottom: 0; }
.tl li::before {
  content: ""; position: absolute; left: -6px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}
.tl-d {
  display: block; margin-bottom: 4px;
  font: 600 var(--fs-micro)/1 var(--font-ui); letter-spacing: .18em; color: var(--accent-text);
}
.tl p { margin: 0; font-size: .95rem; line-height: 1.5; max-width: 52ch; }
.tl p a { color: inherit; text-underline-offset: 3px; }

/* about — renaissance series strip (static HTML, re-rendered live by JS).
   Always 3 across: 2+1 left an orphan card on phones. */
.ren-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
@media (max-width: 640px) { .ren-strip { gap: var(--s2); } }
.ren-card { border: var(--border-hair); border-radius: var(--radius); overflow: hidden; display: block; }
.ren-card img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.ren-card .ren-cap {
  display: block; padding: 10px 12px; border-top: var(--border-hair);
  font: 600 var(--fs-micro)/1.5 var(--font-ui); letter-spacing: .14em; color: var(--ink-dim);
}
.ren-card .ren-cap b { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .ren-card .ren-cap { padding: 7px 8px; } }
@media (hover: hover) and (pointer: fine) { .ren-card:hover img { opacity: .92; } }

/* about — the founder's own words */
.maur-quote {
  margin: var(--s6) 0 0; border: var(--border-hard); border-radius: var(--radius);
  background: var(--well); padding: var(--s5);
}
.maur-quote p {
  margin: 0; font-family: var(--font-marker);
  font-size: clamp(1.05rem, 2.6vw, 1.5rem); line-height: 1.45;
}
.maur-quote cite {
  display: block; margin-top: var(--s3); font: 600 var(--fs-micro)/1 var(--font-ui);
  font-style: normal; letter-spacing: .18em; color: var(--accent-text);
}

/* about — care chips (verbatim FAQ rules) */
.care { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.care li {
  border: var(--border-hair); border-radius: 999px; padding: 10px 16px;
  font: 600 var(--fs-micro)/1 var(--font-ui); letter-spacing: .16em;
}

/* the Floyd moment as a typographic card until the owner's photo lands */
.floyd-card {
  border: var(--border-hard); border-radius: var(--radius);
  background: var(--well); padding: var(--s6) var(--s5);
  display: grid; gap: var(--s4); justify-items: center; text-align: center;
}
.floyd-card .fc-top, .floyd-card .fc-bottom {
  margin: 0; font: 600 var(--fs-micro)/1.6 var(--font-ui); letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-text);
}
.floyd-card .fc-big {
  margin: 0; font: 900 clamp(1.3rem, 3.4vw, 2.2rem)/1.15 var(--font-ui);
  text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance;
}
.floyd-card .fc-bottom { color: var(--ink-dim); }

/* evidence frames under the card — video stills worn as video stills:
   hairline-framed, timestamped, never pretending to be a lookbook shoot */
.floyd-frames {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3);
  max-width: 560px; margin: var(--s4) auto 0;
}
.floyd-frames figure { margin: 0; border: var(--border-hair); border-radius: var(--radius); overflow: hidden; }
.floyd-frames img { display: block; width: 100%; height: auto; }
.floyd-frames figcaption {
  padding: 8px 10px; border-top: var(--border-hair);
  font: 600 var(--fs-micro)/1 var(--font-ui); letter-spacing: .18em; color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}
.floyd-frames .ff-cap {
  grid-column: 1 / -1; margin: 2px 0 0; text-align: center;
  font: 600 var(--fs-micro)/1.6 var(--font-ui); letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-dim);
}

/* the mark — logo on the image well, meaning beside it */
.logo-block { display: flex; align-items: center; gap: var(--s5); }
.logo-block .logo-well {
  flex: none; width: min(200px, 38vw); aspect-ratio: 1;
  background: var(--well); border: var(--border-hair); border-radius: var(--radius);
  display: grid; place-items: center; padding: var(--s4);
}
.logo-block .logo-well img { width: 64%; filter: invert(var(--logo-invert)); }
@media (max-width: 767.98px) { .logo-block { flex-direction: column; align-items: flex-start; } }

/* ---------- footer ---------- */
.site-foot { border-top: var(--border-hard); margin-top: var(--s8); }
/* pages that already end on a full-width band meet the footer directly
   (no empty strip, no doubled 2px line) */
body[data-page="home"] .site-foot, body[data-page="shop"] .site-foot, body[data-page="drops"] .site-foot { margin-top: 0; }
body[data-page="shop"] .site-foot, body[data-page="drops"] .site-foot { border-top: none; }
/* tablet: THE LIST gets its own full row so the email field isn't clipped */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-col--list { grid-column: 1 / -1; max-width: 480px; }
}
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6) var(--s5); padding-block: var(--s7); }
@media (min-width: 768px) { .foot-grid { grid-template-columns: repeat(4, 1fr); } }
/* THE LIST (signup input + button) gets the full row on phones */
@media (max-width: 767px) { .foot-col--list { grid-column: 1 / -1; } }
.foot-col h2, .foot-col h3 { margin: 0 0 var(--s3); font: 600 var(--fs-label)/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; }
.foot-col a { display: block; padding: 5px 0; color: var(--ink-dim); text-decoration: none; font: 600 var(--fs-micro)/1.4 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
@media (hover: hover) and (pointer: fine) { .foot-col a:hover { color: var(--accent-text); } }
.foot-row {
  display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center;
  padding-block: var(--s4); border-top: var(--border-hair);
  font: 600 var(--fs-micro)/1.6 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim);
}
.foot-row a { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot-row a:hover { color: var(--accent-text); } }
.foot-hoop { margin-left: auto; position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; opacity: .4; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .foot-hoop:hover { opacity: 1; color: var(--ink); } }
.foot-hoop svg { display: block; }
.foot-hoop::after {
  content: "shoot around?";
  position: absolute; bottom: 100%; right: 0; white-space: nowrap;
  font-family: var(--font-marker); font-size: .9rem; letter-spacing: 0; text-transform: none;
  color: var(--accent-text); transform: rotate(-2deg);
  opacity: 0; pointer-events: none; transition: opacity .15s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .foot-hoop:hover::after { opacity: 1; } }

/* ---------- loader (canon, ported from loader-prototype.html) ---------- */
#loader {
  position: fixed; inset: 0; background: #141414; color: #F2EFE9; z-index: 100;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  transition: transform .45s var(--ease-exit);
}
#loader.out { transform: translateY(-101%); }
#loader .court { position: absolute; left: 0; right: 0; top: 58%; height: 2px; background: #F2EFE9; opacity: .35; }
#loader .arc {
  position: absolute; left: 50%; top: 58%; width: 280px; height: 140px; transform: translateX(-50%);
  border: 2px solid #F2EFE9; border-top: none; border-radius: 0 0 160px 160px; opacity: .18;
}
#ball { position: absolute; left: calc(50% - 32px); top: calc(58% - 64px); width: 64px; height: 64px; }
#ball img { width: 100%; height: 100%; filter: invert(1); }
#swishTxt {
  position: absolute; left: 50%; top: 34%; transform: translateX(-50%) rotate(-3deg);
  font-family: var(--font-marker); color: #FF6A2B; font-size: clamp(1.6rem, 6vw, 2.6rem); opacity: 0;
}
#loadLab {
  position: absolute; left: 0; right: 0; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); text-align: center;
  font-size: var(--fs-micro); letter-spacing: .22em; text-transform: uppercase; color: #8E8B84;
}
#loadBar {
  position: absolute; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  width: 140px; height: 2px; background: #2A2A2C;
}
#loadBar i { display: block; height: 100%; width: 0; background: #FF6A2B; }
@keyframes dropBounce {
  0% { transform: translateY(-70vh); }
  34% { transform: translateY(0); }
  37% { transform: translateY(0) scale(1.12, .82); }
  40% { transform: translateY(0) scale(1, 1); }
  58% { transform: translateY(-22vh); }
  76% { transform: translateY(0); }
  78.5% { transform: translateY(0) scale(1.08, .88); }
  81% { transform: translateY(0); }
  91% { transform: translateY(-8vh); }
  100% { transform: translateY(0); }
}
#loader.play #ball { animation: dropBounce 1.15s var(--ease-ball) both; transform-origin: 50% 100%; }
@keyframes spinBall { to { rotate: 360deg; } }
#loader.play #ball img { animation: spinBall 1.15s linear both; }
@keyframes swishPop { 0% { opacity: 0; scale: .6; } 20% { opacity: 1; scale: 1.06; } 60% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1; } }
#loader.swish #swishTxt { animation: swishPop .7s var(--ease-inout) both; }
@keyframes barFill { to { width: 92%; } }
#loader.play #loadBar i { animation: barFill 1.45s linear both; }
#loader.out #loadBar i { width: 100%; animation: none; }

/* ---------- logo cursor (canon) ---------- */
#cur {
  position: fixed; left: 0; top: 0; width: 34px; height: 34px; pointer-events: none; z-index: 200;
  display: none; transition: scale .15s var(--ease-out); will-change: translate;
}
#cur img { width: 100%; filter: invert(var(--logo-invert)); }
/* over buyables the mark goes court-paint so it never sinks into white
   product photos; the orange file replaces the chalk one (no filter) */
#cur img.cur-o { display: none; filter: none; }
@media (hover: hover) and (pointer: fine) {
  body.hascur:not(.cur-off) #cur { display: block; }
  body.hascur:not(.cur-off), body.hascur:not(.cur-off) a, body.hascur:not(.cur-off) button,
  body.hascur:not(.cur-off) .pill, body.hascur:not(.cur-off) summary, body.hascur:not(.cur-off) label { cursor: none; }
  /* typing fields always keep the native caret */
  body.hascur input, body.hascur textarea, body.hascur select { cursor: auto; }
}
#cur.hot { scale: 1.35; }
#cur.hot img { display: none; }
#cur.hot img.cur-o { display: block; }
@keyframes curSpin { to { rotate: 360deg; } }
#cur.hot img.cur-o { animation: curSpin 2.2s linear infinite; }

/* ---------- 404 ---------- */
.fourohfour { text-align: center; padding-block: var(--s7) var(--s5); }
.fourohfour .t-display-xl { font-size: clamp(4rem, 18vw, 8rem); }
#courtWrap {
  position: relative; margin-top: var(--s6);
  max-width: 900px; margin-left: auto; margin-right: auto; /* keep the hoop in drag range */
  min-width: 0; /* never wider than the .wrap gutters at 390px */
  user-select: none; -webkit-user-select: none; /* F11: no text selection while aiming */
}
.hud-board { display: inline-flex; gap: var(--s4); flex-wrap: wrap; }
#court { display: block; width: 100%; height: 50vh; min-height: 280px; touch-action: none; border: var(--border-hair); border-radius: var(--radius); }
.game-hud { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-top: var(--s3); flex-wrap: wrap; }
.game-hud .score { font: 600 .95rem/1 var(--font-ui); font-variant-numeric: tabular-nums; }
#gameWin { margin-top: var(--s5); }

/* ---------- lookbook ---------- */
/* Editorial grid, not masonry: DOM order IS the curated order. Every 5th
   shot (1, 6, 11…) breaks the 2-up rhythm as a full-width cinematic band
   (wide crop via aspect-ratio + cover); the rest run at their natural 3:4.
   Manifest width/height ride in as img attributes so the page holds its
   geometry while photos load (CLS rule, V2). */
.lookbook { display: grid; grid-template-columns: 1fr; gap: var(--s5) var(--s3); }
.lb-hint { font: 600 var(--fs-micro)/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); margin: 0 0 var(--s4); }
.lb-shot { margin: 0; min-width: 0; }
.lb-zoom { display: block; width: 100%; padding: 0; border: 0; background: var(--well); border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.lb-zoom img { display: block; width: 100%; height: auto; transition: transform var(--dur-ui) var(--ease-out); }
.lb-zoom:focus-visible img { transform: scale(1.02); }
@media (hover: hover) and (pointer: fine) { .lb-zoom:hover img { transform: scale(1.02); } }
.lb-shot--wide .lb-zoom { aspect-ratio: 4 / 3; }
.lb-shot--wide .lb-zoom img { height: 100%; object-fit: cover; object-position: 50% 30%; }
.lb-cap { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.lb-n { font: 900 var(--fs-micro)/1 var(--font-ui); letter-spacing: .1em; color: var(--accent-text); }
.lb-name { font: 600 var(--fs-micro)/1.4 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); min-width: 0; }
.lb-buy { margin-left: auto; font: 900 var(--fs-micro)/1 var(--font-ui); letter-spacing: .1em; color: var(--accent-text); text-decoration: none; white-space: nowrap; display: inline-block; padding: 16px 8px; margin-block: -16px; margin-right: -8px; }
@media (hover: hover) and (pointer: fine) { .lb-buy:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; } }
@media (min-width: 768px) {
  .lookbook { grid-template-columns: 1fr 1fr; gap: var(--s6) var(--s4); }
  .lb-shot--wide { grid-column: 1 / -1; }
  .lb-shot--wide .lb-zoom { aspect-ratio: 16 / 9; }
}
.lb-quiet { padding-block: var(--s8); }
/* V2 rule: hold geometry until the manifest paints so the footer never jumps */
body[data-page="lookbook"] #lookbook:empty { min-height: 120vh; }
/* drops: the archive holds its space until the catalog paints, so the
   capture band and footer never jump into view (CLS) */
body[data-page="drops"] #archive:empty { min-height: 120vh; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: var(--bg-overlay);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center; cursor: zoom-out;
}
.lightbox img { max-height: 90vh; max-width: calc(100vw - 32px); object-fit: contain; background: var(--well); border-radius: var(--radius); }
.lightbox .lb-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  background: var(--bg-raised); border: var(--border-hard); border-radius: var(--radius);
  color: var(--ink); font-size: 1.1rem; cursor: pointer;
}
/* M3: gallery navigation inside the lightbox */
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: var(--bg-raised); border: var(--border-hard); border-radius: var(--radius);
  color: var(--ink); font-size: 1.1rem; cursor: pointer;
}
.lightbox .lb-prev { left: 12px; }
.lightbox .lb-next { right: 12px; }

/* ---------- 404 swish pop ---------- */
.swish-pop {
  position: absolute; left: 50%; top: 30%; transform: translateX(-50%) rotate(-3deg);
  font-family: var(--font-marker); color: var(--accent); font-size: clamp(1.6rem, 6vw, 2.6rem);
  pointer-events: none; animation: swishPop .7s var(--ease-inout) both;
}
@media (prefers-reduced-motion: reduce) {
  .swish-pop { animation: none; opacity: 1; }
}

/* ---------- misc ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-s4 { margin-bottom: var(--s4); } .mb-s5 { margin-bottom: var(--s5); }

/* page-load states (no skeleton shimmer — static dim blocks) */
.loading-block { background: var(--bg-raised); border-radius: var(--radius); min-height: 120px; }

/* V2: reserved space while the catalog loads — the shop grid and PDP shell
   hold their final geometry so content never shoves the footer (CLS).
   Static dim blocks only, same no-shimmer rule as above. */
#shopGrid[data-skel] { min-height: 120vh; }
.card-skel { border-radius: var(--radius); }
.card-skel::before { content: ""; display: block; aspect-ratio: 3 / 4; background: var(--well); border-radius: var(--radius); }
.card-skel::after { content: ""; display: block; height: 148px; margin-top: 8px; background: var(--bg-raised); border-radius: var(--radius); }
.skel-well { aspect-ratio: 4 / 5; background: var(--well); border: var(--border-hair); border-radius: var(--radius); }
.skel-line { height: 14px; background: var(--bg-raised); border-radius: var(--radius); }
.skel-block { background: var(--bg-raised); border-radius: var(--radius); }

/* F13: wholesale orange budget — the page's single Primary is the Apply CTA,
   so the shared footer's THE LIST capture arrow renders chalk there */
body[data-page="wholesale"] .site-foot .capture-inline .btn--primary {
  background: var(--ink); color: var(--bg);
}

/* ============================================================
   REDUCED MOTION — reduce = remove, never slow down
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #loader { display: none !important; }
  #cur { display: none !important; }
  body.hascur, body.hascur a, body.hascur button, body.hascur .pill,
  body.hascur summary, body.hascur label { cursor: auto; }
  .mq-pause { display: none; }
  .mq-track { animation: none; }
  .mq-seg[aria-hidden] { display: none; }
  /* no movement: the strip holds every message at once, wrapping to a second line on phone
     instead of cutting the free-shipping line off (the header follows via --mq-h) */
  .marquee { height: auto; min-height: 32px; padding: 7px 16px; justify-content: center; }
  .mq-track { white-space: normal; justify-content: center; text-align: center; }
  .mq-seg { padding-right: 0; line-height: 1.45; }
  .mq-dup { display: none; }
  .card:hover, .drop-card:hover, .lane:hover { transform: none; }
  .lb-zoom img { transition: none; }
  .lb-zoom:hover img, .lb-zoom:focus-visible img { transform: none; }
  .card:hover .card-media img.alt { opacity: 0; }
  #drawer, #filterDrawer, #menu, #scrim, .tg-knob, #toast, #searchLayer { transition: none; }
  .bag-btn.pulse { animation: none; }
  .shake, .opt-row.flash .pills { animation: none; }
  .expect .badge--ghost.pulse { animation: none; border-color: var(--accent); }
  #sweep.go { display: none; animation: none; }
  #cur.hot img { animation: none; }
  html.theming, html.theming body, html.theming *:not(#loader):not(#loader *) { transition: none; }
  .dw-line.removing { transition: none; }
}

/* ---------- live prices (js/live-prices.js) ----------
   Only while Shopify's hourly sync reports a live automatic discount on a
   variant. The sale price wears the court-paint text colour; the struck full
   price (shown only while SHOW_COMPARE_AT is on) is dimmed. No sale = none of
   these classes exist on the page. */
.lp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.lp-was { color: var(--ink-dim); font-weight: 400; text-decoration: line-through; text-decoration-thickness: 1px; margin-right: 6px; }
.lp-now { color: var(--accent-text); }
.lp-note { display: block; margin-top: 8px; font: 400 .8rem/1.35 var(--font-ui); color: var(--ink-dim); }
.dw-price.lp-on { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.dw-price.lp-on .lp-was { margin-right: 0; font-size: .8rem; }
.dw-lpnote { margin: calc(-1 * var(--s3)) 0 var(--s4); font-size: .8rem; line-height: 1.35; color: var(--ink-dim); text-align: right; }

/* ---------- phone product page: buy box on the first screen ----------
   The photo frame is capped so name, price, sizes and ADD TO BAG sit on (or
   right under) the first 390x844 screen; the full photo is a tap away in
   the lightbox. */
@media (max-width: 767.98px) {
  .pdp { gap: var(--s4); padding-block: var(--s3) var(--s6); }
  .pdp-main { aspect-ratio: auto; height: min(44svh, 112vw); }
  /* a colourway row adds ~110px to the buy box: give it back from the photo so ADD TO BAG stays on the first screen */
  main:has(.fam-row) .pdp-main { height: min(36svh, 92vw); }
  .pdp .skel-well { aspect-ratio: auto; height: min(44svh, 112vw); }
  .pdp-thumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: var(--s2); }
  .pdp-thumbs::-webkit-scrollbar { display: none; }
  .pdp-thumbs button { flex: none; width: 44px; height: 52px; padding: 2px; }
  .pdp-buy { gap: var(--s3); }
}

/* ---------- touch: 44px rows for the small text links ---------- */
.toggle { min-height: 44px; }
@media (pointer: coarse) {
  .btn--compact { min-height: 44px; }
  .card-colors a { width: 36px; height: 44px; }
  .foot-col a { display: flex; align-items: center; min-height: 44px; padding: 0; }
  .foot-row a, .menu-meta a { display: inline-flex; align-items: center; min-height: 44px; }
  .sg-link { padding-block: 16px; margin-block: -16px; }
}
