:root {
  --yellow: #fff5a8;
  --yellow-2: #fbee8a;
  --ink: #0d0d0d;
  --line: rgba(13, 13, 13, 0.9);
  --pad: clamp(12px, 1.6vw, 22px);
  --sans: "Archivo", Helvetica, Arial, sans-serif;
  --mono: "Courier Prime", "Courier New", monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--yellow); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.small { font-size: 12px; }

/* loader */
#loader { position: fixed; inset: 0; z-index: 100; background: var(--yellow); display: grid; place-items: center;
  font-weight: 900; font-size: clamp(48px, 10vw, 140px); letter-spacing: -.05em; transition: transform .9s cubic-bezier(.77,0,.18,1); }
#loader.done { transform: translateY(-100%); }

/* header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 30; padding: var(--pad); pointer-events: none; }
.header > * { pointer-events: auto; }
.header-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.logo { font-weight: 900; font-size: 22px; letter-spacing: -.05em; }
.header-menu { display: flex; gap: 6px; margin-top: 8px; }
.spacer { flex: 1; }
.btn { display: inline-flex; align-items: center; gap: 14px; height: 30px; padding: 0 10px; background: var(--yellow);
  border: 1px solid var(--ink); font-family: var(--mono); font-size: 13px; text-transform: uppercase; transition: background .25s, color .25s; white-space: nowrap; }
.btn:hover, .btn.dark { background: var(--ink); color: var(--yellow); }
.btn.dark:hover { background: var(--yellow); color: var(--ink); }
.btn .suffix { opacity: .7; }
.btn.big { height: 48px; width: 100%; justify-content: space-between; font-size: 15px; }

/* menu */
.menu-panel { position: fixed; top: 92px; right: var(--pad); z-index: 29; display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .35s cubic-bezier(.2,.8,.2,1); }
.menu-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.menu-panel .btn { justify-content: space-between; min-width: 220px; }

/* page transitions */
#app { min-height: 100vh; }
.page { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* home */
.hero { position: relative; height: 100vh; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide img { transform: scale(1.08); transition: transform 7s linear; }
.hero-slide.on img { transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,245,168,.35), transparent 30%, transparent 60%, rgba(13,13,13,.35)); }
.hero-title { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; font-weight: 900;
  font-size: clamp(64px, 16vw, 260px); letter-spacing: -.06em; line-height: .85; color: var(--ink); white-space: nowrap; }
.hero-bars { position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad); z-index: 3; display: grid; gap: 4px; max-width: 440px; }
.itembar { display: flex; justify-content: space-between; align-items: center; background: var(--yellow); border: 1px solid var(--ink);
  height: 40px; padding: 0 12px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; transition: .25s; }
a.itembar:hover { background: var(--ink); color: var(--yellow); }
.progress { height: 3px; background: rgba(13,13,13,.15); position: relative; overflow: hidden; }
.progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; animation: prog 5s linear infinite; }
@keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.thumbs { display: flex; gap: 4px; }
.thumbs button { width: 44px; height: 58px; border: 1px solid var(--ink); overflow: hidden; opacity: .55; transition: .25s; }
.thumbs button.on, .thumbs button:hover { opacity: 1; }

.marquee { border-block: 1px solid var(--ink); overflow: hidden; white-space: nowrap; padding: 14px 0; font-weight: 900; font-size: clamp(28px, 5vw, 64px); letter-spacing: -.04em; }
.marquee div { display: inline-block; animation: mq 22s linear infinite; }
@keyframes mq { to { transform: translateX(-50%); } }

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--pad); padding: var(--pad); }
.cat { position: relative; aspect-ratio: 3/4; overflow: hidden; border: 1px solid var(--ink); }
.cat img { transition: transform .9s cubic-bezier(.2,.8,.2,1), filter .5s; filter: grayscale(.2); }
.cat:hover img { transform: scale(1.06); filter: none; }
.cat .itembar { position: absolute; left: 8px; right: 8px; bottom: 8px; }

