/* ============================================
   UNCHAINED — design tokens
   ============================================ */
:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --text: #f2f0ea;
  --text-dim: #8f8c86;
  --border: #2a2a2a;

  --accent: #f2429c;      /* default site accent (pink) */
  --rage: #e8383c;
  --acid: #c9ff3d;
  --pink: #f2429c;
  --vhs: #ffc700;
  --chrome: #7fd4ff;

  --font: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Courier New", monospace;

  --container: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Custom cursor — desktop only, see js/main.js for the toggle */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 22px; height: 22px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .15s, height .15s, border-color .15s;
  mix-blend-mode: difference;
}
.cursor-dot.hover { width: 40px; height: 40px; }
body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button {
  cursor: none;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.site-header .logo img { height: 26px; }
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  transition: color .15s;
}
.site-nav a:hover { color: var(--text); }
.header-icons { display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--text-dim); }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 24px;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.hero-wordmark {
  width: min(640px, 90vw);
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
}
.hero-tagline {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto;
}

/* Decorative floating chrome object — CSS-only pass 1.
   Upgrade path: swap for a Three.js scene reusing the MBARE can setup. */
.chrome-float {
  position: absolute;
  width: 140px;
  opacity: 0.85;
  z-index: 1;
  animation: float 7s ease-in-out infinite;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.5));
}
.chrome-float.a { top: 12%; left: 8%; animation-delay: 0s; }
.chrome-float.b { bottom: 10%; right: 8%; width: 100px; animation-delay: -3s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(6deg); }
}

/* ============================================
   Ticker
   ============================================ */
.ticker {
  background: var(--acid);
  color: #0a0a0a;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ticker-track {
  display: inline-flex;
  animation: ticker 22s linear infinite;
}
.ticker-track span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 20px;
  text-transform: uppercase;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   Section shell + reveal
   ============================================ */
.section { padding: 96px 0; }
.section-head { margin-bottom: 40px; }
.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.section-title { font-size: 34px; font-weight: 800; margin: 0; letter-spacing: -0.01em; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .chrome-float, .ticker-track { animation: none; }
}

/* ============================================
   Manifesto
   ============================================ */
.manifesto { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.manifesto p { color: var(--text-dim); font-size: 15px; max-width: 46ch; }
.manifesto-list { list-style: none; margin: 24px 0 0; padding: 0; font-family: var(--font-mono); font-size: 13px; }
.manifesto-list li { padding: 8px 0; border-top: 1px solid var(--border); color: var(--text-dim); }
.manifesto-list li:last-child { border-bottom: 1px solid var(--border); }
.manifesto img { border-radius: var(--radius); }

/* ============================================
   Product grid
   ============================================ */
.drop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.product-card {
  --card-accent: var(--accent);
  position: relative;
  background: var(--surface);
  border: 1px solid var(--card-accent);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.product-card[data-accent="rage"]   { --card-accent: var(--rage); }
.product-card[data-accent="acid"]   { --card-accent: var(--acid); }
.product-card[data-accent="pink"]   { --card-accent: var(--pink); }
.product-card[data-accent="vhs"]    { --card-accent: var(--vhs); }
.product-card[data-accent="chrome"] { --card-accent: var(--chrome); }

.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--card-accent);
  color: #0a0a0a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 2px;
  z-index: 2;
}
.product-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #000; }
.product-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
/* Hover glitch: layered chromatic-aberration ghosts */
.product-photo::before, .product-photo::after {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--bg-img);
  background-size: cover;
  background-position: center;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity .15s;
}
.product-card:hover .product-photo img { transform: scale(1.04); }
.product-card:hover .product-photo::before {
  opacity: .5; transform: translate(2px, 0); background-color: #ff0040; mix-blend-mode: screen;
}
.product-card:hover .product-photo::after {
  opacity: .5; transform: translate(-2px, 0); background-color: #00e5ff; mix-blend-mode: screen;
}
.product-info { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; }
.product-info .name { font-size: 13px; }
.product-info .price { font-size: 13px; color: var(--text-dim); }
.product-add {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--text);
  background: transparent;
}

/* ============================================
   Featured banner
   ============================================ */
.featured {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.featured img.bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .6;
}
.featured-content { position: relative; z-index: 2; padding: 48px; }
.featured-content h3 { font-size: 36px; margin: 0 0 20px; max-width: 12ch; line-height: 1.1; }
.featured-content .accent { color: var(--rage); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--text);
  padding: 12px 20px;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-radius: 2px;
  background: transparent;
  color: var(--text);
}
.btn:hover { background: var(--text); color: var(--bg); }

/* ============================================
   Poster archive
   ============================================ */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.poster-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}
.poster-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.poster-card:hover img { transform: scale(1.05); }
.poster-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

/* ============================================
   Footer
   ============================================ */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; }
.site-footer .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.site-footer .logo img { height: 20px; }
.footer-links { display: flex; gap: 20px; font-size: 12px; color: var(--text-dim); }
.footer-social { display: flex; gap: 14px; }

/* ============================================
   Product modal
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.8);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  max-height: 86vh;
}
.modal img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 32px; position: relative; }
.modal-body .price { color: var(--text-dim); margin: 8px 0 20px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text);
  font-size: 20px; cursor: pointer;
}
.modal-cart-note {
  margin-top: 24px; font-size: 12px; color: var(--text-dim);
  border-top: 1px solid var(--border); padding-top: 16px;
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .manifesto { grid-template-columns: 1fr; }
  .modal { grid-template-columns: 1fr; overflow-y: auto; }
  .hero { min-height: 70vh; padding: 60px 20px; }
}
