:root {
  --bg: #ffffff;
  --bg-card: #ffffff;
  --bg-soft: #f5f3ef;
  --ink: #171512;
  --ink-dim: #6f695f;
  --accent: #7c22c4;
  --accent-ink: #fbf5ff;
  --line: #e6e1d6;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html { scroll-padding-top: env(safe-area-inset-top, 0px); scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* top bar */
.topbar {
  padding-top: 20px; padding-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark-small { display: block; height: 40px; width: auto; }
.top-links { display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--ink-dim); }
.top-links a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s ease, color .15s ease; }
.top-links a:hover { color: var(--ink); border-color: var(--ink-dim); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border: 1px solid var(--ink); background: var(--bg);
  color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer;
}
.cart-btn:hover { background: var(--ink); color: var(--bg); }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding: 64px 0 56px; }
.hero p.lede { font-size: 18px; line-height: 1.55; color: var(--ink-dim); max-width: 46ch; margin: 0 0 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.btn {
  display: inline-block; padding: 13px 22px; text-decoration: none;
  font-size: 14px; font-weight: 600; border: 1px solid var(--ink);
  color: var(--ink); background: transparent; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.solid:hover { background: #5e1a98; border-color: #5e1a98; color: var(--accent-ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.solid[disabled]:hover { background: var(--accent); border-color: var(--accent); }
.btn.wide { width: 100%; text-align: center; }

.stat-row { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); }
.stat { font-size: 13px; color: var(--ink-dim); }
.stat b { color: var(--ink); font-size: 15px; display: block; font-weight: 700; }

/* section heading */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 8px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 36px;
}
.section-head h2 { font-family: 'Pirata One', serif; font-weight: 400; font-size: 34px; margin: 0; }
.section-head span { font-size: 13px; color: var(--ink-dim); }

/* product grid */
.grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  background: var(--line); border: 1px solid var(--line); margin-bottom: 80px;
}
.card { background: var(--bg); display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--bg-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card.sold .card-media img { filter: grayscale(1); opacity: .6; }
.sold-tag {
  position: absolute; left: 14px; top: 14px; padding: 6px 10px;
  background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.thumbs { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.thumbs button {
  width: 34px; height: 34px; padding: 0; border: 1px solid rgba(23,21,18,0.35);
  background: rgba(255,255,255,0.75); cursor: pointer; overflow: hidden;
}
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.active { border-color: var(--ink); }

.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body .meta { font-size: 12px; color: var(--ink-dim); margin-bottom: 6px; }
.card-body h3 { font-size: 18px; font-weight: 700; margin: 0 0 10px; line-height: 1.3; }
.card-body .price { font-size: 20px; font-weight: 800; margin: 0 0 18px; }
.card-body .spacer { flex: 1; }
.card-body .btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 calc(48px + env(safe-area-inset-bottom, 0px));
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
footer .foot-note { font-size: 13px; color: var(--ink-dim); max-width: 42ch; line-height: 1.6; }
footer .foot-links { display: flex; gap: 18px; font-size: 13px; }
footer a { text-decoration: none; color: var(--ink-dim); border-bottom: 1px solid transparent; }
footer a:hover { color: var(--ink); border-color: var(--ink-dim); }

.launch-banner {
  background: var(--accent); color: var(--accent-ink); text-align: center;
  font-size: 13px; font-weight: 600; padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
}

/* cart drawer */
.overlay { position: fixed; inset: 0; background: rgba(23,21,18,.45); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(480px, 100%); background: var(--bg);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease;
  border-left: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.drawer.open { transform: none; }
.drawer.wide { width: min(620px, 100%); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-family: 'Pirata One', serif; font-weight: 400; font-size: 28px; margin: 0; }
.icon-btn { border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink); padding: 4px 8px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px calc(18px + env(safe-area-inset-bottom, 0px)); }
.line-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-item img { width: 72px; height: 90px; object-fit: cover; background: var(--bg-soft); }
.line-item .name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.line-item .meta { font-size: 12px; color: var(--ink-dim); margin-top: 4px; }
.line-item .lp { font-weight: 800; font-size: 15px; text-align: right; }
.line-item .remove { border: 0; background: none; color: var(--ink-dim); font-size: 12px; text-decoration: underline; cursor: pointer; padding: 6px 0 0; }
.empty { color: var(--ink-dim); font-size: 14px; padding: 24px 0; }
.subtotal { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 6px; }
.fine { font-size: 12px; color: var(--ink-dim); margin: 0 0 14px; }
.notice { font-size: 13px; background: #fdf1f1; color: #8a1c1c; border: 1px solid #f0c9c9; padding: 10px 12px; margin: 0 0 12px; }
.back-link { border: 0; background: none; padding: 10px 0 14px; color: var(--ink-dim); font-size: 13px; cursor: pointer; }
.back-link:hover { color: var(--ink); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 40px; }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .top-links { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== Hero rework ===== */
:root { --photo-mat: #efece6; --photo-grade: saturate(.92) contrast(1.05) brightness(1.03); }
.hero { grid-template-columns: 1.05fr .95fr; gap: 48px; padding: 56px 0 72px; }
.hero .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.hero .hero-title { font-family: 'Pirata One', serif; font-weight: 400; font-size: clamp(46px, 6.2vw, 80px); line-height: .98; margin: 0 0 22px; }
.hero .hero-title span { color: var(--accent); }
.hero-art { position: relative; aspect-ratio: 1 / 1; width: 100%; }
.hero-frame { position: absolute; aspect-ratio: 4 / 5; background: var(--photo-mat); padding: 10px; border-radius: 6px; box-shadow: 0 18px 40px rgba(23,21,18,.18); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; filter: var(--photo-grade); }
.hero-frame.f0 { width: 56%; left: 22%; top: 4%; z-index: 3; }
.hero-frame.f1 { width: 42%; left: 0; top: 30%; transform: rotate(-6deg); z-index: 2; }
.hero-frame.f2 { width: 42%; right: 0; top: 26%; transform: rotate(6deg); z-index: 1; }

/* ===== Consistent product photos ===== */
.card-media { background: var(--photo-mat); padding: 18px; }
.card-media img { border-radius: 4px; box-shadow: 0 6px 18px rgba(23,21,18,.12); filter: var(--photo-grade); }
.card.sold .card-media img { filter: grayscale(1); }
.thumbs { right: 28px; bottom: 28px; }
.thumbs button img, .line-item img { filter: var(--photo-grade); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 48px; }
  .hero-art { max-width: 440px; margin: 0 auto; }
  .card-media { padding: 14px; }
  .thumbs { right: 22px; bottom: 22px; }
}

/* ===== Premium dark hero ===== */
html, body { overflow-x: clip; }
.hero { position: relative; isolation: isolate; padding: 88px 0 96px; color: #fff; }
.hero::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: -1;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(140,60,230,.45) 0%, rgba(140,60,230,0) 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(255,80,200,.18) 0%, rgba(255,80,200,0) 70%),
    radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 22px 22px,
    #0c0910;
}
.hero .eyebrow { color: #c79bff; display: inline-flex; align-items: center; gap: 10px; }
.hero .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3dff9a; box-shadow: 0 0 0 4px rgba(61,255,154,.18); animation: pulse 2s ease-in-out infinite; }
.hero .hero-title { color: #fff; text-shadow: 0 2px 30px rgba(140,60,230,.35); }
.hero .hero-title span { background: linear-gradient(90deg, #b45cff 0%, #ff5ccf 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.hero p.lede { color: rgba(255,255,255,.72); }
.hero .btn { color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn:hover { background: #fff; color: #0c0910; border-color: #fff; }
.hero .btn.solid { background: linear-gradient(135deg, #8b2cf0, #c13cd8); border-color: transparent; box-shadow: 0 10px 30px rgba(150,50,230,.45); }
.hero .btn.solid:hover { color: #fff; filter: brightness(1.1); transform: translateY(-1px); }
.hero .stat-row { border-top-color: rgba(255,255,255,.12); }
.hero .stat { color: rgba(255,255,255,.55); }
.hero .stat b { color: #fff; font-size: 18px; }

.hero-art::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(170,80,255,.55), rgba(170,80,255,0) 70%); filter: blur(30px); z-index: 0; }
.hero-frame { background: linear-gradient(160deg, #2b2235, #141019); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(180,92,255,.18); animation: float 7s ease-in-out infinite; }
.hero-frame.f1 { animation-duration: 8s; animation-delay: -2s; }
.hero-frame.f2 { animation-duration: 9s; animation-delay: -4s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(61,255,154,0); } }

/* ticker strip */
.marquee { width: 100vw; margin: 0 0 64px calc(50% - 50vw); background: linear-gradient(90deg, #7c22c4, #c13cd8); color: #fff; overflow: hidden; padding: 14px 0; }
.marquee-track { display: flex; width: max-content; gap: 34px; animation: marquee 30s linear infinite; font-family: 'Pirata One', serif; font-size: 24px; letter-spacing: .02em; white-space: nowrap; }
.marquee-track span:nth-child(even) { opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* product cards */
.card { position: relative; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(23,21,18,.14); z-index: 1; }
.card-media { background: radial-gradient(120% 90% at 50% 0%, #fbfaf7 0%, #e9e4db 100%); }
.card-media img { transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.section-head h2 { font-size: 42px; }

@media (max-width: 860px) {
  .hero { padding: 48px 0 64px; }
  .marquee { margin-bottom: 44px; }
  .marquee-track { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .hero-frame, .marquee-track, .hero .eyebrow::before { animation: none !important; } }

/* ===== Black theme everywhere ===== */
:root {
  --bg: #0c0910; --bg-card: #120e17; --bg-soft: #1a1520;
  --ink: #f4f0fa; --ink-dim: #a59cb3; --line: #2a2333;
  --photo-mat: #1a1520;
}
html, body { background: #0c0910; color: var(--ink); }
::selection { background: #8b2cf0; color: #fff; }
.topbar { border-bottom-color: var(--line); }
.wordmark-small { border-radius: 8px; }
footer img { border-radius: 12px; }
.grid { background: var(--line); border-color: var(--line); }
.card { background: var(--bg-card); }
.card:hover { box-shadow: 0 24px 48px rgba(0,0,0,.55), 0 0 0 1px rgba(180,92,255,.4); }
.card-media { background: radial-gradient(120% 90% at 50% 0%, #251c30 0%, #110d16 100%); }
.card-media img { box-shadow: 0 12px 30px rgba(0,0,0,.55); }
.btn.solid { background: linear-gradient(135deg, #8b2cf0, #c13cd8); border-color: transparent; color: #fff; }
.btn.solid:hover { background: linear-gradient(135deg, #8b2cf0, #c13cd8); border-color: transparent; filter: brightness(1.12); }
.btn.solid[disabled]:hover { filter: none; }
.thumbs button { background: rgba(12,9,16,.7); border-color: rgba(255,255,255,.25); }
.thumbs button.active { border-color: #c79bff; }
.overlay { background: rgba(0,0,0,.65); }
.drawer { background: #120e17; }
.notice { background: #2a1216; color: #ffb8b8; border-color: #5a2228; }
.section-head h2 { color: #fff; }

/* ===== Intro screen ===== */
body.intro-open { overflow: hidden; }
.intro { position: fixed; inset: 0; z-index: 100; background: radial-gradient(60% 50% at 50% 42%, #1c1326 0%, #07050a 70%); display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; transition: opacity .7s ease, visibility .7s ease; overflow: hidden; }
.intro.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.intro::after { content: ""; position: absolute; inset: 0; background: #b98cff; opacity: 0; pointer-events: none; animation: introFlash 7s infinite; }
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.intro-bolt { position: absolute; left: 7%; top: 0; height: 82vh; width: auto; opacity: 0; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 18px #b45cff) drop-shadow(0 0 40px #8b2cf0); animation: introBolt 7s infinite; }
.intro-bolt.right { left: auto; right: 9%; height: 60vh; transform: scaleX(-1); animation-delay: -3.4s; }
.intro-inner { position: relative; z-index: 2; padding: 24px; animation: introIn 1.4s ease both; }
.intro-rule { display: flex; align-items: center; justify-content: center; gap: 14px; color: #c79bff; font-size: 10px; }
.intro-rule span { width: 90px; height: 1px; background: linear-gradient(90deg, transparent, rgba(199,155,255,.7), transparent); }
.intro-title { font-family: 'Pirata One', serif; font-size: clamp(64px, 13vw, 150px); line-height: .9; margin: 22px 0 10px; letter-spacing: .02em; color: #fff; text-shadow: 0 0 10px rgba(255,255,255,.55), 0 0 30px rgba(180,92,255,.8), 0 0 70px rgba(139,44,240,.6); }
.intro-sub { font-size: 12px; letter-spacing: .5em; text-transform: uppercase; color: rgba(255,255,255,.45); margin: 0 0 18px; padding-left: .5em; }
.intro-menu { display: flex; flex-direction: column; gap: 6px; margin-top: 30px; }
.intro-menu a { font-size: clamp(22px, 4.2vw, 36px); font-weight: 800; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: rgba(255,255,255,.4); padding-left: .22em; transition: color .2s ease, text-shadow .2s ease, letter-spacing .25s ease; }
.intro-menu a:hover, .intro-menu a:focus-visible { color: #fff; letter-spacing: .3em; text-shadow: 0 0 18px rgba(180,92,255,.9); }
.intro-handle { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 2; font-size: 11px; letter-spacing: .3em; color: rgba(255,255,255,.3); }
@keyframes introIn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes introBolt { 0%, 7%, 9.5%, 12%, 100% { opacity: 0; } 8%, 10.5% { opacity: 1; } 11% { opacity: .3; } }
@keyframes introFlash { 0%, 7%, 9.5%, 12%, 100% { opacity: 0; } 8%, 10.5% { opacity: .07; } }
@media (prefers-reduced-motion: reduce) { .intro::after, .intro-bolt, .intro-inner { animation: none !important; } .intro-bolt { opacity: .8; } }