/* section heading */
.page-head { padding: 130px var(--pad) var(--pad); display: grid; gap: 10px; }
.page-head h1 { font-weight: 900; font-size: clamp(48px, 10vw, 150px); letter-spacing: -.06em; line-height: .85; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters .btn.on { background: var(--ink); color: var(--yellow); }

/* grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--pad); padding: var(--pad); }
.card { display: grid; gap: 6px; animation: rise .6s both; }
.card .ph { aspect-ratio: 3/4; overflow: hidden; border: 1px solid var(--ink); position: relative; background: var(--yellow-2); }
.card .ph img { transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.card:hover .ph img { transform: scale(1.07); }
.card .tag { position: absolute; top: 8px; left: 8px; }
.card .meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; text-transform: uppercase; border-top: 1px solid var(--ink); padding-top: 6px; }

/* product */
.product { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 100vh; }
.product .ph { height: 100vh; position: sticky; top: 0; overflow: hidden; }
.product .info { padding: 140px var(--pad) var(--pad); display: flex; flex-direction: column; gap: 14px; }
.product h1 { font-weight: 900; font-size: clamp(40px, 5vw, 80px); letter-spacing: -.05em; line-height: .9; }
.product .desc { font-family: var(--mono); font-size: 15px; line-height: 1.55; max-width: 46ch; }
.row { display: flex; justify-content: space-between; border-bottom: 1px solid var(--ink); padding: 8px 0; font-family: var(--mono); font-size: 13px; text-transform: uppercase; }
.qty { display: flex; gap: 4px; }
.qty .btn { width: 40px; justify-content: center; }

/* story */
.story { padding: 140px var(--pad) 60px; display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--pad) * 2); align-items: start; }
.story h1 { font-weight: 900; font-size: clamp(56px, 9vw, 140px); letter-spacing: -.06em; line-height: .85; }
.story p { font-family: var(--mono); font-size: 16px; line-height: 1.6; margin-bottom: 1em; }
.story .ph { aspect-ratio: 3/4; border: 1px solid var(--ink); overflow: hidden; }

/* drawer */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--yellow); border-left: 1px solid var(--ink);
  z-index: 50; transform: translateX(100%); transition: transform .5s cubic-bezier(.77,0,.18,1); display: flex; flex-direction: column; padding: var(--pad); gap: 12px; }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--ink); padding-bottom: 10px; }
#drawer-items { flex: 1; overflow: auto; display: grid; gap: 10px; align-content: start; }
.line { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; align-items: center; font-family: var(--mono); font-size: 13px; text-transform: uppercase; }
.line .ph { aspect-ratio: 3/4; border: 1px solid var(--ink); overflow: hidden; }
.drawer-foot { display: grid; gap: 6px; }
.scrim { position: fixed; inset: 0; background: rgba(13,13,13,.35); z-index: 40; opacity: 0; pointer-events: none; transition: .4s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 80px); background: var(--ink); color: var(--yellow);
  padding: 10px 16px; z-index: 60; transition: .4s cubic-bezier(.2,.8,.2,1); font-size: 13px; text-transform: uppercase; }
.toast.on { transform: translate(-50%, 0); }

/* footer */
.footer { padding: 80px var(--pad) var(--pad); display: grid; gap: 40px; border-top: 1px solid var(--ink); margin-top: 60px; }
.manifesto { font-weight: 800; font-size: clamp(24px, 3.4vw, 52px); letter-spacing: -.04em; line-height: 1.02; max-width: 22ch; }
.ticket { max-width: 340px; font-size: 16px; line-height: 1.4; }
.rule { height: 5px; margin: 10px 0; background: repeating-linear-gradient(90deg, var(--ink) 0 14px, transparent 14px 16px, var(--ink) 16px 40px, transparent 40px 41px); }
.footer-bars { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.footer-bars .bar { display: flex; gap: 6px; }

/* markets */
.market-table { display: grid; gap: 8px; margin: 24px 0; }
.market-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 14px; align-items: center; border: 1px solid var(--ink); padding: 14px; background: var(--yellow-2); font-family: var(--mono); }
.market-date { font-weight: 700; font-size: 15px; }
.market-name { font-size: 14px; }
.market-loc { font-size: 12px; opacity: 0.8; margin-top: 4px; }

/* bank card */
.bank-box { border: 1px solid var(--ink); padding: calc(var(--pad) * 1.5); background: var(--yellow-2); margin: 20px 0; font-family: var(--mono); }
.bank-line { display: flex; justify-content: space-between; border-bottom: 1px dashed rgba(13,13,13,0.3); padding: 10px 0; font-size: 14px; }
.bank-num { font-size: 18px; font-weight: 700; letter-spacing: 0.05em; }

@media (max-width: 860px) {
  .cats, .grid { grid-template-columns: repeat(2, 1fr); }
  .product, .story { grid-template-columns: 1fr; }
  .product .ph { position: relative; height: 70vh; }
  .product .info { padding-top: var(--pad); }
  .market-row { grid-template-columns: 1fr; gap: 6px; }
  #nav-story, #nav-wholesale { display: none; }
}
