/* =====================================================================
   JONI THRIFT STORE
   ===================================================================== */

:root {
  --ink: #0e0e0d;
  --ink-2: #1b1a18;
  --paper: #efe9dd;
  --paper-2: #e4dccb;
  --paper-3: #d6ccb6;
  --tag: #ff5a1f;
  --wa: #25d366;
  --wa-ink: #052e16;

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  --f-hand: "Permanent Marker", "Comic Sans MS", cursive;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --pad: clamp(16px, 4.4vw, 48px);
  --header-h: 64px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; scrollbar-gutter: stable; }
html.is-locked { overflow: hidden; }
body {
  --bg: var(--ink); --fg: var(--paper);
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.4;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .8s var(--ease-out), color .8s var(--ease-out);
}
body[data-theme="light"] { --bg: var(--paper); --fg: var(--ink); }
body[data-theme="tag"]   { --bg: var(--tag);   --fg: var(--ink); }
body { --muted: color-mix(in srgb, var(--fg) 62%, transparent); --line: color-mix(in srgb, var(--fg) 16%, transparent); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
:focus-visible { outline: 2.5px solid var(--tag); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--tag); color: var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: 400;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(5) infinite;
}
@media (max-width: 899px), (pointer: coarse) { body::after { animation: none; } } /* save battery on phones */
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: var(--h);
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  font-stretch: 92%;
  letter-spacing: .005em;
  white-space: nowrap;
  overflow: hidden;
  transition: transform .45s var(--ease-spring), background-color .3s, color .3s, box-shadow .3s;
  user-select: none;
}
.btn:active { transform: scale(.95); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn .arrow { transition: transform .4s var(--ease-out); }
.btn--sm { --h: 40px; padding: 0 15px; font-size: 14px; gap: 7px; }
.btn--sm svg { width: 17px; height: 17px; }
.btn--block { width: 100%; }
.btn--wa { background: var(--wa); color: var(--wa-ink); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--shine::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 48%, transparent 66%);
  transform: translateX(-130%);
  animation: shine 5s var(--ease-io) 2.5s infinite;
}
@keyframes shine { 0%, 62% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@media (hover: hover) {
  .btn:hover .arrow { transform: translateY(3px); }
  .btn--wa:hover { background: #45e283; box-shadow: 0 10px 30px -10px rgba(37,211,102,.7); }
  .btn--paper:hover { background: #fff; }
}

/* ---------- curtain (intro) ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  background: var(--tag);
  color: var(--ink);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-io);
}
.no-curtain .curtain { display: none; }
.curtain__logo {
  width: clamp(104px, 30vw, 170px);
  height: auto;
  margin-bottom: 14px;
  border-radius: 50%;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.45);
  opacity: 0;
  transform: scale(.2) rotate(-200deg);
}
.curtain.is-play .curtain__logo { animation: logoIn .8s var(--ease-spring) forwards; }
.curtain__word { display: flex; font-weight: 900; font-stretch: 125%; font-size: clamp(84px, 26vw, 260px); line-height: .8; letter-spacing: -.045em; }
.curtain__word span { display: inline-block; opacity: 0; transform: scale(2.4) rotate(-14deg); }
.curtain.is-play .curtain__word span { animation: stamp .55s var(--ease-out) calc(var(--i) * 95ms + .35s) forwards; }
.curtain__sub { font-family: var(--f-hand); font-size: clamp(24px, 6.5vw, 44px); transform: rotate(-5deg) translateY(10px); opacity: 0; }
.curtain.is-play .curtain__sub { animation: pop .5s var(--ease-spring) .85s forwards; }
@keyframes logoIn { 60% { opacity: 1; } to { opacity: 1; transform: none; } }
.curtain.is-done { clip-path: inset(0 0 100% 0); }
@keyframes stamp { 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes pop { to { opacity: 1; transform: rotate(-5deg); } }

/* ---------- header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(env(safe-area-inset-top) + 12px) var(--pad) 12px;
  transition: transform .55s var(--ease-out), background-color .5s, box-shadow .5s;
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-110%); }
.logo { display: flex; align-items: center; gap: 8px; }
.logo__badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--fg) 14%, transparent), 0 6px 14px -6px rgba(0,0,0,.5);
  transition: transform .7s var(--ease-spring);
}
@media (hover: hover) { .logo:hover .logo__badge { transform: rotate(-14deg) scale(1.08); } }
.logo__word { font-size: 23px; font-weight: 900; font-stretch: 125%; letter-spacing: -.03em; line-height: 1; }
.logo__sub { font-family: var(--f-mono); font-size: 8.5px; font-weight: 600; letter-spacing: .12em; line-height: 1.15; text-transform: uppercase; opacity: .65; }
.header__nav { display: flex; align-items: center; gap: 4px; }
.header__link { font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 10px 10px; }
.header__link sup { color: var(--tag); font-size: 9px; margin-left: 1px; }
body[data-theme="tag"] .header__link sup { color: var(--ink); }
@media (max-width: 420px) {
  .logo__sub { display: none; }
  .header__link { padding: 10px 8px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 74px) var(--pad) 30px;
  overflow: hidden;
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 46%;
  width: 150vmax;
  height: 150vmax;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 90, 31, .17), rgba(255, 90, 31, .05) 45%, transparent 70%);
  pointer-events: none;
}
.hero__meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10.5px; }
.hero__live { display: inline-flex; align-items: center; gap: 7px; color: var(--fg); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 rgba(37,211,102,.7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

.hero__stage {
  --joni: 34vw;
  --deck-w: clamp(200px, calc((100svh - 400px) / 1.36), min(74vw, 340px)); /* refined in JS */
  --deck-top: calc(var(--joni) * .6);
  position: relative;
  flex: 1 0 auto;
  margin-top: 12px;
  min-height: calc(var(--deck-top) + var(--deck-w) * 1.36 + 44px);
}
.hero__title, .hero__outline {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.hero__solid, .hero__outline {
  display: flex;
  font-size: var(--joni);
  font-weight: 900;
  font-stretch: 125%;
  line-height: .8;
  letter-spacing: -.045em;
  white-space: nowrap;
  will-change: transform;
}
.hero__solid { color: var(--paper); clip-path: inset(-30% -10% 0 -10%); }
.hero__outline {
  z-index: 3;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--paper);
  mix-blend-mode: difference;
  clip-path: inset(-30% -10% 0 -10%);
}
.hero .ch { display: inline-block; }
.js .hero .ch { transform: translateY(105%); }
.is-ready .hero .ch { transform: none; transition: transform 1.2s var(--ease-out) calc(var(--i) * 75ms + 80ms); }

.deck-wrap {
  position: absolute;
  z-index: 2;
  left: 0; right: 0;
  top: var(--deck-top);
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}
.deck-hint {
  position: relative;
  z-index: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: var(--deck-w);
  margin-top: 26px;
  color: var(--muted);
  font-size: 9.5px;
  white-space: nowrap;
}
@media (max-width: 380px) { .deck-hint__extra { display: none; } }
.deck-hint i { font-style: normal; display: inline-block; color: var(--tag); }
.deck-hint__swipe i:first-child { animation: nudgeL 1.6s var(--ease-io) infinite alternate; }
.deck-hint__swipe i:last-child { animation: nudgeR 1.6s var(--ease-io) infinite alternate; }
.deck-hint__count b { color: var(--fg); font-weight: 700; }
@keyframes nudgeL { from { transform: translateX(0); } to { transform: translateX(-4px); } }
@keyframes nudgeR { from { transform: translateX(0); } to { transform: translateX(4px); } }
.js .deck-hint { opacity: 0; }
.is-ready .deck-hint { opacity: 1; transition: opacity .8s var(--ease-out) 1.1s; }
.deck {
  position: relative;
  width: var(--deck-w);
  height: calc(var(--deck-w) * 1.33);
  touch-action: pan-y;
}
.deck__card {
  --x: 0; --y: 0; --r: 0; --s: 1;
  position: absolute;
  inset: 0 0 auto;
  display: block;
  padding: 7px 7px 0;
  background: #f6f2ea;
  border-radius: 5px;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 34px 60px -26px rgba(0,0,0,.75), 0 6px 14px -6px rgba(0,0,0,.4);
  transform: translate3d(calc(var(--x) * 1px + var(--dx, 0px)), calc(var(--y) * 1px + var(--dy, 0px)), 0) rotate(calc(var(--r) * 1deg + var(--dr, 0deg))) scale(var(--s));
  transition: transform .9s var(--ease-out), box-shadow .4s;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  will-change: transform;
}
.deck__card.is-drag { transition: none; cursor: grabbing; }
.deck__card.is-fly { transition: transform .5s cubic-bezier(.3, .6, .4, 1); }
.deck__card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; pointer-events: none; background: var(--paper-3); }
.deck__cap { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 3px 9px; color: var(--ink); }
.deck__cap span { font-family: var(--f-hand); font-size: clamp(14px, 4.2vw, 19px); line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck__cap small { font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; opacity: .5; }

/* logo "sticker" slapped on the deck */
.badge {
  position: absolute;
  z-index: 25;
  top: -30px;
  left: calc(50% + var(--deck-w) / 2 - 58px);
  width: clamp(76px, 23vw, 104px);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--paper), 0 16px 30px -10px rgba(0,0,0,.7);
  opacity: 0;
  transform: scale(.3) rotate(-160deg);
  transition: transform 1.1s var(--ease-spring) 1.05s, opacity .4s 1.05s;
  pointer-events: none;
}
.badge img { width: 100%; height: 100%; border-radius: 50%; animation: wobble 5s ease-in-out infinite; }
.is-ready .badge { opacity: 1; transform: rotate(12deg); }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-10deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__bottom {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 4px;
  will-change: transform, opacity;
}
.hero__store-wrap { width: 100%; }
.hero__store {
  width: max-content;
  font-size: 18vw;
  font-weight: 900;
  font-stretch: 62%;
  line-height: .86;
  letter-spacing: -.005em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__store-b { color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.hero__lede { max-width: 36ch; color: var(--muted); font-size: 15px; line-height: 1.45; font-stretch: 96%; }
.hero__ctas { display: flex; gap: 10px; margin-top: 14px; }
.hero__ctas .btn { flex: 1 1 0; min-width: 0; --h: 50px; padding: 0 14px; }
@media (max-width: 899px) {
  .hero { padding-bottom: 22px; }
  .hero__ctas .btn--paper { flex-grow: 1.15; }
  /* short phones (browser bars showing): drop the meta line, tighten spacing */
  .hero.is-short { padding-top: calc(env(safe-area-inset-top) + 70px); padding-bottom: 16px; }
  .hero.is-short .hero__meta { display: none; }
  .hero.is-short .hero__stage { margin-top: 0; min-height: calc(var(--deck-top) + var(--deck-w) * 1.36 + 36px); }
  .hero.is-short .deck-hint { margin-top: 18px; }
  .hero.is-short .hero__ctas { margin-top: 10px; }
}

.js .hero__meta, .js .hero__bottom > * { opacity: 0; transform: translateY(18px); }
.is-ready .hero__meta, .is-ready .hero__bottom > * { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
.is-ready .hero__meta { transition-delay: .2s; }
.is-ready .hero__bottom > :nth-child(1) { transition-delay: .55s; }
.is-ready .hero__bottom > :nth-child(2) { transition-delay: .7s; }

@media (min-width: 900px) {
  .hero { padding-bottom: 36px; }
  .hero__stage { --joni: 22vw; --deck-w: min(320px, 40vh); --deck-top: calc(var(--joni) * .5); }
  .hero__ctas .btn { flex: 0 1 auto; padding: 0 24px; --h: 52px; }
  .hero__bottom { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 6vw; }
  .hero__ctas { margin-top: 20px; }
  .hero__lede { font-size: 17px; }
}

/* ---------- tapes ---------- */
.tapes { position: relative; z-index: 6; height: 150px; margin: -36px 0 0; pointer-events: none; overflow: hidden; }
.tape { position: absolute; left: -6%; right: -6%; top: 50%; padding: 13px 0 12px; overflow: hidden; white-space: nowrap; }
.tape--a { background: var(--tag); color: var(--ink); transform: translateY(-50%) rotate(-4.5deg); box-shadow: 0 16px 30px -18px rgba(0,0,0,.7); }
.tape--b { background: var(--ink-2); color: var(--paper); transform: translateY(-50%) rotate(3deg); box-shadow: 0 0 0 1px rgba(239,233,221,.08); }
.tape__track { display: inline-flex; will-change: transform; }
.tape__group { display: inline-flex; align-items: center; flex: none; }
.tape__group span { padding: 0 18px; font-size: clamp(18px, 5vw, 30px); font-weight: 900; font-stretch: 112%; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; }
.tape__group svg { width: 20px; height: 20px; flex: none; }
.tape__group i { font-style: normal; font-weight: 900; font-size: clamp(18px, 5vw, 30px); line-height: 1; }

/* ---------- shared section bits ---------- */
.eyebrow { color: var(--muted); }
.h2 {
  font-size: clamp(46px, 13.2vw, 150px);
  font-weight: 900;
  font-stretch: 72%;
  line-height: .86;
  letter-spacing: -.012em;
  text-transform: uppercase;
}
.h2 .line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.h2 .line > span { display: block; }
.h2 em { font-style: normal; color: var(--tag); }
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out) var(--d, 0ms), transform 1.1s var(--ease-out) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .h2[data-reveal] { opacity: 1; transform: none; }
.js .h2[data-reveal] .line > span { transform: translateY(108%); transition: transform 1.1s var(--ease-out); }
.js .h2[data-reveal] .line:nth-child(2) > span { transition-delay: .09s; }
.js .h2[data-reveal] .line:nth-child(3) > span { transition-delay: .18s; }
.js .h2[data-reveal].is-in .line > span { transform: none; }

/* ---------- rail ---------- */
.rail { position: relative; padding: 70px var(--pad) 60px; }
.rail__head { display: grid; gap: 18px; margin-bottom: 30px; }
.rail__note { max-width: 40ch; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.rail__note b { color: var(--fg); }
@media (min-width: 900px) {
  .rail__head { grid-template-columns: 1fr minmax(0, 360px); align-items: end; column-gap: 6vw; }
  .rail__head .eyebrow { grid-column: 1 / -1; }
}

.filters {
  position: sticky;
  top: calc(env(safe-area-inset-top) + var(--header-h) + 6px);
  z-index: 30;
  display: flex;
  gap: 2px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 34px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow-x: auto;
  scrollbar-width: none;
  transition: top .55s var(--ease-out);
}
.filters::-webkit-scrollbar { display: none; }
body.header-hidden .filters { top: calc(env(safe-area-inset-top) + 10px); }
.chip { position: relative; z-index: 1; height: 38px; padding: 0 15px; border-radius: 999px; font-size: 14px; font-weight: 800; font-stretch: 88%; white-space: nowrap; transition: color .4s var(--ease-out); }
.chip sup { font-family: var(--f-mono); font-size: 9.5px; font-weight: 600; margin-left: 2px; opacity: .55; }
.chip.is-active { color: var(--bg); }
.filters__pill {
  position: absolute;
  z-index: 0;
  top: 5px; left: 0;
  height: 38px;
  width: 60px;
  border-radius: 999px;
  background: var(--fg);
  transition: transform .55s var(--ease-spring), width .55s var(--ease-spring);
}

.grid {
  --gap: 14px;
  --row-gap: 30px;
  --sway: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: var(--row-gap) var(--gap);
  transition: opacity .28s, transform .28s var(--ease-out);
}
.grid.is-switching { opacity: 0; transform: translateY(14px); }
@media (min-width: 1024px) {
  .grid { --gap: 26px; --row-gap: 54px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.slot { position: relative; min-width: 0; }
.slot[hidden] { display: none !important; }
/* the rail rod: segments join up across each row */
.slot::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 2px;
  left: calc(var(--gap) / -2 - 1px);
  right: calc(var(--gap) / -2 - 1px);
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(180deg, #d9d3c7 0%, #a49c8e 45%, #6e675c 100%);
  box-shadow: 0 3px 4px -1px rgba(14, 14, 13, .25);
}
.slot--featured { grid-column: span 2; grid-row: span 2; }
.grid.is-filtered .slot--featured { grid-column: auto; grid-row: auto; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 30px;
  transform-origin: 50% 3px;
  rotate: calc(var(--sway) * var(--k, 1) * 1deg);
}
.js .card { opacity: 0; }
.js .card.is-in { animation: hangIn 1.5s var(--d, 0ms) both; }
@keyframes hangIn {
  0%   { opacity: 0; transform: translateY(-36px) rotate(-15deg); animation-timing-function: cubic-bezier(.2, .7, .4, 1); }
  14%  { opacity: 1; }
  32%  { transform: translateY(0) rotate(9deg); animation-timing-function: ease-in-out; }
  50%  { transform: rotate(-5deg); animation-timing-function: ease-in-out; }
  66%  { transform: rotate(2.6deg); animation-timing-function: ease-in-out; }
  80%  { transform: rotate(-1.2deg); animation-timing-function: ease-in-out; }
  91%  { transform: rotate(.45deg); animation-timing-function: ease-in-out; }
  100% { opacity: 1; transform: none; }
}
.card__hook {
  position: absolute;
  z-index: 3;
  top: -3px;
  left: 50%;
  width: 18px;
  height: 20px;
  margin-left: -9px;
  color: #3a3631;
}
.card__shoulders {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 14%;
  width: 72%;
  height: 16px;
  overflow: visible;
}
.card__shoulders path { fill: none; stroke: #3a3631; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: 0 22px 34px -22px rgba(14, 14, 13, .7);
  text-align: left;
}
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), filter .6s; }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18), transparent 30%); pointer-events: none; }
@media (hover: hover) {
  .card__media:hover img { transform: scale(1.06); }
  .card__media:hover .tag-wrap { animation-duration: .9s; }
}
@media (min-width: 1024px) {
  .slot--featured .card__media { aspect-ratio: auto; flex: 1 1 auto; min-height: 420px; }
}
.card__pick {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 12px;
  padding: 7px 12px 6px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-hand);
  font-size: 15px;
  line-height: 1;
  transform: rotate(-4deg);
  box-shadow: 0 8px 18px -8px rgba(0,0,0,.6);
}

