:root {
  --bg: #050508;
  --fg: #f2efe9;
  --muted: rgba(242, 239, 233, 0.62);
  --line: rgba(242, 239, 233, 0.16);
  --accent: #ff7a3d;
  --glass: rgba(12, 12, 18, 0.55);
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  background: var(--bg) radial-gradient(ellipse at 30% 20%, #1a1f3a 0%, transparent 60%);
  color: var(--fg);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
#bg { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.top {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(16px, 3vw, 32px) clamp(16px, 4vw, 48px);
  pointer-events: none;
}
/* dark band behind the header so it stays readable over any background */
.top::before {
  content: ""; position: absolute; inset: 0 0 -60px 0; pointer-events: none;
  background: linear-gradient(rgba(5,5,8,.85), rgba(5,5,8,.5) 55%, transparent);
}
.top > * { pointer-events: auto; position: relative; }
.logo { font-family: var(--mono); font-weight: 500; font-size: 18px; color: var(--fg); text-shadow: 0 0 12px #000, 0 0 4px #000; text-decoration: none; letter-spacing: -0.02em; }
.logo span { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.link-btn {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--fg);
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(5,5,8,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .2s;
}
.link-btn:hover { border-color: var(--accent); }

.hero {
  position: fixed; left: clamp(16px, 4vw, 48px); bottom: clamp(130px, 17vh, 180px);
  max-width: 720px; pointer-events: none;
}
.hero > * { pointer-events: auto; position: relative; }
/* soft scrim so copy stays readable over busy backgrounds */
.hero::before {
  content: ""; position: absolute; inset: -18% -30% -25% -40%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(5,5,8,.8), rgba(5,5,8,.45) 60%, transparent);
}
.eyebrow { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 18px; }
h1 { font-size: clamp(44px, 8.5vw, 112px); line-height: 0.92; letter-spacing: -0.045em; font-weight: 700; }
.lede { margin-top: 22px; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.5; color: rgba(242,239,233,.75); max-width: 52ch; }
@media (max-width: 640px) { .wide { display: none; } }

.cta {
  margin-top: 28px; display: inline-flex; gap: 10px; align-items: center;
  padding: 14px 22px; border-radius: 999px;
  background: var(--fg); color: var(--bg); font-weight: 500;
  transition: transform .2s ease, background .2s ease;
}
.cta:hover { background: var(--accent); transform: translateY(-1px); }
.cta span { transition: transform .2s ease; }
.cta:hover span { transform: translateX(3px); }

.concepts {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: max-content; max-width: calc(100vw - 32px);
  font-family: var(--mono); font-size: 12px;
}
.concepts .row {
  display: flex; gap: 2px; padding: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  background: rgba(5,5,8,.7); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.concepts button { padding: 6px 11px; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.concepts button:hover { color: var(--fg); }
.concepts button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.concepts .hint {
  color: var(--fg); text-align: center; max-width: 60ch; line-height: 1.4;
  text-shadow: 0 0 10px #000, 0 0 3px #000; opacity: .85;
}
.concepts .hint:empty { display: none; }
@media (max-width: 560px) {
  .concepts { font-size: 11px; } .concepts button { padding: 6px 9px; }
  .hero { bottom: 120px; }
  html:not(.release) .hero { bottom: 172px; } /* room for three switcher rows */
  .concepts .hint { display: none; }
}

/* contact dialog */
.panel {
  width: min(460px, calc(100vw - 32px)); padding: 28px; margin: auto;
  color: var(--fg); background: var(--glass);
  border: 1px solid var(--line); border-radius: 20px;
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.panel[open] { animation: rise .35s cubic-bezier(.2,.8,.2,1); }
.panel::backdrop { background: rgba(0,0,0,.35); }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.panel h2 { font-size: 26px; letter-spacing: -0.03em; }
.close { font-size: 28px; line-height: 1; color: var(--muted); }
.close:hover { color: var(--fg); }
.panel label { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.panel small { opacity: .7; }
.panel input, .panel textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  font: 15px/1.4 var(--sans); color: var(--fg);
  background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 10px;
  outline: none; resize: vertical; transition: border-color .2s;
}
.panel input:focus, .panel textarea:focus { border-color: var(--accent); }
.panel .cta { margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.status { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); min-height: 1em; }
.status.ok { color: #7dffb0; }
.status.err { color: #ff8a80; }

@media (prefers-reduced-motion: reduce) {
  .logo span { animation: none; }
  .panel[open] { animation: none; }
}

/* release mode (no ?variants): no switcher, so the hero can sit lower */
.release .concepts { display: none; }
.release .hero { bottom: clamp(48px, 10vh, 110px); }
