/* ============================================================
   VAULTED STUDIOS
   Theme: cool steel + electric cyan, Inter typography
   ============================================================ */

:root {
  /* Surfaces */
  --bg-0: #050608;
  --bg-1: #0a0c10;
  --bg-2: #11141b;
  --surface: #151922;
  --card: #10141c;
  --card-2: #161b26;

  /* Lines */
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --line-accent: rgba(49, 122, 224, 0.4);

  /* Accent — logo blue */
  --accent-pale: #d6e6ff;
  --accent-bright: #5b9dff;
  --accent-deep: #1d5bb8;
  --accent-shadow: #143f80;
  --accent: #317ae0;

  /* Steel for vault metal */
  --steel-light: #cdd2dc;
  --steel: #6d7589;
  --steel-mid: #3a4055;
  --steel-dark: #1e2230;
  --steel-black: #0c0e16;

  --green: #34d399;

  /* Text */
  --text: #f4f7fb;
  --text-2: #b7c0cc;
  --text-3: #7d8794;
  --text-4: #3d4654;

  --font-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Roboto Mono', Menlo, monospace;

  /* Motion */
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-in-out: cubic-bezier(.65,.05,.36,1);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--accent); color: #fff; }

html { scroll-behavior: smooth; }
html, body { background: var(--bg-0); color: var(--text); }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg-0);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* Particles canvas */
#bg-particles { display: none; }

/* ============================================================
   Layout container
   ============================================================ */
.container {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  position: relative;
  z-index: 1;
}

/* ============================================================
   Topbar
   ============================================================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-2);
  background: linear-gradient(180deg, rgba(8,9,13,0.8), rgba(8,9,13,0));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: rgba(8,9,13,0.78);
  border-bottom: 1px solid var(--line);
}
.topbar-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700;
  color: var(--text);
  font-size: 15px;
  letter-spacing: -0.01em;
}
.topbar-brand img { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; }

.topbar-nav { display: flex; gap: 30px; }
.topbar-nav a {
  position: relative;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s var(--ease-out);
}
.topbar-nav a:hover { color: var(--accent-bright); }
.topbar-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.topbar-nav a:hover::after { transform: scaleX(1); }

.topbar-nav a.is-active { color: var(--accent-bright); }
.topbar-nav a.is-active::after { transform: scaleX(1); }

/* ============================================================
   HERO + VAULT
   ============================================================ */
.hero {
  position: relative;
  /* 100vh of sticky stage + scroll runway for the vault sequence and the
     game slideshow. --hero-extra is set from JS once the games are known. */
  height: calc(100vh + var(--hero-extra, 240) * 1vh);
  z-index: 1;
}
.hero-track { position: relative; height: 100%; }

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* Background */
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
}
.hero-bg-glow {
  position: absolute; inset: 0;
  background: radial-gradient(50% 40% at 50% 50%, rgba(49,122,224,0.14), transparent 70%);
  filter: blur(10px);
}
.hero-bg-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(closest-side, transparent 60%, rgba(0,0,0,0.85) 100%);
}

/* Hero meta corner labels */
.hero-meta {
  position: absolute;
  z-index: 6;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15,17,23,0.5);
  backdrop-filter: blur(8px);
}
.hero-meta-top { top: 96px; left: clamp(20px, 4vw, 56px); }
.hero-meta-side {
  bottom: 62px; left: 50%; transform: translateX(-50%);
  animation: pulseSoft 2.4s var(--ease-in-out) infinite;
}
.hero-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 12px var(--accent-bright);
  animation: pulseSoft 1.6s var(--ease-in-out) infinite;
}
@keyframes pulseSoft { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Title — sits behind the vault */
.hero-content {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  justify-items: center;
  text-align: center;
  z-index: 2;
  pointer-events: none;
  opacity: calc(var(--reveal, 0.18) * (1 - var(--hero-out, 0)));
  transform:
    translateY(calc((1 - var(--reveal, 0)) * 5vh))
    scale(calc((0.94 + var(--reveal, 0) * 0.06) * (1 - var(--hero-out, 0) * 0.1)));
  transition: opacity 0.05s linear, transform 0.05s linear;
  padding-top: clamp(84px, 10vh, 124px);
}
.hero-content[data-dismissed='1'] { pointer-events: none; visibility: hidden; }
.hero-title {
  display: flex; flex-direction: column;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(52px, 11vw, 148px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0;
  color: #f6f1e8;
}
.hero-title-line {
  display: block;
  color: #f6f1e8;
}
.hero-tagline {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.6vw, 20px);
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-2);
  margin-top: 16px;
  opacity: calc(var(--reveal, 0) * 1.2);
}
.hero-cta {
  display: flex; gap: 14px; justify-content: center;
  margin-top: 28px;
  pointer-events: auto;
  opacity: calc(max(0, var(--reveal, 0) - 0.6) * 2.5);
  transform: translateY(calc((1 - var(--reveal, 0)) * 10px));
  transition: opacity 0.05s linear, transform 0.05s linear;
}
.hero-cta .btn { pointer-events: auto; }