.tag-wrap {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  transform-origin: 50% 4px;
  animation: tagSway 3.4s ease-in-out infinite alternate;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.35));
}
.tag-wrap::before { /* string */
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 1.5px;
  height: 18px;
  background: rgba(239, 233, 221, .9);
  transform: rotate(-18deg);
  transform-origin: bottom;
}
@keyframes tagSway { from { transform: rotate(-7deg); } to { transform: rotate(6deg); } }
.tag {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 46px;
  padding: 15px 7px 7px;
  background: var(--tag);
  color: var(--ink);
  border-radius: 3px 3px 6px 6px;
  clip-path: polygon(50% 0, 100% 16%, 100% 100%, 0 100%, 0 16%);
}
.tag::before { content: ""; position: absolute; top: 6px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: rgba(14,14,13,.55); }
.tag__no { font-family: var(--f-mono); font-size: 8.5px; font-weight: 700; letter-spacing: .04em; }
.tag__price { margin-top: 2px; font-family: var(--f-hand); font-size: 15px; line-height: 1; }

.card__info { display: grid; gap: 5px; padding: 14px 2px 12px; }
.card__meta { font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__name { font-size: 16px; font-weight: 800; font-stretch: 84%; line-height: 1.05; letter-spacing: -.005em; text-wrap: balance; }
.card__price { font-family: var(--f-hand); font-size: 14.5px; line-height: 1.1; }
.card__cta { --h: 44px; margin-top: auto; font-size: 14.5px; padding: 0 12px; }
.slot--featured .card__name { font-size: clamp(20px, 5.4vw, 30px); }
@media (min-width: 1024px) {
  .card__name { font-size: 19px; }
  .card__meta { font-size: 10.5px; }
  .card__cta { --h: 48px; }
}

/* sold state */
.card.is-sold .card__media img { filter: grayscale(1) contrast(.9) brightness(.9); }
.stamp {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  padding: 6px 16px; border: 4px solid var(--tag); border-radius: 8px;
  color: var(--tag); font-weight: 900; font-stretch: 125%; font-size: 30px; text-transform: uppercase;
  transform: translate(-50%, -50%) rotate(-14deg);
  background: rgba(14,14,13,.35);
}

/* flash when arriving from a shared link */
.slot.is-flash .card__media { animation: flash 1.6s var(--ease-out); }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px var(--tag), 0 22px 34px -22px rgba(14,14,13,.7); } 100% { box-shadow: 0 0 0 0 rgba(255,90,31,0), 0 22px 34px -22px rgba(14,14,13,.7); } }

