:root {
  --bg:      #050606;
  --ink:     #f2ede4;
  --ink-dim: #7d7770;
  --accent:  #ff3300;
  --serif:   "Fraunces", Georgia, "Times New Roman", serif;
  --sans:    "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  width: 100%; height: 100%; min-height: 100vh;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
a, button { color: inherit; text-decoration: none; }
button { appearance: none; border: 0; background: transparent; padding: 0; font: inherit; cursor: pointer; }

/* Full-bleed stage */
.stage {
  position: relative;
  width: 100vw; height: 100vh;
  background: radial-gradient(ellipse at 50% 65%, #0f1213 0%, #050606 72%);
}
.panel {
  position: absolute; inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}
.panel.active {
  opacity: 1;
  pointer-events: auto;
}
.panel .scene {
  width: 100%; height: 100%;
  display: block;
  cursor: grab;
}
.panel .scene:active { cursor: grabbing; }

/* --- minimal chrome --- */
/* Top-left brand mark, quiet */
.mark {
  position: fixed; top: 24px; left: 28px; z-index: 30;
  font-family: var(--serif); font-weight: 700;
  letter-spacing: 0.22em; font-size: 14px;
  color: var(--ink);
  pointer-events: none;
  text-shadow: 0 2px 20px rgba(0,0,0,0.9);
}
/* Top-right location, tiny */
.loc {
  position: fixed; top: 28px; right: 28px; z-index: 30;
  font-size: 10px; letter-spacing: 0.36em;
  color: var(--ink-dim);
  pointer-events: none;
}

/* Bottom-left slide badge: 01 · GLASSHOUSE */
.badge {
  position: fixed; left: 32px; bottom: 32px; z-index: 30;
  display: flex; align-items: baseline; gap: 12px;
  pointer-events: none;
  text-shadow: 0 2px 24px rgba(0,0,0,0.9);
}
.badge .idx {
  font-family: var(--serif);
  font-size: 40px; font-weight: 300;
  color: var(--accent);
  line-height: 1;
  letter-spacing: 0.02em;
}
.badge .name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 56px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: opacity 0.4s ease;
}

/* Pager — bottom center */
.pager {
  position: fixed; left: 50%; bottom: 32px; z-index: 30;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 18px;
  padding: 8px 12px;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
}
.arrow {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px; line-height: 1;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.arrow:hover { background: rgba(255,51,0,0.85); color: #0a0a0a; }
.dots { display: flex; gap: 10px; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(242,237,228,0.28);
  transition: background 0.2s, transform 0.2s;
}
.dot:hover { background: rgba(242,237,228,0.6); }
.dot.active { background: var(--accent); transform: scale(1.35); }

/* Mode chip — bottom-left, toggles procedural ↔ Tripo */
.mode-chip {
  position: fixed; left: 32px; bottom: 100px; z-index: 30;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 8px;
  background: rgba(10,10,10,0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.mode-chip:hover { border-color: rgba(255,51,0,0.55); }
.mode-chip .mc-key {
  padding: 3px 8px;
  background: rgba(255,51,0,0.10);
  border: 1px solid rgba(255,51,0,0.35);
  border-radius: 3px;
  color: #ffb694;
  letter-spacing: 0.10em;
}
.mode-chip.is-tripo {
  background: rgba(255,51,0,0.85);
  border-color: transparent;
  color: #0a0a0a;
}
.mode-chip.is-tripo .mc-key {
  background: rgba(10,10,10,0.28);
  border-color: rgba(10,10,10,0.32);
  color: #0a0a0a;
}

/* Apply CTA — bottom right */
.apply {
  position: fixed; bottom: 32px; right: 32px; z-index: 30;
  padding: 11px 22px;
  background: var(--accent); color: #0a0a0a;
  font-family: var(--sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.apply:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255,51,0,0.35); }

/* Slide-transition fade for the badge label */
.badge.swap .name { opacity: 0; }

/* Mobile */
@media (max-width: 700px) {
  .mark { font-size: 12px; }
  .loc { font-size: 9px; }
  .badge .idx { font-size: 32px; }
  .badge .name { font-size: 26px; }
}