/* ============================================================
   THE VAULT — brushed steel + cyan glow inside
   ============================================================ */
.vault-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  z-index: 4;
  perspective: 2400px;
  transform-style: preserve-3d;
  /* Sinks as the wordmark reveals so the two stop fighting for the centre. */
  transform: translateY(calc(var(--reveal, 0) * 18vh));
  transition: transform 0.08s linear;
}
.vault-shaft {
  position: absolute;
  width: clamp(360px, 70vmin, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    rgba(49,122,224,0.0) 30%,
    rgba(49,122,224,0.22) 45%,
    rgba(49,122,224,0.06) 70%,
    transparent 80%);
  filter: blur(40px);
  opacity: calc(var(--reveal, 0) * 1.6);
  transition: opacity 0.05s linear;
  z-index: 0;
}

.vault {
  position: relative;
  width: clamp(280px, 56vmin, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform-style: preserve-3d;
  transform:
    translateZ(0)
    scale(calc((1 + var(--zoom, 0) * 0.5) * (1 - var(--recede, 0) * 0.42)));
  opacity: calc((1 - var(--fade, 0) * 0.95) * (1 - var(--recede, 0) * 0.45));
  transition: transform 0.08s linear, opacity 0.08s linear;
}

/* Frame: outer rim around the door */
.vault-frame {
  position: absolute; inset: 0;
  border-radius: 50%;
  transform-style: preserve-3d;
  pointer-events: none;
  /* Must paint under the interior — .vault-frame-inner is an opaque disc that
     would otherwise cover the lit shaft once the door swings away. */
  z-index: 0;
}
.vault-frame-outer {
  position: absolute; inset: -18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, #3a4055, #14171f 70%),
    #14171f;
  box-shadow:
    inset 0 0 40px rgba(0,0,0,0.9),
    inset 0 0 0 2px rgba(255,255,255,0.04),
    0 50px 80px -20px rgba(0,0,0,0.85),
    0 0 80px rgba(49,122,224,0.06);
}
.vault-frame-bevel {
  position: absolute; inset: 8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    #2a2e3c, #4a5267, #1a1d28, #3a4055, #2a2e3c);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 0 4px 8px rgba(0,0,0,0.6),
    inset 0 -4px 8px rgba(0,0,0,0.6);
}
.vault-frame-inner {
  position: absolute; inset: 18px;
  border-radius: 50%;
  background: #050608;
  box-shadow:
    inset 0 0 40px rgba(0,0,0,0.9),
    inset 0 0 0 1px rgba(255,255,255,0.05);
}

/* Interior — visible behind/through opening door */
.vault-interior {
  position: absolute; inset: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      #0a1f2c 0%, #0a1018 60%, #050608 100%);
  overflow: hidden;
  z-index: 1;
}
.vault-interior-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 55%,
    rgba(220,250,255,0.95) 0%,
    rgba(91,157,255,0.6) 20%,
    rgba(49,122,224,0.18) 45%,
    transparent 70%);
  opacity: calc(var(--door-open, 0) * 1.2);
  transition: opacity 0.1s linear;
  mix-blend-mode: screen;
}
.vault-interior-rays {
  position: absolute; inset: -20%;
  background:
    conic-gradient(from 0deg,
      transparent 0deg, rgba(170,205,255,0.22) 6deg, transparent 12deg,
      transparent 36deg, rgba(170,205,255,0.16) 42deg, transparent 48deg,
      transparent 72deg, rgba(170,205,255,0.2) 78deg, transparent 84deg,
      transparent 108deg, rgba(170,205,255,0.16) 114deg, transparent 120deg,
      transparent 144deg, rgba(170,205,255,0.2) 150deg, transparent 156deg,
      transparent 180deg, rgba(170,205,255,0.22) 186deg, transparent 192deg,
      transparent 216deg, rgba(170,205,255,0.16) 222deg, transparent 228deg,
      transparent 252deg, rgba(170,205,255,0.2) 258deg, transparent 264deg,
      transparent 288deg, rgba(170,205,255,0.16) 294deg, transparent 300deg,
      transparent 324deg, rgba(170,205,255,0.2) 330deg, transparent 336deg);
  animation: rayspin 24s linear infinite;
  opacity: calc(var(--door-open, 0) * 0.6);
  mix-blend-mode: screen;
}
@keyframes rayspin { to { transform: rotate(360deg); } }

