/* Bits & Pieces — public site v1. Black / copper / chrome. */
:root {
  --black: #0b0b0d;
  --panel: #141417;
  --panel-2: #1b1b20;
  --line: #2a2a30;
  --copper: #c87f4a;
  --copper-hi: #eda968;
  --copper-deep: #8a4f22;
  --chrome: #dfe3e8;
  --muted: #9aa0a8;
  --muted-2: #6d7278;
  --good: #7fc97f;
  --radius: 10px;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--chrome);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--copper-hi); text-decoration: none; }
a:hover { color: var(--copper); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; max-width: 1120px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; border: 1px solid var(--copper-deep); }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem; letter-spacing: 0.04em; color: var(--chrome);
}
.brand-name em { color: var(--copper); font-style: normal; }
.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--muted); padding: 8px 14px; border-radius: 8px; font-size: 0.95rem;
}
.nav a:hover, .nav a.active { color: var(--chrome); background: var(--panel-2); }
.nav a.active { color: var(--copper-hi); }

/* ---------- hero ---------- */
.hero {
  text-align: center; padding: 72px 20px 56px;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, #1d1410 0%, var(--black) 70%);
}
.hero-logo {
  width: 170px; height: 170px; object-fit: cover; border-radius: 50%;
  margin: 0 auto 22px; border: 2px solid var(--copper-deep);
  box-shadow: 0 0 60px rgba(200, 127, 74, 0.25);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 10px; line-height: 1.15;
}
.hero h1 .copper { color: var(--copper); }
.hero .tagline {
  font-family: var(--font-display); font-style: italic;
  color: var(--muted); font-size: 1.2rem; margin: 0 0 28px;
}
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px;
  background: linear-gradient(180deg, var(--copper-hi), var(--copper-deep));
  color: #14100a; font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200, 127, 74, 0.35); color: #000; }
.btn-ghost {
  background: transparent; color: var(--chrome);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--copper); color: var(--copper-hi); box-shadow: none; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section h2 {
  font-family: var(--font-display); font-size: 1.9rem; margin: 0 0 8px;
}
.section .sub { color: var(--muted); margin: 0 0 28px; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--copper-deep), transparent); border: none; margin: 0; }

/* ---------- item cards ---------- */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--copper-deep); box-shadow: 0 12px 32px rgba(0,0,0,0.5); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 16px; }
.card-title { font-weight: 600; font-size: 1.02rem; margin: 0 0 6px; color: var(--chrome); }
.card-title a { color: inherit; }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.price { font-family: var(--font-display); font-size: 1.3rem; color: var(--copper-hi); }
.badge {
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.badge.sold { color: #e88; border-color: #5a2a2a; }
.badge.reserved { color: var(--copper-hi); border-color: var(--copper-deep); }

/* ---------- shop toolbar ---------- */
.toolbar {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px;
  background: var(--panel); border: 1px solid var(--line);
  padding: 14px; border-radius: var(--radius);
}
.toolbar input[type="search"], .toolbar select {
  background: var(--black); border: 1px solid var(--line); color: var(--chrome);
  padding: 10px 14px; border-radius: 8px; font-size: 0.95rem;
}
.toolbar input[type="search"] { flex: 1 1 220px; }
.toolbar input:focus, .toolbar select:focus { outline: none; border-color: var(--copper); }
.count-note { color: var(--muted-2); font-size: 0.9rem; width: 100%; }
.empty { text-align: center; color: var(--muted); padding: 60px 20px; }

/* ---------- item detail ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 40px 0 60px; }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; } }
.gallery-main {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: #000; aspect-ratio: 4 / 3;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs img {
  width: 76px; height: 76px; object-fit: cover; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; opacity: 0.7;
}
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--copper); opacity: 1; }
.detail-info h1 { font-family: var(--font-display); font-size: 2rem; margin: 0 0 8px; }
.detail-price { font-family: var(--font-display); font-size: 2rem; color: var(--copper-hi); margin: 12px 0; }
.detail-desc { color: var(--chrome); white-space: pre-line; }
.spec { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 20px 0; font-size: 0.95rem; }
.spec dt { color: var(--muted-2); }
.spec dd { margin: 0; color: var(--chrome); }
.marketplaces { margin-top: 24px; }
.marketplaces h3 { font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.mp-links { display: flex; gap: 10px; flex-wrap: wrap; }
.mp-links a {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px;
  font-size: 0.9rem; color: var(--chrome); background: var(--panel);
}
.mp-links a:hover { border-color: var(--copper); color: var(--copper-hi); }

/* ---------- track page ---------- */
.track-box {
  max-width: 560px; margin: 40px auto; background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px; padding: 36px;
  text-align: center;
}
.track-box h1 { font-family: var(--font-display); margin: 0 0 8px; }
.track-box p { color: var(--muted); }
.track-input { display: flex; gap: 10px; margin: 24px 0 12px; }
.track-input input {
  flex: 1; background: var(--black); border: 1px solid var(--line); color: var(--chrome);
  padding: 14px 16px; border-radius: 10px; font-size: 1.05rem; font-family: monospace;
}
.track-input input:focus { outline: none; border-color: var(--copper); }
.track-result { min-height: 90px; margin-top: 8px; }
.carrier-chip {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(200, 127, 74, 0.15); border: 1px solid var(--copper-deep);
  color: var(--copper-hi); font-weight: 600; margin-bottom: 14px;
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }
.about-logo { border-radius: 14px; border: 1px solid var(--line); }
.contact-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.contact-card h3 { margin-top: 0; font-family: var(--font-display); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; margin-top: 40px; color: var(--muted-2); font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sync-note { font-size: 0.8rem; color: var(--muted-2); }

/* ---------- marketplace strip ---------- */
.mp-strip { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.mp-strip span {
  border: 1px solid var(--line); color: var(--muted); border-radius: 999px;
  padding: 6px 16px; font-size: 0.85rem; background: var(--panel);
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step .n {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(200,127,74,.15); border: 1px solid var(--copper-deep); color: var(--copper-hi);
  font-weight: 700; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* ---------- delight layer (v1.1: "make people feel GREAT") ---------- */

/* Warm kicker above the hero headline */
.kicker {
  color: var(--copper-hi); letter-spacing: 0.22em; text-transform: uppercase;
  font-size: 0.8rem; margin: 0 0 14px;
}

/* Breathing glow on the hero crest */
.hero-logo.glow { animation: glowPulse 4s ease-in-out infinite; }
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 44px rgba(200, 127, 74, 0.22); }
  50%      { box-shadow: 0 0 90px rgba(200, 127, 74, 0.45); }
}

/* Scrolling ticker of warm promises */
.ticker {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #0e0c09; white-space: nowrap; padding: 10px 0;
}
.ticker-track { display: inline-block; animation: tick 36s linear infinite; }
.ticker span {
  display: inline-block; margin: 0 26px; color: var(--copper-hi);
  font-size: 0.9rem; letter-spacing: 0.05em;
}
.ticker .dot { color: var(--copper-deep); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Section heading row */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .sub { margin: 6px 0 0; }

/* "Just landed" badge — pulses gently */
.badge-new {
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; color: #171006;
  background: linear-gradient(180deg, var(--copper-hi), var(--copper));
  animation: newPulse 2.4s ease-in-out infinite;
}
@keyframes newPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(237, 169, 104, 0.0); }
  50%      { box-shadow: 0 0 14px rgba(237, 169, 104, 0.55); }
}

/* Shine sweep across cards on hover */
.card { position: relative; }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 235, 200, 0.14) 50%, transparent 60%);
  transform: translateX(-120%); transition: transform 0.7s ease;
}
.card:hover::after { transform: translateX(120%); }

