:root {
  --bg: #ecebe7;
  --ink: #161616;
  --ink-2: #6f6d69;
  --ink-3: #a3a09a;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

#dream { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#dream { touch-action: none; }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }

.corner { position: fixed; z-index: 2; }
.tl { top: 28px; left: 32px; }
.tr { top: 33px; right: 32px; font-family: var(--sans); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.bl { bottom: 30px; left: 32px; font-variant-numeric: tabular-nums; }
.br { bottom: 30px; right: 32px; }

.mark { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.mark svg { width: 30px; height: 30px; }
.mark span { font-size: 17px; letter-spacing: -0.01em; }

.hero {
  position: fixed;
  left: 50%;
  bottom: 12vh;
  z-index: 2;
  text-align: center;
  width: min(92vw, 640px);
  pointer-events: none;
  transform: translate(-50%, 14px);
}
.hero h1 { text-wrap: balance; font-weight: 300; font-size: clamp(28px, 3.4vw, 46px); letter-spacing: -0.03em; line-height: 1.08; }
.hero p { margin-top: 12px; font-size: 16px; color: var(--ink-2); letter-spacing: -0.005em; }
.pill {
  display: inline-block;
  margin-top: 26px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #f4f2ee;
  font-size: 15px;
  letter-spacing: -0.005em;
}

.hero, .corner { opacity: 0; transition: opacity 1.8s ease, transform 1.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hero { transition-delay: 0.9s; }
.ready .hero, .ready .corner { opacity: 1; }
.ready .hero { transform: translate(-50%, 0); }

@media (max-width: 640px) {
  .tl { top: 20px; left: 18px; }
  .tr { top: 26px; right: 18px; }
  .bl { bottom: 22px; left: 18px; }
  .br { display: none; }
  .hero { bottom: 11vh; }
  .hero p { font-size: 15px; }
}

#variant { background: none; border: 0; cursor: pointer; }
#variant:hover { color: var(--ink); }

/* ── spikes ── */
body.dark { --bg: #120607; --ink: #f6ebe2; --ink-2: rgba(246, 235, 226, 0.6); }
body.dark .pill { background: var(--ink); color: #1a0a0a; }
body.night { --bg: #070509; --ink: #efe6f0; --ink-2: rgba(239, 230, 240, 0.55); }
body.night .pill { background: var(--ink); color: #0b080d; }
.fade { transition: opacity 0.9s ease, filter 0.9s ease; }
.fade.out { opacity: 0; filter: blur(8px); }