.vault-interior-emblem {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: calc(var(--door-open, 0) * 1.1 * (1 - var(--recede, 0) * 0.85));
  transform: scale(calc(0.6 + var(--door-open, 0) * 0.5));
  transition: opacity 0.1s linear, transform 0.1s linear;
}
.vault-interior-emblem img { width: 62%; height: 62%; object-fit: contain; filter: drop-shadow(0 0 28px rgba(91,157,255,0.75)); }

/* The door — pivots open on left hinge */
.vault-door {
  position: absolute; inset: 18px;
  border-radius: 50%;
  transform-style: preserve-3d;
  transform-origin: 0% 50%;
  transform: rotateY(calc(var(--door-open, 0) * -118deg)) translateZ(2px);
  transition: transform 0.05s linear;
  will-change: transform;
  z-index: 3;
  filter: drop-shadow(calc(var(--door-open, 0) * 40px) 0 60px rgba(0,0,0,0.7));
}
.vault-door-face {
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    /* brushed steel */
    repeating-conic-gradient(from 0deg,
      rgba(255,255,255,0.0) 0deg, rgba(255,255,255,0.05) 0.6deg,
      rgba(255,255,255,0.0) 1.2deg, rgba(0,0,0,0.07) 1.8deg),
    radial-gradient(circle at 35% 30%, #5a6275 0%, #2a2e3c 50%, #14171f 100%);
  box-shadow:
    inset 0 0 60px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 0 8px rgba(20,23,31,0.6),
    inset 0 0 0 9px rgba(255,255,255,0.06);
  overflow: hidden;
}
/* Sheen sweep */
.vault-door-shine {
  position: absolute; inset: -10%;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(200,230,255,0.18) 48%,
    rgba(255,255,255,0.4) 50%,
    rgba(200,230,255,0.18) 52%,
    transparent 70%);
  opacity: calc(var(--shine, 0) * 1);
  transform: translateX(calc(-30% + var(--shine, 0) * 60%));
  transition: opacity 0.1s linear, transform 0.1s linear;
  mix-blend-mode: screen;
}

/* Concentric rings */
.vault-door-rings span {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  transform: translate(-50%, -50%);
}
.vault-door-rings span:nth-child(1) { width: 88%; height: 88%; }
.vault-door-rings span:nth-child(2) { width: 70%; height: 70%; border-color: rgba(255,255,255,0.12); }
.vault-door-rings span:nth-child(3) { width: 52%; height: 52%; border-color: rgba(255,255,255,0.10); }

/* Bolts */
.vault-bolts {
  position: absolute; inset: 0;
  pointer-events: none;
}
.vault-bolt {
  position: absolute;
  top: 50%; left: 50%;
  width: 22px; height: 22px;
  margin-left: -11px; margin-top: -11px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #dde1ea, #6d7589 55%, #1e2230 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.4),
    0 1px 2px rgba(0,0,0,0.5),
    0 0 8px rgba(49,122,224,0.18);
  --r: 44%;
  transform:
    rotate(var(--angle, 0deg))
    translateY(calc(-1 * var(--r) * (1 - var(--retract, 0) * 0.42)));
  transition: transform 0.06s linear;
}
.vault-bolt::after {
  content: '';
  position: absolute; inset: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #ffffff, #aab1c2 50%, #3a4055 100%);
  box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.5);
}

