:root {
  --fondo: #0b0a0d;          /* the near black ground */
  --accento: #ff6b3d;        /* the one accent: a warm ember orange */
  --tono-1: #ff9f6e;         /* a lighter tone of the accent */
  --tono-2: #c8456e;         /* a deeper, rosier tone of the accent */
  --testo: #f5efe9;          /* the warm white of the type */
  --testo-tenue: rgba(245, 239, 233, 0.62);
  --grana: 0.11;             /* how strong the grain is */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--fondo);
  color: var(--testo);
  font-family: 'Instrument Sans Variable', system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  max-height: 100vh;
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
}

.glow, .grain, .vignette { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.glow { filter: saturate(1.08); }
.grain { opacity: var(--grana); mix-blend-mode: overlay; image-rendering: pixelated; }
.vignette { background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(5, 4, 7, 0.55) 100%); }

.hero {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.4vh, 22px);
  padding: 0 6vw;
  text-align: center;
  pointer-events: none;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono Variable', ui-monospace, monospace;
  font-size: clamp(10px, min(1.1vw, 2.4vh), 12px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--testo-tenue);
}
.kicker__mark { width: 14px; height: 14px; fill: none; stroke: var(--tono-1); stroke-width: 1.4; stroke-linecap: round; }

.title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(30px, min(8.4vw, 13vh), 104px);
  font-weight: 560;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.title__line { display: block; }
.title__line--soft { font-weight: 380; color: rgba(245, 239, 233, 0.86); }

.line {
  max-width: 34ch;
  font-size: clamp(12px, min(1.5vw, 3vh), 17px);
  line-height: 1.45;
  color: var(--testo-tenue);
}

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(2px, 1vh, 10px);
  height: clamp(36px, 6.4vh, 46px);
  padding: 0 clamp(16px, 2vw, 22px);
  border: 1px solid rgba(245, 239, 233, 0.22);
  border-radius: 999px;
  background: rgba(245, 239, 233, 0.06);
  color: var(--testo);
  font: inherit;
  font-size: clamp(12px, min(1.3vw, 2.6vh), 15px);
  font-weight: 520;
  cursor: pointer;
  pointer-events: auto;
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.pill__fill { position: absolute; inset: 0; border-radius: inherit; background: var(--testo); transform: scaleX(0); transform-origin: 0 50%; }
.pill__label, .pill__arrow { position: relative; }
.pill__arrow { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pill:focus-visible { outline: 2px solid var(--tono-1); outline-offset: 3px; }

.hint {
  position: absolute;
  left: 50%;
  bottom: clamp(12px, 4vh, 28px);
  transform: translateX(-50%);
  font-family: 'Geist Mono Variable', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(245, 239, 233, 0.4);
  white-space: nowrap;
  pointer-events: none;
}

@media (max-height: 460px) {
  .line { display: none; }
  .hint { bottom: 10px; }
}