/* ---------- how to cop ---------- */
.how { padding: 50px var(--pad) 40px; }
.how .h2 { margin-top: 18px; }
.steps { display: grid; gap: 18px; margin-top: 42px; padding-bottom: 12vh; }
.step {
  position: sticky;
  top: calc(env(safe-area-inset-top) + 86px + var(--i) * 16px);
  min-height: 250px;
  display: grid;
  align-content: space-between;
  gap: 28px;
  padding: 24px 24px 26px;
  border-radius: 24px;
  transform: rotate(var(--rot));
  box-shadow: 0 -12px 40px -22px rgba(14,14,13,.55);
}
.step--1 { background: var(--ink); color: var(--paper); }
.step--2 { background: var(--tag); color: var(--ink); }
.step--3 { background: var(--wa); color: var(--wa-ink); }
.step__no { font-size: 70px; font-weight: 900; font-stretch: 125%; line-height: .78; letter-spacing: -.04em; }
.step h3 { font-size: 32px; font-weight: 900; font-stretch: 76%; line-height: .92; text-transform: uppercase; }
.step p { margin-top: 10px; max-width: 34ch; font-size: 15.5px; line-height: 1.45; opacity: .86; }
.step .btn { justify-self: start; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-bottom: 40px; }
  .step { position: relative; top: auto; min-height: 340px; }
  .js .step { opacity: 0; transform: translateY(60px) rotate(calc(var(--rot) * 4)); transition: opacity .8s var(--ease-out), transform 1.2s var(--ease-spring); transition-delay: calc(var(--i) * 120ms); }
  .js .steps.is-in .step { opacity: 1; transform: rotate(var(--rot)); }
}

