:root {
  --night: #0d0b0a;
  --silk: #e9a27e;
  --silk-deep: #6e3524;
  --silk-light: #ffe2cf;
  --ink: #f6efe9;
  --ink-soft: #b4a59b;
  --edge: rgba(255, 236, 222, 0.12);
  --cta: #f6efe9;
  --cta-ink: #160f0c;
  --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(--night);
  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: a still band of warm light */
  background:
    linear-gradient(172deg, transparent 38%, rgba(233, 162, 126, 0.16) 48%, rgba(255, 226, 207, 0.22) 52%, rgba(233, 162, 126, 0.12) 57%, transparent 66%),
    var(--night);
  touch-action: pan-y;
}

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

/* a light grain over the silk, like the weave of the fabric */
.grain {
  position: absolute;
  inset: -50%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* a soft dark pool behind the words, so the ribbon never fights the headline */
.hush {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(min(50vw, 70vh) min(30vh, 34vw) at 50% 54%, rgba(13, 11, 10, 0.8), rgba(13, 11, 10, 0) 100%);
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(13, 11, 10, 0.62);
  border: 1px solid var(--edge);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  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(--silk);
  color: var(--cta-ink);
  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;
}

/* the headline takes a reflection from the silk: a sheen in the text, moved by the script with the ribbon's light */
.title {
  --sheen: 30%;
  font-size: clamp(30px, min(9vw, 10vh), 76px);
  line-height: 1;
  font-weight: 560;
  font-stretch: 104%;
  letter-spacing: -0.04em;
  color: var(--ink);
  background: linear-gradient(100deg, var(--ink) calc(var(--sheen) - 22%), var(--silk-light) calc(var(--sheen) - 6%), #ffffff var(--sheen), var(--silk) calc(var(--sheen) + 7%), var(--ink) calc(var(--sheen) + 24%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.06em;
}

.lede {
  max-width: 30em;
  font-size: clamp(13px, min(3.6vw, 2.3vh), 17px);
  line-height: 1.5;
  color: var(--ink-soft);
  text-shadow: 0 1px 14px rgba(13, 11, 10, 0.9), 0 0 2px rgba(13, 11, 10, 0.6);
}

.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.7) inset, 0 0 0 1px rgba(255, 236, 222, 0.1), 0 12px 32px -10px rgba(233, 162, 126, 0.5);
  -webkit-tap-highlight-color: transparent;
}

.cta:focus-visible {
  outline: 2px solid var(--silk);
  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 satin light that slides across the button on hover and on press; GSAP moves it */
.cta__sheen {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(233, 162, 126, 0.55), rgba(255, 226, 207, 0.7), transparent);
  transform: translateX(-140%);
  pointer-events: none;
}

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

/* the pointer drawn for the preview, while nobody moves the real one */
.ghost {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  fill: #ffffff;
  stroke: #0d0b0a;
  stroke-width: 1.1;
  stroke-linejoin: round;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}

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