/* ==========================================================================
   KmicWear 01 — KENTE CODE  ·  Afrofuturist WebGL storefront
   ========================================================================== */
:root {
  --bg: #050505;
  --bg-2: #0c0c0b;
  --ink: #f1e9da;
  --mute: rgba(241, 233, 218, 0.62);
  --line: rgba(241, 233, 218, 0.14);
  --gold: #f2b705;
  --gold-hi: #ffd54a;
  --green: #0b6e4f;
  --red: #c1121f;
  --err: #ff6b6b;
  --display: 'Syne', 'Arial Black', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(4.5rem, 10vw, 9rem);
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --cw: clamp(200px, 18vw, 264px);
  --ch: calc(var(--cw) * 1.48);
  --kente: repeating-linear-gradient(90deg, var(--gold) 0 14px, var(--green) 14px 20px, var(--gold) 20px 26px, var(--red) 26px 34px, #111 34px 38px, var(--gold) 38px 52px, var(--green) 52px 60px, #111 60px 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.is-locked { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--mono); overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: #000; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: #000; padding: 10px 14px; transition: transform 0.2s; }
.skip:focus { transform: translateY(72px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.85em 1.5em; border: 1px solid var(--gold);
  font: 700 0.78rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  position: relative; overflow: hidden; isolation: isolate; transition: color 0.3s, transform 0.2s;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--kente);
  transform: translateY(101%); transition: transform 0.45s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: #000; }
.btn-gold:hover { color: #000; }
.btn-ghost { background: rgba(5, 5, 5, 0.4); color: var(--ink); backdrop-filter: blur(6px); }
.btn-ghost:hover { color: #000; }
.btn-wide { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:disabled::before { display: none; }
.icon-btn {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); font-size: 1.05rem; transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.link-btn { background: none; border: 0; padding: 4px 0; text-decoration: underline; text-underline-offset: 4px; color: var(--mute); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.link-btn:hover { color: var(--gold); }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter);
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.85), rgba(5, 5, 5, 0));
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: flex; gap: 3px; height: 22px; }
.brand-mark i { width: 5px; background: var(--gold); }
.brand-mark i:nth-child(2) { background: var(--green); }
.brand-mark i:nth-child(3) { background: var(--red); }
.brand-word { font: 800 1.2rem/1 var(--display); letter-spacing: 0.02em; }
.brand-word b, .foot-big b { color: var(--gold); }
.nav { display: flex; gap: clamp(14px, 3vw, 40px); }
.nav a { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--mute); padding: 8px 0; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.bag-btn {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 6px 6px 16px;
  background: rgba(5, 5, 5, 0.6); border: 1px solid var(--gold); backdrop-filter: blur(8px);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.bag-btn:hover { background: rgba(242, 183, 5, 0.12); }
.bag-count { min-width: 30px; height: 30px; display: grid; place-items: center; background: var(--gold); color: #000; font-weight: 700; font-size: 0.8rem; }
.bag-count.is-pulse { animation: pulse 0.5s var(--ease-out); }
@keyframes pulse { 40% { transform: scale(1.3) rotate(-8deg); } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-canvas, .hero-fallback, .hero-veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-canvas { z-index: 1; opacity: 0; transition: opacity 1.4s ease; }
.webgl-on .hero-canvas { opacity: 1; }
.webgl-off .hero-canvas { display: none; }
.hero-fallback {
  z-index: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 150px, rgba(5, 5, 5, 0.78) 150px 154px, rgba(193, 18, 31, 0.92) 154px 196px, rgba(5, 5, 5, 0.78) 196px 200px, transparent 200px 300px),
    repeating-linear-gradient(90deg, transparent 0 116px, #050505 116px 120px),
    var(--kente);
}
.hero-veil {
  z-index: 2; pointer-events: none;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(5, 5, 5, 0.82) 22%, rgba(5, 5, 5, 0.25) 55%, rgba(5, 5, 5, 0.45) 100%),
    radial-gradient(120% 90% at 0% 100%, rgba(5, 5, 5, 0.85), transparent 60%);
}
.hero-grid {
  position: absolute; inset: 88px var(--gutter) auto; z-index: 3; display: flex; justify-content: space-between;
  font-size: 0.68rem; letter-spacing: 0.18em; color: var(--ink); pointer-events: none; text-shadow: 0 1px 2px #000, 0 0 12px #000;
}
.hero-copy { position: relative; z-index: 3; padding: 0 var(--gutter) clamp(72px, 12vh, 140px); width: 100%; pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.eyebrow { padding: 8px 12px; background: rgba(5, 5, 5, 0.78); display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.dot { width: 8px; height: 8px; background: var(--red); box-shadow: 0 0 12px var(--red); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.hero-title { margin: 0; font: 800 clamp(3rem, 15vw, 15.5rem)/0.82 var(--display); letter-spacing: -0.055em; text-transform: uppercase; }
.ht-line { display: block; }
.ht-outline { color: var(--gold); text-shadow: 0 0 60px rgba(242, 183, 5, 0.25); padding-left: 0.06em; }
.hero-sub { margin: 22px 0 28px; max-width: 32ch; font-size: clamp(0.95rem, 1.4vw, 1.2rem); color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-hint { position: absolute; right: var(--gutter); bottom: 28px; z-index: 3; margin: 0; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); writing-mode: vertical-rl; }

/* ---------- adinkra marquee ---------- */
.marquee { background: var(--gold); color: #000; overflow: hidden; border-block: 4px solid #000; box-shadow: 0 -6px 0 var(--green), 0 6px 0 var(--red); position: relative; z-index: 2; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-list { display: flex; margin: 0; padding: 0; list-style: none; }
.mq-list li { display: flex; align-items: baseline; gap: 10px; padding: 16px 28px; border-right: 2px solid rgba(0, 0, 0, 0.85); white-space: nowrap; }
.mq-glyph { font-size: 1.1rem; color: var(--red); }
.mq-name { font: 800 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: -0.01em; }
.mq-mean { font-size: 0.78rem; font-style: italic; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: var(--section) var(--gutter); position: relative; }
.sec-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 5vw, 56px); max-width: 1400px; }
.sec-index { margin: 0; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.sec-index::before { content: ''; display: inline-block; width: 36px; height: 2px; margin-right: 12px; vertical-align: middle; background: var(--kente); }
.sec-title { margin: 0; font: 800 clamp(1.9rem, 8.4vw, 8rem)/0.88 var(--display); letter-spacing: -0.045em; text-transform: uppercase; overflow-wrap: break-word; }
.sec-lede { margin: 6px 0 0; max-width: 50ch; color: var(--mute); font-size: 0.9rem; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip-f {
  min-height: 44px; padding: 10px 16px; background: transparent; border: 1px solid var(--line);
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.chip-f sup { margin-left: 6px; font-size: 0.62rem; color: var(--gold); }
.chip-f:hover { border-color: var(--gold); }
.chip-f[aria-pressed='true'] { background: var(--gold); border-color: var(--gold); color: #000; }
.chip-f[aria-pressed='true'] sup { color: var(--red); }

/* ---------- 3D ring ---------- */
.collection { overflow: hidden; }
.ring-stage {
  position: relative; height: calc(var(--ch) + 160px); perspective: 1700px; perspective-origin: 50% 40%;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; margin-inline: calc(var(--gutter) * -1);
}
.ring-stage::before {
  content: ''; position: absolute; left: 50%; bottom: 18px; width: min(900px, 90%); height: 60px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(242, 183, 5, 0.22), transparent); pointer-events: none;
}
.ring-stage.is-dragging { cursor: grabbing; }
.ring-stage:focus-visible { outline-offset: -4px; }
.ring {
  position: absolute; left: 50%; top: 50%; width: var(--cw); height: var(--ch);
  margin: calc(var(--ch) / -2) 0 0 calc(var(--cw) / -2); padding: 0; list-style: none;
  transform-style: preserve-3d; opacity: 0; transition: opacity 0.5s ease;
}
.ring.is-in { opacity: 1; }
.card { position: absolute; inset: 0; transform-style: preserve-3d; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card.is-back { pointer-events: none; }
.card-btn { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; text-align: left; perspective: 900px; }
.card-btn:focus-visible { outline: none; }
.card-btn:focus-visible .card-tilt { outline: 2px solid var(--gold); outline-offset: 6px; }
.card-tilt {
  position: relative; display: flex; flex-direction: column; height: 100%; background: var(--bg-2);
  transition: transform 0.4s var(--ease-out); transform-style: preserve-3d; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
}
.card-tilt.is-tilt { transition-duration: 0.08s; }
.card-img { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: #151513; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.card-btn:hover .card-img img { transform: scale(1.06); }
.card-meta { display: grid; gap: 2px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.card-idx { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.card-name { font: 700 1.08rem/1.1 var(--display); letter-spacing: -0.01em; }
.card-twi { font-size: 0.72rem; font-style: italic; color: var(--mute); }
.card-price { margin-top: 4px; font-size: 0.82rem; font-weight: 700; color: var(--gold); }
.card-holo {
  position: absolute; inset: -1px; z-index: 2; padding: 1.5px; overflow: hidden; pointer-events: none; opacity: 0.55; transition: opacity 0.3s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.holo-spin {
  position: absolute; left: 50%; top: 50%; width: 250%; aspect-ratio: 1; margin: -125% 0 0 -125%;
  background: conic-gradient(from 0deg, var(--gold), #fff3c4, var(--green), var(--gold-hi), var(--red), #fff3c4, var(--gold));
  transform: rotate(var(--spin, 0deg)); transition: transform 0.25s linear;
}
.card-btn:hover .card-holo, .card-btn:focus-visible .card-holo, .is-tilt .card-holo { opacity: 1; }
.card-glare { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 0.3s; mix-blend-mode: soft-light; }
.card-glare::before {
  content: ''; position: absolute; left: -30%; top: -30%; width: 160%; height: 160%;
  background: radial-gradient(closest-side, rgba(255, 246, 210, 0.85), transparent 70%);
  transform: translate(var(--gx, 0%), var(--gy, 0%));
}
.is-tilt .card-glare { opacity: 1; }

.ring-bar { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 8px; }
.ring-now { display: grid; justify-items: center; gap: 2px; min-width: min(360px, 60vw); margin: 0; text-align: center; }
.rn-idx { font-size: 0.68rem; letter-spacing: 0.2em; color: var(--mute); }
.rn-name { font: 700 clamp(1.1rem, 2.2vw, 1.5rem)/1.1 var(--display); }
.rn-price { font-size: 0.82rem; color: var(--gold); }

/* flat fallback: mobile + reduced motion */
.ring-stage.is-flat {
  height: auto; perspective: none; cursor: auto; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  padding-block: 12px 18px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; touch-action: auto;
}
.ring-stage.is-flat::before { display: none; }
.is-flat .ring {
  position: static; display: flex; gap: 14px; width: max-content; height: auto; margin: 0;
  padding-inline: max(var(--gutter), calc(50vw - var(--cw) / 2)); transform: none !important; opacity: 1;
}
.is-flat .card { position: relative; inset: auto; flex: 0 0 var(--cw); height: var(--ch); scroll-snap-align: center; opacity: 1 !important; }

/* ---------- name weaver ---------- */
.weaver { background: linear-gradient(180deg, var(--bg), #08100c 60%, var(--bg)); }
.weaver-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 80px); align-items: start; max-width: 1400px; }
.loom-frame { position: relative; margin: 0; padding: 12px; border: 1px solid var(--line); background: #000; }
.loom-frame::before, .loom-frame::after { content: ''; position: absolute; left: -1px; right: -1px; height: 10px; background: var(--kente); }
.loom-frame::before { top: -11px; }
.loom-frame::after { bottom: -11px; }
.weave-canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; background: #111; }
.loom-cap { display: flex; justify-content: space-between; gap: 10px; padding-top: 12px; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.loom-cap span:first-child { color: var(--gold); overflow-wrap: anywhere; }
.dna { display: grid; gap: 16px; align-content: start; }
.field-label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.name-field { position: relative; }
.name-field input {
  width: 100%; padding: 8px 0 12px; background: transparent; border: 0; border-bottom: 2px solid var(--gold); border-radius: 0;
  font: 800 clamp(1.7rem, 3.4vw, 2.9rem)/1.1 var(--display); letter-spacing: -0.03em; text-transform: uppercase; caret-color: var(--red);
}
.name-field input::placeholder { color: rgba(241, 233, 218, 0.25); }
.name-field input:focus { outline: none; }
.name-field input:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.caret { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--kente); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.name-field input:focus ~ .caret { transform: scaleX(1); }
.hint { margin: -6px 0 0; font-size: 0.78rem; color: var(--mute); }
.dna-table { margin: 0; display: grid; border-top: 1px solid var(--line); }
.dna-table div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dna-table dt { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); }
.dna-table dd { margin: 0; font-size: 0.86rem; overflow-wrap: anywhere; }
#dnaSeed { color: var(--gold); font-weight: 700; }
#dnaMotif { font: 700 1.2rem/1.2 var(--display); }
.dna-meaning { margin: 0; font-size: 0.86rem; font-style: italic; color: var(--ink); max-width: 46ch; }
.swatches { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.swatches li { display: grid; grid-template-columns: 34px minmax(0, auto) 1fr; align-items: center; gap: 12px; font-size: 0.78rem; }
.sw { width: 34px; height: 22px; border: 1px solid var(--line); }
.sw-name { font-weight: 700; white-space: nowrap; }
.sw-mean { color: var(--mute); font-size: 0.72rem; }

/* ---------- lookbook ---------- */
.look-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); margin: 0; padding: 0 0 4rem; list-style: none; }
.look figure { margin: 0; }
.look img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; filter: grayscale(0.35) contrast(1.05); transition: filter 0.5s, transform 0.6s var(--ease-out); }
.look figure:hover img { filter: none; transform: scale(1.02); }
.look figcaption { display: flex; gap: 10px; padding-top: 10px; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.look figcaption span { color: var(--gold); }
.look-1, .look-3 { transform: translateY(3.5rem); }
.look-2 { transform: translateY(1.5rem); }

/* ---------- footer ---------- */
.foot { position: relative; background: #000; border-top: 1px solid var(--line); }
.foot-weave { height: 18px; background: repeating-linear-gradient(0deg, transparent 0 8px, rgba(0, 0, 0, 0.55) 8px 10px), var(--kente); }
.foot-inner { padding: clamp(40px, 6vw, 80px) var(--gutter) 32px; }
.foot-big { margin: 0 0 clamp(28px, 4vw, 56px); font: 800 clamp(3rem, 14vw, 13rem)/0.85 var(--display); letter-spacing: -0.05em; overflow-wrap: anywhere; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.foot-label { margin: 0 0 8px; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.foot-cols address, .foot-cols p { margin: 0; font-style: normal; font-size: 0.86rem; }
.foot-cols a { font-size: 0.95rem; text-underline-offset: 4px; }
.foot-cols a:hover { color: var(--gold); }
.foot-tag { margin: 40px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.7rem; color: var(--mute); letter-spacing: 0.06em; }

/* ---------- product overlay ---------- */
.pdp {
  position: fixed; inset: 0; z-index: 80; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  background: var(--bg); opacity: 0; transition: opacity 0.4s ease;
}
.pdp.is-open { opacity: 1; }
.pdp-media { position: relative; height: 100vh; height: 100dvh; overflow: hidden; background: #0f0f0d; }
.loom-img { position: absolute; inset: 0; }
.strip { position: absolute; inset: 0; transform: translateY(-104%); transition: transform 0.95s var(--ease); transition-delay: calc(var(--i) * 75ms); }
.strip:nth-child(even) { transform: translateY(104%); }
.is-revealed .strip { transform: none; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.weft-pass { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold); box-shadow: 0 0 18px var(--gold); opacity: 0; }
.is-revealed .weft-pass { animation: weft 1.3s 0.55s var(--ease) both; }
@keyframes weft { 0% { opacity: 1; transform: translateY(0); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(100vh); } }
.pdp-info {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 10px;
  height: 100vh; height: 100dvh; overflow-y: auto; padding: 80px clamp(20px, 5vw, 80px) 40px;
  background: repeating-linear-gradient(90deg, rgba(242, 183, 5, 0.035) 0 1px, transparent 1px 28px), var(--bg);
}
.pdp-info > :not(.pdp-close) { opacity: 0; transform: translateY(18px); transition: opacity 0.6s, transform 0.7s var(--ease-out); }
.is-revealed .pdp-info > :not(.pdp-close) { opacity: 1; transform: none; }
.is-revealed .pdp-info > :nth-child(3) { transition-delay: 0.08s; }
.is-revealed .pdp-info > :nth-child(4) { transition-delay: 0.14s; }
.is-revealed .pdp-info > :nth-child(5) { transition-delay: 0.2s; }
.is-revealed .pdp-info > :nth-child(n + 6) { transition-delay: 0.26s; }
.pdp-close { position: absolute; top: 20px; right: 20px; background: var(--bg); }
.pdp-meta { margin: 0; font-size: 0.7rem; letter-spacing: 0.2em; color: var(--gold); }
.pdp-name { margin: 0; font: 800 clamp(1.9rem, 3.9vw, 4rem)/0.95 var(--display); letter-spacing: -0.04em; text-transform: uppercase; overflow-wrap: break-word; }
.pdp-twi { margin: 0; font-style: italic; color: var(--gold); }
.pdp-story { margin: 6px 0 0; max-width: 42ch; color: var(--mute); }
.pdp-price { margin: 4px 0 6px; font: 700 clamp(1.5rem, 2.6vw, 2.1rem)/1 var(--display); }
.pdp-form { display: grid; gap: 16px; max-width: 460px; }
.opt { margin: 0; padding: 0; border: 0; min-width: 0; }
.opt legend, .legend { display: block; margin-bottom: 8px; padding: 0; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-grid; place-items: center; min-width: 48px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); font-size: 0.78rem; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.chip input:hover + span { border-color: var(--gold); }
.chip input:checked + span { background: var(--gold); border-color: var(--gold); color: #000; font-weight: 700; }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qty-row .legend { margin: 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty-btn { width: 44px; height: 44px; background: none; border: 0; font-size: 1.1rem; }
.qty-btn:hover { color: var(--gold); }
.qty output { min-width: 36px; text-align: center; font-weight: 700; }
.qty.sm .qty-btn { width: 36px; height: 36px; }
.qty.sm output { min-width: 26px; font-size: 0.85rem; }
.pdp-tobag { justify-self: start; color: var(--gold); }

/* ---------- bag: the loom ---------- */
.scrim { position: fixed; inset: 0; z-index: 85; background: rgba(0, 0, 0, 0.66); opacity: 0; transition: opacity 0.4s; }
.scrim.is-open { opacity: 1; }
.bag {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(460px, 100%);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 0 22px 26px;
  background: repeating-linear-gradient(90deg, rgba(242, 183, 5, 0.06) 0 1px, transparent 1px 24px), #0a0a09;
  border-left: 1px solid rgba(242, 183, 5, 0.35); transform: translateX(102%); transition: transform 0.5s var(--ease);
}
.bag.is-open { transform: none; }
.bag-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 18px 0 14px; background: #0a0a09; }
.bag-head h2 { margin: 0; font: 800 1.7rem/1 var(--display); letter-spacing: -0.03em; text-transform: uppercase; }
.bag-n { font: 400 0.9rem var(--mono); color: var(--gold); }
.free { padding: 6px 0 18px; border-bottom: 1px solid var(--line); }
.free-text { margin: 0 0 10px; font-size: 0.78rem; }
.free-strip { position: relative; height: 16px; background: repeating-linear-gradient(90deg, rgba(241, 233, 218, 0.22) 0 1px, transparent 1px 6px); border: 1px solid var(--line); }
.free-fill {
  position: absolute; inset: 0; clip-path: inset(0 100% 0 0); transition: clip-path 0.8s var(--ease);
  background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(0, 0, 0, 0.35) 5px 6px), var(--kente);
}
.is-free .free-text { color: var(--gold); }
.bag-view { display: flex; flex-direction: column; gap: 18px; padding-top: 6px; }
.threads { margin: 0; padding: 0; list-style: none; }
.thread { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; isolation: isolate; }
.thread::before {
  content: ''; position: absolute; left: -22px; right: -22px; top: 50%; height: 2px; z-index: -1;
  background: linear-gradient(90deg, var(--gold), var(--red) 50%, var(--green)); opacity: 0.55;
}
.thread img { width: 64px; height: 80px; object-fit: cover; border: 1px solid var(--line); }
.knot { position: absolute; left: -14px; top: calc(50% - 5px); width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); }
.th-info { min-width: 0; padding: 6px 10px; background: #0a0a09; }
.th-name { margin: 0; font: 700 0.98rem/1.2 var(--display); }
.th-opt { margin: 2px 0 6px; font-size: 0.7rem; color: var(--mute); }
.th-info .qty { background: var(--bg); }
.th-end { display: grid; justify-items: end; gap: 4px; padding: 6px 0 6px 8px; background: #0a0a09; }
.th-price { margin: 0; font-size: 0.82rem; font-weight: 700; color: var(--gold); white-space: nowrap; }
.bag-empty { display: grid; justify-items: start; gap: 14px; padding: 24px 0; }
.bag-empty p { margin: 0; font: 800 1.6rem/1.1 var(--display); text-transform: uppercase; }
.totals { margin: 0; display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.totals div { display: flex; justify-content: space-between; font-size: 0.85rem; }
.totals dt { color: var(--mute); }
.totals dd { margin: 0; }
.totals .grand { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line); font: 800 1.3rem/1 var(--display); }
.totals .grand dt { color: var(--ink); }
.totals .grand dd { color: var(--gold); }

.checkout { display: grid; gap: 14px; padding-top: 14px; }
.back { justify-self: start; padding: 6px 0; background: none; border: 0; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.back:hover { color: var(--gold); }
.co-total { margin: 0; display: flex; justify-content: space-between; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.co-total strong { font: 800 1.3rem/1 var(--display); color: var(--gold); letter-spacing: 0; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); }
.field input, .field textarea { width: 100%; padding: 12px 14px; background: rgba(0, 0, 0, 0.6); border: 1px solid var(--line); border-radius: 0; font-size: 0.95rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.field input[aria-invalid='true'] { border-color: var(--err); }
.err { margin: 0; min-height: 0; font-size: 0.74rem; color: var(--err); }
.err:empty { display: none; }
.momo { margin: 0; padding: 12px 14px; border-left: 4px solid var(--green); background: rgba(11, 110, 79, 0.14); font-size: 0.78rem; }
.co-done { margin: 0; font-size: 0.8rem; color: var(--gold); }
.co-done:empty { display: none; }

/* ---------- shuttle cursor ---------- */
.trail, .shuttle { display: none; }
.has-shuttle .trail { display: block; position: fixed; inset: 0; width: 100%; height: 100%; z-index: 120; pointer-events: none; }
.has-shuttle .shuttle { display: block; position: fixed; left: -17px; top: -6px; z-index: 121; pointer-events: none; transition: opacity 0.2s; will-change: transform; }
.shuttle svg { display: block; transition: transform 0.25s var(--ease-out); filter: drop-shadow(0 0 6px rgba(242, 183, 5, 0.6)); }
.shuttle.is-hot svg { transform: scale(1.6); }
html.has-shuttle, html.has-shuttle * { cursor: none !important; }
html.has-shuttle input, html.has-shuttle textarea { cursor: text !important; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .weaver-grid { grid-template-columns: 1fr; }
  .loom-frame { max-width: 640px; }
  .look-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .look-3, .look-4 { display: none; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --cw: min(68vw, 280px); }
  .nav { display: none; }
  .hero-grid span:nth-child(n + 3) { display: none; }
  .hero-hint { display: none; }
  .pdp { grid-template-columns: 1fr; grid-template-rows: auto auto; overflow-y: auto; overscroll-behavior: contain; }
  .pdp-media { height: 52vh; height: 52svh; }
  .pdp-info { height: auto; overflow: visible; padding: 28px var(--gutter) 40px; justify-content: flex-start; }
  .pdp-close { position: fixed; top: 14px; right: 14px; z-index: 3; }
  .look-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 2rem; }
  .look-2 { display: none; }
  .look-1 { transform: translateY(2rem); }
}
@media (max-width: 420px) {
  .bag-label { display: none; }
  .brand-word { font-size: 1.05rem; }
  .foot-cols { grid-template-columns: 1fr; }
  .mq-name { font-size: 1.1rem; }
  .swatches li { grid-template-columns: 34px 1fr; }
  .sw-mean { grid-column: 2; margin-top: -6px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .marquee-track { animation: none; width: auto; }
  .mq-list { flex-wrap: wrap; justify-content: center; }
  .mq-list[aria-hidden='true'] { display: none; }
  .dot { animation: none; }
}