/* ---------- CTA ---------- */
.cta { position: relative; padding: 110px var(--pad) 70px; overflow: hidden; overflow: clip; }
.scrub {
  max-width: 21ch;
  font-size: clamp(30px, 7.6vw, 72px);
  font-weight: 800;
  font-stretch: 84%;
  line-height: 1.06;
  letter-spacing: -.012em;
}
.scrub .w { opacity: .16; }
.cta__big {
  display: grid;
  margin: 96px calc(var(--pad) * -1) 0;
  font-weight: 900;
  line-height: .82;
  text-transform: uppercase;
}
.cta__line { display: block; white-space: nowrap; will-change: transform; }
.cta__line--a { font-size: 26vw; font-stretch: 125%; letter-spacing: -.045em; padding-left: var(--pad); }
.cta__line--b { font-size: 16vw; font-stretch: 62%; color: transparent; -webkit-text-stroke: 1.5px var(--paper); text-align: right; padding-right: var(--pad); }
.cta__action { display: flex; align-items: center; gap: 22px; margin-top: 44px; }
.cta__btn {
  position: relative;
  flex: none;
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wa);
  color: var(--wa-ink);
  box-shadow: 0 24px 60px -20px rgba(37,211,102,.65);
  transition: transform .5s var(--ease-out), background-color .3s;
}
.cta__btn::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.6s var(--ease-out) infinite; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.45); opacity: 0; } }
.cta__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.cta__ring text { font-family: var(--f-mono); font-size: 8px; font-weight: 700; letter-spacing: .05em; fill: currentColor; }
.cta__core { display: grid; justify-items: center; gap: 4px; font-weight: 900; font-stretch: 90%; font-size: 17px; line-height: .95; text-align: center; text-transform: uppercase; }
.cta__core svg { width: 30px; height: 30px; }
.cta__hint { max-width: 20ch; color: var(--muted); font-size: 15px; line-height: 1.4; }
@media (hover: hover) { .cta__btn:hover { background: #45e283; } }
@media (min-width: 900px) {
  .cta__line--a { font-size: 27vw; }
  .cta__line--b { font-size: 16vw; margin-top: -.02em; }
  .cta__action { justify-content: flex-end; margin-top: -120px; position: relative; z-index: 2; }
  .cta__btn { width: 210px; height: 210px; }
}

.strip { margin: 80px calc(var(--pad) * -1) 0; overflow: hidden; padding: 20px 0 30px; }
.strip__track { display: inline-flex; will-change: transform; }
.strip__group { display: inline-flex; gap: 18px; padding-right: 18px; flex: none; }
.strip__item {
  flex: none;
  width: 148px;
  padding: 6px 6px 0;
  background: #f6f2ea;
  border-radius: 4px;
  color: var(--ink);
  box-shadow: 0 20px 30px -18px rgba(0,0,0,.7);
  transform: rotate(var(--r, 0deg));
  transition: transform .5s var(--ease-spring);
}
.strip__item:nth-child(odd) { --r: -3deg; }
.strip__item:nth-child(even) { --r: 2.5deg; margin-top: 16px; }
.strip__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.strip__item span { display: block; padding: 7px 2px 8px; font-family: var(--f-hand); font-size: 14px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .strip__item:hover { transform: rotate(0) scale(1.06); } }
@media (min-width: 900px) { .strip__item { width: 190px; } }

/* ---------- footer ---------- */
.footer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding: 60px var(--pad) calc(env(safe-area-inset-bottom) + 22px); overflow: hidden; }
.footer__top { display: grid; gap: 28px; }
.footer__logo { width: 84px; height: 84px; margin-bottom: 18px; border-radius: 50%; box-shadow: 0 0 0 3px var(--ink), 0 14px 30px -12px rgba(0,0,0,.5); transform: rotate(-8deg); transition: transform .8s var(--ease-spring); }
@media (hover: hover) { .footer__logo:hover { transform: rotate(10deg) scale(1.06); } }
.footer__line { margin-top: 10px; font-size: 22px; font-weight: 800; font-stretch: 86%; line-height: 1.12; }
.footer__links { display: grid; border-top: 1.5px solid var(--fg); }
.footer__links a { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1.5px solid var(--fg); font-size: 20px; font-weight: 900; font-stretch: 80%; text-transform: uppercase; }
.footer__links svg { width: 22px; height: 22px; transition: transform .4s var(--ease-out); }
@media (hover: hover) { .footer__links a:hover svg { transform: translateX(6px); } }
.footer__word-wrap { width: 100%; }
.footer__word { width: max-content; font-size: 22vw; font-weight: 900; font-stretch: 125%; line-height: .8; letter-spacing: -.045em; white-space: nowrap; }
.footer__legal { font-size: 10px; opacity: .75; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1fr minmax(0, 460px); align-items: start; } }