/* Central handle */
.vault-handle {
  position: absolute;
  top: 50%; left: 50%;
  width: 38%; height: 38%;
  transform: translate(-50%, -50%) rotate(calc(var(--handle-spin, 0) * 1deg));
  transition: transform 0.06s linear;
  pointer-events: none;
}
.vault-handle-disc {
  position: absolute; inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2a2e3c, #14171f 70%);
  box-shadow:
    inset 0 0 0 2px rgba(49,122,224,0.4),
    inset 0 0 18px rgba(0,0,0,0.8),
    0 8px 22px rgba(0,0,0,0.6);
}
.vault-handle-spokes {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

/* Engraving on the door */
.vault-engraving {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, calc(-50% + 32%));
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--font-sans);
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0,0,0,0.6), 0 -1px 0 rgba(255,255,255,0.06);
  pointer-events: none;
}
.vault-engraving-top { font-size: clamp(10px, 1.4vmin, 14px); }
.vault-engraving-bot {
  font-size: clamp(8px, 1vmin, 10px);
  letter-spacing: 0.48em;
  color: rgba(255,255,255,0.22);
  margin-top: 4px;
}

/* Cast shadow on wall */
.vault-door-shadow {
  position: absolute; inset: 18px;
  border-radius: 50%;
  /* Cast from the hinge side so it darkens the rim, not the lit centre. */
  background: linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.45) 38%, transparent 72%);
  filter: blur(12px);
  transform: translateX(calc(var(--door-open, 0) * -14px));
  opacity: calc(var(--door-open, 0) * 0.55);
  z-index: 2;
}

/* Vault progress indicator */
.vault-progress {
  position: absolute;
  top: 50%; right: clamp(20px, 4vw, 60px);
  /* Cancels the stage's reveal-driven sink so the gauge stays put. */
  transform: translateY(calc(-50% - var(--reveal, 0) * 18vh));
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
  z-index: 6;
}
.vault-progress-track {
  width: 4px; height: 220px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.vault-progress-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(var(--vault-bar, 0) * 100%);
  background: linear-gradient(180deg, var(--accent-pale), var(--accent) 80%);
  box-shadow: 0 0 10px var(--accent);
  transition: height 0.08s linear;
}
.vault-progress-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-3);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
@media (max-width: 720px) { .vault-progress { display: none; } }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--text-3);
  z-index: 6;
  opacity: calc(1 - var(--reveal, 0) * 2);
  pointer-events: none;
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, transparent, var(--accent));
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: ''; position: absolute; top: -50%; left: -1px; width: 3px; height: 50%;
  background: var(--accent-bright);
  animation: scrollDot 1.8s var(--ease-in-out) infinite;
  box-shadow: 0 0 8px var(--accent-bright);
}
@keyframes scrollDot {
  0% { top: -60%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  padding: 14px 26px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
.btn-primary::after { content: none; }

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(49,122,224,0.06);
  border-color: var(--accent);
  color: var(--accent-bright);
}

.btn-large {
  padding: 18px 34px;
  font-size: 15px;
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  position: relative;
  padding: clamp(60px, 10vh, 120px) 0 clamp(40px, 6vh, 80px);
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.stat {
  background: linear-gradient(180deg, rgba(20,23,31,0.75), rgba(13,15,21,0.85));
  padding: 32px 24px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.4s var(--ease-out);
}
.stat:hover::before { opacity: 1; }
.stat-num {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1;
  background: linear-gradient(180deg, #ffffff, #a8aebd 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-2);
  margin-top: 4px;
}
.stat-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.stat-sub .live {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
  box-shadow: 0 0 8px var(--green);
  animation: pulseSoft 1.4s var(--ease-in-out) infinite;
}

/* ============================================================
   Sections
   ============================================================ */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: 12px;
}
.section-title .gold {
  font-style: italic;
  color: var(--accent);
}
.section-sub {
  color: var(--text-2);
  max-width: 540px;
  font-size: clamp(14px, 1.1vw, 16px);
}
.section-head { margin-bottom: 48px; }

.about {
  padding: clamp(60px, 12vh, 140px) 0;
  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.about-right p { color: var(--text-2); margin-bottom: 18px; font-size: 17px; line-height: 1.6; }
.about-right strong { color: var(--accent-bright); font-weight: 600; }
.about-pills {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 24px;
}
.about-pills li {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  background: rgba(20,23,31,0.4);
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   GAMES GRID
   ============================================================ */
.games {
  padding: clamp(40px, 8vh, 100px) 0 clamp(60px, 12vh, 120px);
  position: relative;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.game-card {
  position: relative;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}
.game-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(49,122,224,0.5), transparent 30%, transparent 70%, rgba(49,122,224,0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
.game-card:hover {
  border-color: rgba(49,122,224,0.35);
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(49,122,224,0.18),
    0 0 80px -10px rgba(49,122,224,0.18);
}
.game-card:hover::before { opacity: 1; }

.game-card-rank {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: rgba(8,9,13,0.7);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  z-index: 4;
  backdrop-filter: blur(8px);
}

.game-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-1);
}
.game-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.5s var(--ease-out);
  filter: saturate(0.95);
}
.game-card:hover .game-card-thumb img {
  transform: scale(1.06);
  filter: saturate(1.1);
}
.game-card-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(8,9,13,0.85));
  pointer-events: none;
}

.game-card-playing {
  position: absolute; top: 14px; right: 14px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text);
  background: rgba(8,9,13,0.7);
  padding: 6px 10px 6px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.game-card-playing::before {
  content: '';
  position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulseSoft 1.6s var(--ease-in-out) infinite;
}
.game-card-playing.dim::before { background: var(--text-4); box-shadow: none; animation: none; }

.game-card-body {
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.game-card-head {
  display: flex; gap: 14px; align-items: flex-start;
}
.game-card-icon {
  width: 56px; height: 56px; min-width: 56px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  overflow: hidden;
  margin-top: -36px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  position: relative;
  z-index: 3;
}
.game-card-icon img { width: 100%; height: 100%; object-fit: cover; }

.game-card-title {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 2px;
}
.game-card-creator {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
}

.game-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.game-card-stat { display: flex; flex-direction: column; gap: 2px; }
.game-card-stat-num {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.game-card-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-3);
  text-transform: uppercase;
}

.game-card-desc {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
.game-card-genre {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}
.game-card-play {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-bright);
  padding: 10px 16px;
  border: 1px solid var(--line-accent);
  border-radius: 4px;
  transition: all 0.25s var(--ease-out);
}
.game-card-play:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(49,122,224,0.28);
}
.game-card-play svg { transition: transform 0.25s var(--ease-out); }
.game-card-play:hover svg { transform: translateX(2px); }