/* Scarcity note on item detail */
.scarcity {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200, 127, 74, 0.1); border: 1px dashed var(--copper-deep);
  border-radius: 10px; padding: 10px 16px; margin: 6px 0 4px; font-size: 0.93rem; color: var(--copper-hi);
}

/* Drop cap for the story */
.dropcap::first-letter {
  font-family: var(--font-display); font-size: 3.2em; float: left;
  line-height: 0.85; padding-right: 10px; color: var(--copper);
}

/* Newsletter */
.newsletter {
  max-width: 620px; margin: 0 auto; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 40px 32px;
}
.newsletter h2 { margin: 0 0 8px; }
.newsletter p { color: var(--muted); }
.newsletter-form { display: flex; gap: 10px; margin-top: 20px; }
.newsletter-form input {
  flex: 1; background: var(--black); border: 1px solid var(--line); color: var(--chrome);
  padding: 13px 16px; border-radius: 999px; font-size: 1rem;
}
.newsletter-form input:focus { outline: none; border-color: var(--copper); }
.newsletter-done { color: var(--copper-hi); font-weight: 600; margin-top: 16px; }
@media (max-width: 560px) { .newsletter-form { flex-direction: column; } }

/* Celebration overlay (purchase intent) */
.celebrate-veil {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(5, 5, 8, 0.72); backdrop-filter: blur(4px);
  animation: veilIn 0.25s ease;
}
@keyframes veilIn { from { opacity: 0; } to { opacity: 1; } }
.celebrate-card {
  background: var(--panel-2); border: 1px solid var(--copper-deep); border-radius: 18px;
  padding: 40px 36px; max-width: 440px; margin: 20px; text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(200, 127, 74, 0.18);
  animation: popIn 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes popIn { from { transform: scale(0.85) translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.celebrate-card h2 { font-family: var(--font-display); margin: 0 0 10px; font-size: 1.9rem; }
.celebrate-card h2 .copper { color: var(--copper-hi); }
.celebrate-card p { color: var(--muted); }
.celebrate-card .row { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
#confetti-canvas { position: fixed; inset: 0; z-index: 101; pointer-events: none; }

/* Gentle reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-logo.glow, .ticker-track, .badge-new { animation: none; }
  .card::after { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
