body { background: #f4f1ea; color: #121216; }

main { display: grid; gap: 24px; padding: 32px 24px; max-width: 1100px; margin: 0 auto; }

.example {
  padding: 28px 32px 40px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px -35px rgb(0 0 0 / 0.35);
}
.example header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
  font: 600 12px ui-monospace, monospace; color: #8b8a94; text-transform: uppercase; letter-spacing: 0.08em;
}
.example button {
  padding: 6px 12px; border: 1px solid #ddd; border-radius: 999px;
  background: none; font: inherit; cursor: pointer;
}
.example button:hover { border-color: #121216; color: #121216; }

h1 {
  margin: 0;
  font: 700 clamp(36px, 6.5vw, 80px)/1 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: -0.03em;
}
h1[data-split="chars"] { font-size: clamp(56px, 13vw, 160px); color: #ff4d2e; }

/* Hide until split, so there's no flash of the final state before animating. */
html:not([data-motion="reduce"]) [data-split] { visibility: hidden; }

/* Line masks clip at the line box; give descenders (g, y, commas) room. */
h1[data-split="lines"] > * { padding-bottom: 0.12em; margin-bottom: -0.12em; }
