:root {
  --bg: #0a0a0a;
  --line: #2e2e2e;
  --txt: #f2f2ed;
  --txt-dim: #8a8a85;
  --mono: "Space Mono", "SF Mono", ui-monospace, monospace;
  --sans: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}
#scene.dragging { cursor: grabbing; }
#scene.hovering { cursor: pointer; }

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 120% at 50% 50%, transparent 55%, rgba(0,0,0,0.55) 100%);
  z-index: 2;
}

/* ============ UI CHROME ============ */
.ui { z-index: 10; }
.ui-mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* ============ BOTTOM BAR ============ */
.bottom-bar {
  position: fixed;
  bottom: 28px; left: 32px; right: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.bottom-bar > * { pointer-events: auto; }

.main-nav {
  display: flex;
  background: rgba(20,20,20,.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 6px;
}
.nav-item {
  background: none;
  border: none;
  border-radius: 999px;
  color: var(--txt);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  padding: 14px 30px;
  cursor: pointer;
  transition: color .3s;
}
.nav-item.active { background: #fff; color: #0a0a0a; }
.nav-item:not(.active):hover { color: var(--txt-dim); }

/* ============ DETAIL PAGE ============ */
.detail {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--bg);
  transform: translateY(100%);
  overflow-y: auto;
  visibility: hidden;
}
.detail-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 32px 120px;
}
.detail-back {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--txt);
  padding: 12px 20px;
  cursor: pointer;
  transition: all .3s;
}
.detail-back:hover { background: #fff; color: #0a0a0a; border-color: #fff; }
.detail-head { margin-top: 64px; }
.detail-brand { color: var(--txt-dim); }
.detail-title {
  font-size: clamp(44px, 8vw, 110px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 16px 0 28px;
}
.detail-meta {
  display: flex;
  gap: 24px;
  color: var(--txt-dim);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.detail-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  margin-right: 8px;
}
.detail-hero {
  margin-top: 48px;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #161616;
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-body {
  margin-top: 48px;
  max-width: 640px;
  font-size: 20px;
  line-height: 1.55;
  color: #cfcfc9;
}
.detail-credits { margin-top: 32px; color: var(--txt-dim); }

/* ============ LOADER ============ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  display: grid;
  place-items: center;
}
.loader p { font-size: 13px; color: var(--txt); }
