:root {
  --bg: #05070d;
  --bg-alt: #0b0f1a;
  --panel: #0e1320;
  --border: #1c2333;
  --fg: #e6f1ff;
  --fg-dim: #7c8aa3;
  --accent-a: #6ee7ff;
  --accent-b: #c084fc;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --nav-h: 56px;
}

* { box-sizing: border-box; }

/* browsers default <pre> to the system monospace font, which otherwise
   silently overrides the JetBrains Mono set on body */
pre { font-family: inherit; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--accent-a);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a[aria-disabled="true"] {
  color: var(--fg-dim);
  cursor: default;
  pointer-events: none;
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--accent-a);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}

/* ---------- ambient background ---------- */
#ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* ---------- nav ---------- */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(5, 7, 13, 0.65);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
#site-nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(5, 7, 13, 0.9);
}
.nav-mark {
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--fg);
}
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--fg-dim);
  font-size: 13px;
  letter-spacing: 0.03em;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-a);
  text-decoration: none;
  border-bottom-color: var(--accent-a);
}
@media (max-width: 640px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 11px; }
}

/* ---------- hero ---------- */
header#top {
  position: relative;
  height: 220vh;
}
/* shorter scroll runway when JS hands the explosion off to a timed
   auto-finish instead of scrubbing the whole thing by hand (see
   AUTO_EXPLODE in main.js) */
body.hero-autoplay header#top {
  height: 140vh;
}
#hero-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(110, 231, 255, 0.06), transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(192, 132, 252, 0.05), transparent 60%);
}
#hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 16px;
  width: 100%;
  max-width: 1100px;
}
#ascii-title {
  margin: 0;
  font-size: clamp(5px, 1.55vw, 15px);
  line-height: 1.15;
  font-weight: 500;
  white-space: pre;
  text-align: left;
  color: var(--fg);
  background: linear-gradient(100deg, var(--accent-a), var(--fg) 35%, var(--accent-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(110, 231, 255, 0.18));
}
#explode-canvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

body.reduced-motion header#top { height: 100vh; }
body.reduced-motion #hero-pin { position: relative; }
.tagline {
  margin: 0;
  color: var(--fg-dim);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--fg-dim);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}
.scroll-cue-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(var(--accent-a), transparent);
  animation: scrollcue 1.6s ease-in-out infinite;
}
@keyframes scrollcue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue-line { animation: none; }
}

/* ---------- sections ---------- */
main {
  position: relative;
  z-index: 1;
  background: var(--bg);
}
.section {
  max-width: 880px;
  margin: 0 auto;
  padding: 100px 24px;
  scroll-margin-top: var(--nav-h);
}
.section-title {
  margin: 0 0 32px;
  color: var(--accent-a);
  font-size: clamp(9px, 1.7vw, 15px);
  line-height: 1.2;
  filter: drop-shadow(0 0 10px rgba(110, 231, 255, 0.25));
}
.section-body p {
  color: var(--fg-dim);
  max-width: 62ch;
}
.section-body p + p { margin-top: 16px; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- founders ---------- */
.founder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.founder-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  overflow: hidden;
}
.founder-avatar-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0 0 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.founder-avatar {
  margin: 0;
  color: var(--accent-b);
  font-size: 13px;
  line-height: 1;
  max-width: 100%;
}
.founder-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
  letter-spacing: 0.03em;
}
.founder-role {
  margin: 0 0 12px;
  color: var(--fg-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.founder-card p:not(.founder-role) {
  color: var(--fg-dim);
  font-size: 14px;
}

/* ---------- game ---------- */
.game-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px;
}
.game-logo {
  margin: 0 0 12px;
  color: var(--fg);
  font-size: 20px;
  letter-spacing: 0.06em;
}
.game-tag {
  color: var(--accent-b);
  margin: 0 0 16px;
}
.game-links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--accent-a);
  border-radius: 3px;
  color: var(--accent-a);
  font-size: 13px;
  letter-spacing: 0.05em;
}
.btn:hover { text-decoration: none; background: rgba(110, 231, 255, 0.08); }
.btn[aria-disabled="true"] {
  color: var(--fg-dim);
  border-color: var(--border);
}

.social-links { font-size: 13px; }

/* ---------- footer ---------- */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 24px 48px;
  color: var(--fg-dim);
  font-size: 12px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