/* ============================================================
   COMMUNITIES
   ============================================================ */
.communities {
  padding: clamp(40px, 8vh, 100px) 0 clamp(60px, 12vh, 120px);
  position: relative;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(49,122,224,0.05), transparent 70%);
}
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.group-card {
  display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.group-card:hover {
  border-color: rgba(49,122,224,0.35);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}
.group-card-head {
  display: flex; align-items: center; gap: 14px;
}
.group-card-icon {
  width: 56px; height: 56px; min-width: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-1);
  overflow: hidden;
}
.group-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.group-card-name {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.2;
}
.group-card-members {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-3);
  margin-top: 4px;
}
.group-card-count {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 32px;
  background: linear-gradient(180deg, #ffffff, #5b9dff 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.group-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.group-card-owner {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}
.group-card-link {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.group-card-link:hover { color: var(--accent-bright); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: clamp(40px, 8vh, 100px) 0 clamp(80px, 14vh, 140px);
  position: relative;
}
.cta-card {
  text-align: center;
  padding: clamp(48px, 8vw, 100px) clamp(28px, 5vw, 60px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(49,122,224,0.12), transparent 70%),
    linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line-accent);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000, transparent);
  pointer-events: none;
}
.cta-card h2 {
  font-size: clamp(34px, 4.6vw, 60px);
  margin-bottom: 14px;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff, #5b9dff 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-card p {
  color: var(--text-2);
  margin-bottom: 32px;
  font-size: clamp(14px, 1.2vw, 17px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--line);
  background: var(--bg-1);
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 12px;
}
.footer-mark {
  width: 36px; height: 36px;
  border-radius: 6px;
  object-fit: cover;
}
.footer-tag { color: var(--text-3); font-size: 14px; max-width: 300px; }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--text-2); font-size: 14px; transition: color 0.2s; }
.footer ul a:hover { color: var(--accent-bright); }
.footer-bottom {
  display: flex; justify-content: space-between;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ============================================================
   Scroll reveal helpers
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.stagger.in > * {
  opacity: 1; transform: translateY(0);
}
.stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.in > *:nth-child(3) { transition-delay: 0.19s; }
.stagger.in > *:nth-child(4) { transition-delay: 0.26s; }
.stagger.in > *:nth-child(5) { transition-delay: 0.33s; }
.stagger.in > *:nth-child(6) { transition-delay: 0.40s; }
.stagger.in > *:nth-child(7) { transition-delay: 0.47s; }
.stagger.in > *:nth-child(8) { transition-delay: 0.54s; }

/* ============================================================
   Chrome: skip link, scroll progress, back to top
   ============================================================ */
.skip-link {
  position: fixed; top: 10px; left: 50%;
  transform: translate(-50%, -160%);
  z-index: 100;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-bright));
  box-shadow: 0 0 12px rgba(49,122,224,0.7);
}

