:root {
  --bg: #000;
  --fg: #fff;
  --muted: #6b6b6b;
  --line: #1a1a1a;
  --pad: clamp(20px, 4vw, 56px);
  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none) {
  body { cursor: auto; }
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--fg); color: var(--bg); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad);
  mix-blend-mode: difference;
  color: #fff;
}

.mark {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 14px;
  font-feature-settings: "tnum" 1;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right .35s cubic-bezier(.2,.8,.2,1);
}

.nav-links a:hover::after { right: 0; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  width: 100%;
  overflow: hidden;
}

#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: clamp(80px, 18vw, 240px);
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.no-webgl .hero-fallback { display: flex; }
.no-webgl #scene { display: none; }

.hero-meta {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(28px, 5vh, 56px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 var(--pad);
  pointer-events: none;
}

.tagline {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(12px);
  animation: rise .9s .6s cubic-bezier(.2,.8,.2,1) forwards;
}

.hint {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fade 1s 1.4s ease forwards;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  to { opacity: 1; }
}

/* ---------- about ---------- */

.about, .contact {
  padding: clamp(80px, 14vh, 180px) var(--pad);
  border-top: 1px solid var(--line);
}

.kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(28px, 5vh, 56px);
}

.display {
  font-weight: 700;
  font-size: clamp(40px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  max-width: 16ch;
}

.manifesto {
  margin-top: clamp(40px, 7vh, 80px);
  max-width: 56ch;
  display: grid;
  gap: 18px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: #d6d6d6;
}

/* ---------- contact ---------- */

.contact-title { max-width: none; }
.contact-line {
  display: block;
  overflow: hidden;
}
.contact-line > span { /* used if we wrap inner spans later */ display: inline-block; }

.contact-note {
  margin-top: clamp(40px, 7vh, 80px);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- footer ---------- */

.foot {
  display: flex;
  justify-content: space-between;
  padding: 24px var(--pad);
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- custom cursor ---------- */

.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 50;
  transform: translate(-50%, -50%);
  transition: width .25s ease, height .25s ease, background .25s ease;
}
.cursor.is-hover {
  width: 56px;
  height: 56px;
}

@media (hover: none) {
  .cursor { display: none; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