/* ---------- floating WhatsApp ---------- */
.fab {
  position: fixed;
  z-index: 55;
  right: 16px;
  bottom: calc(env(safe-area-inset-bottom) + 16px);
  display: flex;
  align-items: center;
  height: 58px;
  padding: 0 17px;
  border-radius: 999px;
  background: var(--wa);
  color: var(--wa-ink);
  box-shadow: 0 14px 34px -10px rgba(10, 90, 45, .8);
  opacity: 0;
  transform: translateY(150%) scale(.6);
  transition: transform .7s var(--ease-spring), opacity .35s;
  pointer-events: none;
}
.fab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa); animation: ring 2.6s var(--ease-out) infinite; }
.fab svg { width: 24px; height: 24px; flex: none; }
.fab__label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 900; font-stretch: 88%; font-size: 15px; transition: max-width .6s var(--ease-out), margin .6s var(--ease-out); }
.fab.is-expanded .fab__label { max-width: 110px; margin-left: 8px; }

/* ---------- product sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; }
.sheet[hidden] { display: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(8, 8, 7, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .45s; }
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet__panel {
  --drag: 0px;
  position: relative;
  width: 100%;
  max-height: 94svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  color: var(--ink);
  border-radius: 26px 26px 0 0;
  transform: translateY(105%);
  transition: transform .65s var(--ease-out);
  scrollbar-width: none;
}
.sheet__panel::-webkit-scrollbar { display: none; }
.sheet.is-open .sheet__panel { transform: translateY(var(--drag)); }
.sheet__panel.is-drag { transition: none; }
.sheet__grab { position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 30px; display: grid; place-items: center; pointer-events: none; }
.sheet__grab i { width: 44px; height: 5px; border-radius: 9px; background: rgba(255,255,255,.85); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.sheet__close {
  position: absolute; z-index: 5; top: 14px; right: 14px;
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(14,14,13,.55); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .4s var(--ease-spring), background-color .3s;
}
.sheet__close svg { width: 18px; height: 18px; }
.sheet__close:active { transform: scale(.9); }
.sheet__media { position: relative; background: var(--ink); }
.sheet__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline-offset: -4px; }
.sheet__track::-webkit-scrollbar { display: none; }
.sheet__track img { flex: 0 0 100%; width: 100%; height: min(112vw, 60svh); object-fit: cover; scroll-snap-align: center; user-select: none; -webkit-user-drag: none; }
.sheet__dots { position: absolute; left: 50%; bottom: 14px; display: flex; gap: 6px; transform: translateX(-50%); }
.sheet__dots i { width: 7px; height: 7px; border-radius: 9px; background: rgba(255,255,255,.5); transition: width .35s var(--ease-out), background-color .3s; }
.sheet__dots i.is-on { width: 22px; background: #fff; }
.sheet__body { display: grid; gap: 12px; padding: 22px 20px 6px; }
.sheet__meta { color: rgba(14,14,13,.55); }
.sheet__title { font-size: clamp(32px, 9vw, 46px); font-weight: 900; font-stretch: 76%; line-height: .9; text-transform: uppercase; text-wrap: balance; }
.sheet__price { font-family: var(--f-hand); font-size: 21px; line-height: 1.1; color: var(--tag); filter: brightness(.85); }
.sheet__desc { font-size: 15.5px; line-height: 1.5; color: rgba(14,14,13,.78); }
.sheet__facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; padding: 14px 0; border-block: 1px solid rgba(14,14,13,.14); font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sheet__facts dt { color: rgba(14,14,13,.5); }
.sizes { margin: 4px 0 0; padding: 0; border: 0; min-width: 0; }
.sizes legend { padding: 0; margin-bottom: 10px; }
.sizes legend span { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .55; }
.sizes__row { display: flex; flex-wrap: wrap; gap: 8px; }
.size { position: relative; }
.size input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.size span { display: grid; place-items: center; min-width: 52px; height: 46px; padding: 0 12px; border: 1.5px solid rgba(14,14,13,.2); border-radius: 12px; font-weight: 800; font-size: 15px; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .35s var(--ease-spring); }
.size input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: scale(1.06); }
.size input:focus-visible + span { outline: 2.5px solid var(--tag); outline-offset: 2px; }
.sheet__actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  gap: 10px;
  padding: 18px 20px calc(env(safe-area-inset-bottom) + 16px);
  background: linear-gradient(to top, var(--paper) 72%, rgba(239,233,221,0));
}
.sheet__wa { flex: 1; --h: 56px; font-size: 16px; }
.sheet__share { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(14,14,13,.2); transition: transform .4s var(--ease-spring), background-color .3s; }
.sheet__share svg { width: 21px; height: 21px; }
.sheet__share:active { transform: scale(.9); }
@media (hover: hover) { .sheet__share:hover { background: rgba(14,14,13,.06); } .sheet__close:hover { background: rgba(14,14,13,.8); } }

@media (min-width: 900px) {
  .sheet { align-items: center; justify-content: center; padding: 4vh 4vw; }
  .sheet__panel {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    width: min(1080px, 100%);
    height: min(88vh, 780px);
    max-height: none;
    overflow: hidden;
    border-radius: 28px;
    opacity: 0;
    transform: translateY(40px) scale(.96);
    transition: transform .7s var(--ease-out), opacity .45s;
  }
  .sheet.is-open .sheet__panel { opacity: 1; transform: none; }
  .sheet__grab { display: none; }
  .sheet__close { background: rgba(14,14,13,.08); color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sheet__media { height: 100%; min-height: 0; overflow: hidden; }
  .sheet__track { height: 100%; }
  .sheet__track img { height: 100%; }
  .sheet__content { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
  .sheet__body { padding: 56px 40px 10px; gap: 16px; }
  .sheet__actions { margin-top: auto; padding: 22px 40px 30px; }
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 96px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity .3s, transform .5s var(--ease-spring);
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  body::after { animation: none; }
  .scrub .w { opacity: 1 !important; }
}
