:root {
  --bg: #05060a;
  --bg-2: #0a0d18;
  --ink: #eef1f8;
  --muted: #8b93ad;
  --faint: #5a627e;
  --accent: #5eead4;   /* teal */
  --accent-2: #818cf8; /* indigo */
  --accent-3: #f0abfc; /* violet */
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: radial-gradient(1200px 800px at 70% 10%, var(--bg-2), var(--bg) 60%);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: auto;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
}

/* ---- Stage axis ---- */
.stages {
  position: fixed;
  bottom: 26px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 0 max(24px, 5vw);
  pointer-events: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}
.stages span {
  position: relative;
  color: #4a5170;
  transition: color 0.4s ease;
}
.stages span::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2b3150;
  transition: all 0.4s ease;
}
.stages span.active { color: var(--accent); }
.stages span.active::before {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* ---- Brand ---- */
.brand {
  position: fixed;
  top: 28px;
  left: max(24px, 5vw);
  z-index: 3;
}
.brand__mark {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--ink);
}
.brand__accent {
  color: var(--accent);
  margin-left: 2px;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  z-index: 3;
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  padding: 96px max(24px, 5vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}
.hero > * { pointer-events: auto; }

.hero__name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 11vw, 7.5rem);
  line-height: 0.95;
  margin: 0;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, #ffffff 30%, var(--accent) 70%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__role {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  margin: 0.6rem 0 0;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.hero__bio {
  max-width: 46ch;
  margin: 1.4rem 0 0;
  font-size: clamp(0.95rem, 1.5vw, 1.12rem);
  line-height: 1.6;
  color: #d7dbe8;
}

/* ---- Stats ---- */
.stats__caption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 2.4rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.stats__logo {
  width: 16px;
  height: 16px;
  flex: none;
}
.stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  margin: 0.9rem 0 0;
  padding: 0;
}
/* Twitch row — secondary in the hierarchy: smaller, dimmer caption. */
.stats__caption--alt { color: var(--muted); }
.stats--secondary {
  gap: clamp(1.25rem, 4vw, 2.6rem);
}
.stats--secondary .stats__num {
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  color: var(--muted);
}
.stats li { display: flex; flex-direction: column; }
.stats__num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stats__label {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---- Links ---- */
.links {
  display: flex;
  gap: 1.6rem;
  margin-top: 1.1rem;
}
.links a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.links a:hover::after { transform: scaleX(1); }

/* ---- Readout ---- */
.readout {
  position: fixed;
  bottom: 26px;
  right: max(24px, 5vw);
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3c425e;
}

/* ---- Tooltip ---- */
.tooltip {
  position: fixed;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -120%);
  transition: opacity 0.18s ease;
  background: rgba(12, 15, 26, 0.92);
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  max-width: 260px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.tooltip.show { opacity: 1; }
.tooltip__era {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.tooltip__title {
  font-weight: 600;
  font-size: 14px;
  margin: 3px 0;
  color: var(--ink);
}
.tooltip__desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

@media (max-width: 640px) {
  .stats { gap: 1.4rem 2rem; }
  .readout { display: none; }
  /* Decorative bottom axis overlaps scrolling content on phones — hide it. */
  .stages { display: none; }
  /* On phones, drop the fixed/centered layout for a simple scrolling column
     so nothing pins over the content. */
  .brand {
    position: static;
    padding: 22px max(24px, 5vw) 0;
  }
  .hero {
    min-height: auto;
    justify-content: flex-start;
    padding-top: 24px;
    padding-bottom: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stages span, .tooltip { transition: none; }
}
