:root {
  --paper: #fff6f0;
  --c1: #ffc4a3;
  --c2: #f9a9c8;
  --c3: #bfb2ff;
  --c4: #ffe7c7;
  --ink: #17151c;
  --ink-soft: #5d5866;
  --cta: #17151c;
  --cta-ink: #ffffff;
  --font: "Mona Sans Variable", "Mona Sans", system-ui, sans-serif;
}

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

html, body { height: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  /* what is left when WebGL is missing: the same colours, still */
  background:
    radial-gradient(60% 70% at 22% 30%, var(--c1), transparent 70%),
    radial-gradient(55% 65% at 80% 25%, var(--c3), transparent 70%),
    radial-gradient(60% 70% at 70% 85%, var(--c2), transparent 70%),
    radial-gradient(70% 70% at 25% 85%, var(--c4), transparent 70%),
    var(--paper);
}

.field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
}

/* a very fine static grain over everything, on top of the one in the shader, so the text sits on paper */
.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero {
  width: min(640px, 100% - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(10px, 2.4vh, 20px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(23, 21, 28, 0.08);
  box-shadow: 0 1px 2px rgba(23, 21, 28, 0.04), 0 8px 24px -12px rgba(23, 21, 28, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: clamp(11px, 1.6vh, 13px);
  font-weight: 500;
  color: var(--ink-soft);
}

.pill__tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.pill__arrow {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.title {
  font-size: clamp(28px, min(8.4vw, 9vh), 68px);
  line-height: 1.02;
  font-weight: 640;
  font-stretch: 105%;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.lede {
  max-width: 34em;
  font-size: clamp(13px, min(3.6vw, 2.3vh), 17px);
  line-height: 1.5;
  color: var(--ink-soft);
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: clamp(2px, 0.8vh, 8px);
}

.cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: clamp(10px, 1.6vh, 13px) clamp(16px, 2.4vh, 20px);
  border: 0;
  border-radius: 999px;
  background: var(--cta);
  color: var(--cta-ink);
  font: 600 clamp(13px, 1.9vh, 15px) / 1 var(--font);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 24px -10px rgba(23, 21, 28, 0.55);
  transition: box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.cta:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.cta__label { position: relative; }

.cta__arrow {
  position: relative;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* the light that crosses the button on hover; GSAP moves it */
.cta__shine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-120%);
  pointer-events: none;
}

.note {
  font-size: clamp(12px, 1.7vh, 13px);
  color: var(--ink-soft);
}

@media (hover: hover) {
  .cta:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 14px 30px -10px rgba(23, 21, 28, 0.6); }
}

@media (max-width: 420px) {
  .note { width: 100%; }
}