.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 55;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(15,17,23,0.82);
  backdrop-filter: blur(10px);
  color: var(--text-2);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  pointer-events: none;
  transition: all 0.3s var(--ease-out);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--accent-bright); border-color: var(--accent); background: rgba(49,122,224,0.1); }

:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================================
   Topbar: actions, mobile menu
   ============================================================ */
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.btn-small { padding: 10px 20px; font-size: 13px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(15,17,23,0.6);
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 5px;
  grid-auto-flow: row;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease-out);
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 74px; left: 12px; right: 12px;
  z-index: 49;
  display: flex; flex-direction: column;
  padding: 12px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(13,15,21,0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8);
  animation: navDrop 0.28s var(--ease-out);
}
.mobile-nav[hidden] { display: none; }
@keyframes navDrop { from { opacity: 0; transform: translateY(-10px); } }
.mobile-nav a {
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-2);
}
.mobile-nav a:hover { background: rgba(49,122,224,0.08); color: var(--accent-bright); }
.mobile-nav-cta {
  margin-top: 6px;
  text-align: center;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
}

@media (max-width: 880px) {
  .topbar-nav { display: none; }
  .nav-toggle { display: grid; }
  .topbar-cta { display: none; }
}

/* ============================================================
   GAME SHOWCASE — cards fly out of the open vault
   ============================================================ */
.showcase {
  position: absolute; inset: 0;
  z-index: 5;
  pointer-events: none;
  perspective: 1100px;
  perspective-origin: 50% 50%;
}
.showcase-cards {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
}

.show-card {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(248px, 33vmin, 392px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(26,29,41,0.96), rgba(16,18,26,0.98));
  border: 1px solid rgba(49,122,224,0.28);
  box-shadow:
    0 40px 90px -24px rgba(0,0,0,0.9),
    0 0 70px -12px rgba(49,122,224,0.35),
    inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) translateZ(-3200px);
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
}
.show-card.is-front { pointer-events: auto; }

.show-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-1);
}
.show-card-media img { width: 100%; height: 100%; object-fit: cover; }
.show-card-media::after {
  content: '';
  position: absolute; inset: 0;
  /* Roblox thumbnails often bake the title into the art — darken both ends so
     the overlaid chips stay legible. */
  background: linear-gradient(180deg, rgba(8,9,13,0.7), transparent 32% 42%, rgba(12,14,20,0.95));
}
.show-card-genre {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: rgba(8,9,13,0.75);
  border: 1px solid var(--line-accent);
  padding: 5px 10px;
  border-radius: 999px;
}
.show-card-live {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--text);
  background: rgba(8,9,13,0.75);
  border: 1px solid var(--line);
  padding: 5px 10px 5px 20px;
  border-radius: 999px;
}
.show-card-live::before {
  content: '';
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulseSoft 1.6s var(--ease-in-out) infinite;
}
.show-card-live.dim::before { background: var(--text-4); box-shadow: none; animation: none; }

