:root {
  --bg: #050505;
  --fg: #f5f5f7;
  --fg-dim: rgba(245, 245, 247, 0.72);
  --glow: #8fe3ff;
  --glow-soft: rgba(143, 227, 255, 0.35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

/* soft central glow + vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 48%, rgba(120, 130, 150, 0.16), rgba(5, 5, 5, 0) 55%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
  z-index: 1;
}

.wordmark {
  position: fixed;
  top: clamp(20px, 4vw, 40px);
  left: clamp(20px, 4vw, 40px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fg);
}

.hero {
  position: relative;
  z-index: 2;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vh, 24px);
}

.cube-stage {
  position: relative;
  width: clamp(180px, 40vw, 420px);
  height: clamp(180px, 40vw, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cube-glow {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-soft) 0%, rgba(143, 227, 255, 0) 70%);
  filter: blur(24px);
  pointer-events: none;
}

#cube-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-text {
  margin: 0;
  font-size: clamp(28px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fg);
  text-align: center;
  white-space: nowrap;
}

.contact {
  position: fixed;
  right: clamp(20px, 4vw, 64px);
  bottom: clamp(24px, 6vh, 56px);
  z-index: 10;
  text-align: left;
  max-width: min(80vw, 320px);
}

.contact p {
  margin: 0;
}

.contact-lead {
  font-size: clamp(13px, 1.4vw, 16px);
  color: var(--fg);
  margin-bottom: clamp(12px, 2.5vh, 20px);
}

.contact-line {
  font-size: clamp(12px, 1.2vw, 14px);
  line-height: 1.5;
  color: var(--fg-dim);
}

.contact-line a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 520px) {
  .contact {
    right: 20px;
    bottom: 20px;
    max-width: 70vw;
  }

  .hero-text {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cube-glow {
    animation: none;
  }
}
