:root {
  --bg: #0a0a0b;
  --fg: #f2f2f2;
  --muted: #a0a0a6;
  --accent: #c8d1ff;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--fg);
  font: 400 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
}

/* Accessible-only text */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw; height: 100vh;
  display: block;
  background: var(--bg-gradient, radial-gradient(60% 60% at 50% 45%, #121217 0%, #0a0a0b 70%));
  z-index: 0;
}

.site {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 6vh 4vw;
}

.hero {
  display: grid;
  place-items: center;
  gap: 12px;
}

.logo-stage {
  position: relative;
  width: min(56vmin, 520px);
  aspect-ratio: 1 / 1;
}

.logo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  will-change: opacity, transform, filter;
  transition: opacity 1200ms ease, transform 1400ms cubic-bezier(.2,.8,.2,1), filter 1200ms ease;
  opacity: 0;
  transform: scale(0.985) translateZ(0);
  filter: blur(2px) saturate(0.9);
}

.logo.current { opacity: 1; transform: scale(1) translateZ(0); filter: blur(0) saturate(1); }

.cta { text-align: center; }
.info { display: grid; place-items: center; margin-top: 28px; }
.title {
  font-size: clamp(22px, 2.2vw + 12px, 40px);
  letter-spacing: 0.02em;
}
.links { display: inline-flex; gap: 18px; margin-top: 8px; }
.links a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.links a:hover { color: var(--fg); border-color: rgba(255,255,255,0.14); background: rgba(255,255,255,0.02); }

.foot { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); text-align: center; color: var(--muted); }
.small { font-size: 12px; }
.muted { color: var(--muted); }
button.muted { background: transparent; border: 1px solid rgba(255,255,255,0.14); padding: 4px 10px; border-radius: 999px; cursor: pointer; }
button.muted:hover { color: var(--fg); border-color: rgba(255,255,255,0.3); }

@media (max-width: 600px) {
  .logo-stage { width: min(70vmin, 420px); }
  .links { gap: 12px; }
}

/* Dev panel (local tuning) */
#dev-panel {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 5;
  background: rgba(12,12,14,0.85);
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  backdrop-filter: blur(6px);
}
#dev-panel h3 { margin: 0 0 6px 0; font-size: 12px; font-weight: 600; color: var(--muted); }
#dev-panel .row { display: grid; grid-template-columns: 84px 160px 48px; align-items: center; gap: 8px; margin: 6px 0; }
#dev-panel input[type="range"] { width: 100%; }
#dev-panel .small { color: var(--muted); }
#dev-panel .toggle { position: fixed; bottom: 16px; left: 16px; z-index: 6; }