.show-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.show-card-head { display: flex; align-items: center; gap: 12px; }
.show-card-icon {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: 11px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-1);
  margin-top: -34px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.show-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.show-card-title {
  font-size: clamp(15px, 1.9vmin, 19px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.show-card-creator { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

.show-card-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.show-card-metric { display: flex; flex-direction: column; gap: 1px; }
.show-card-metric b {
  font-size: 14px; font-weight: 700; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.show-card-metric span {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3);
}
.show-card-play {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 4px;
  font-size: 13px; font-weight: 700;
  color: #fff;
  background: var(--accent);
}
.show-card.is-front .show-card-play:hover { background: var(--accent-bright); }

/* HUD under the showcase */
.showcase-hud {
  position: absolute;
  bottom: clamp(78px, 11vh, 112px);
  left: 50%; transform: translateX(-50%);
  z-index: 7;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: var(--hud, 0);
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out);
}
.showcase-hud.is-live { pointer-events: auto; }
.showcase-hud-line {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.showcase-index { color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.showcase-name {
  color: var(--text-2);
  max-width: min(64vw, 420px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.showcase-dots { display: flex; gap: 8px; }
.showcase-dot {
  width: 26px; height: 4px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255,255,255,0.16);
  transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.showcase-dot:hover { background: rgba(255,255,255,0.34); }
.showcase-dot.is-on {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(49,122,224,0.8);
}

@media (max-width: 620px) {
  .showcase-hud { bottom: clamp(70px, 10vh, 96px); }
  .showcase-hud-line { flex-direction: column; gap: 5px; }
  .showcase-name { max-width: 84vw; }
  .showcase-dot { width: 18px; }
}

/* ============================================================
   FOUNDERS
   ============================================================ */
.founders { padding: clamp(40px, 8vh, 100px) 0; }
.founders-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 760px;
}
.founder {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.founder:hover { border-color: var(--accent); }
.founder img {
  width: 84px; height: 84px;
  object-fit: cover;
  background: var(--bg-2);
}
.founder h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  font-style: italic;
  line-height: 1;
}
.founder p { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.founder span {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .founders-row { grid-template-columns: 1fr; }
}

/* ============================================================
   CATALOG CONTROLS
   ============================================================ */
.catalog-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: rgba(20,23,31,0.55);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.22s var(--ease-out);
  white-space: nowrap;
}
.chip:hover { border-color: var(--line-accent); color: var(--text); }
.chip.is-on {
  background: rgba(49,122,224,0.12);
  border-color: var(--accent);
  color: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(49,122,224,0.07);
}
.chip small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  margin-left: 6px;
}
.chip.is-on small { color: var(--accent); }

.catalog-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.field {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 0 14px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(20,23,31,0.55);
  color: var(--text-3);
  transition: border-color 0.25s var(--ease-out);
}
.field:focus-within { border-color: var(--accent); }
.field input, .field select {
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  min-width: 150px;
}
.field input::placeholder { color: var(--text-3); }
.field-select { padding-right: 10px; }
.field select { min-width: 130px; cursor: pointer; }
.field select option { background: var(--bg-1); color: var(--text); }

.catalog-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}
.catalog-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--text-3);
  font-size: 15px;
}
.catalog-empty[hidden] { display: none; }

@media (max-width: 700px) {
  .catalog-bar { flex-direction: column; align-items: stretch; }
  .catalog-tools { flex-direction: column; }
  .field { width: 100%; }
  .field input, .field select { width: 100%; min-width: 0; }
}

.new-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px 2px;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 2px;
}

/* ============================================================
   BUILD PAGE
   ============================================================ */
.build-page { padding: 120px 0 80px; }
.build-hero { max-width: 760px; margin-bottom: 56px; }
.build-hero h1 {
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.95;
  font-weight: 400;
  margin: 14px 0 18px;
}
.build-hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.build-lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-2);
  max-width: 38rem;
}
.build-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.build-tier {
  padding: 22px 20px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.build-tier strong {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  margin-bottom: 10px;
}
.build-tier p { color: var(--text-2); font-size: 15px; }
.build-note {
  color: var(--text-3);
  font-size: 15px;
  margin-bottom: 48px;
}
.build-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 56px;
}
.build-card {
  padding: 28px 26px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.build-card h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  margin-bottom: 12px;
}
.build-card p { color: var(--text-2); margin-bottom: 12px; }
.build-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.build-card li { color: var(--text); font-size: 15px; }
.build-card li::before { content: "– "; color: var(--accent); }
@media (max-width: 800px) {
  .build-tiers, .build-split { grid-template-columns: 1fr; }
}

/* ============================================================
   Accessibility
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .hero { height: 100vh; }
  .vault-door, .hero-content, .vault-progress-bar { transition: none; }
  .showcase, .showcase-hud, .scroll-hint, .hero-meta-side { display: none; }
}
