/* Landing page layout. The page is painted on with PaintEngine.paintPage({ layer: 'under' }), so
   nothing here may paint a solid background over the paint: sections are transparent, and cards
   carry their paper on a ::before (see .paper-card in style.css). */

.hero { padding-block: clamp(36px, 7vw, 90px) clamp(60px, 9vw, 120px); }
.hero__sign { margin: 0 0 clamp(18px, 3vw, 28px); }
.hero__sign .sign { transform: rotate(-2.5deg); }
.hero__title {
  font-size: clamp(76px, 15vw, 188px);
  line-height: .9;
  letter-spacing: -.045em;
  margin: 0 0 clamp(24px, 3.2vw, 40px) -.04em;  /* room for the descender of "Engine"'s g */
}
.hero__tag {
  font: 600 clamp(22px, 3.2vw, 34px)/1.2 var(--serif);
  letter-spacing: -.01em;
  margin: 0 0 18px;
}
.hero__tag em { color: var(--red); }
.hero .lede { margin: 0 0 30px; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__hint { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); margin: 0; font-size: 16px; }
.hero__hint svg { width: 26px; height: 26px; flex: none; animation: nudge 1.6s ease-in-out infinite; }
.hero__hint.done { opacity: .55; }
.hero__hint.done svg { animation: none; }
@keyframes nudge { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(8px, -3px) rotate(8deg); } }

/* ── gesture swatches: little sample cards lying on the page, each its own paper ── */
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 26px); }
@media (max-width: 900px) { .swatches { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .swatches { grid-template-columns: 1fr; } }
.swatch {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 10px 16px;
  box-shadow: 0 14px 30px -20px rgba(60, 40, 20, .45);
}
.swatch:nth-child(3n + 1) { transform: rotate(-.6deg); }
.swatch:nth-child(3n + 2) { transform: rotate(.5deg); }
.swatch__art { height: 190px; border-radius: 9px; overflow: hidden; background: var(--paper); }
.swatch figcaption { padding: 12px 6px 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.swatch figcaption strong { display: block; color: var(--ink); font: 700 19px/1.2 var(--serif); margin-bottom: 2px; }
.swatches__note { color: var(--muted); font-size: 15px; margin: 22px 0 0; }

/* ── features ── */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 26px); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.features li { padding: 24px 24px 22px; }
.features h3 { margin-bottom: 10px; }
.features p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.features code, .demo code { white-space: nowrap; } /* a file or call name never splits at its hyphen */

/* ── demos ── */
.demos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 26px); }
@media (max-width: 900px) { .demos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .demos { grid-template-columns: 1fr; } }
.demo { display: block; padding: 10px 10px 20px; text-decoration: none; color: inherit; transition: top .15s ease; top: 0; }
.demo:hover { top: -3px; }
.demo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 9px; background: var(--paper-deep); }
.demo h3 { margin: 16px 8px 6px; }
.demo p { margin: 0 8px; color: var(--ink-soft); font-size: 16px; }

/* ── get started ── */
/* the first snippet (with the CDN URL) gets the full width; min-width:0 lets a long line scroll
   inside its <pre> instead of stretching the grid */
.start { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2.4vw, 26px); align-items: start; }
.start__item { min-width: 0; }
.start__item:first-child { grid-column: 1 / -1; }
@media (max-width: 900px) { .start { grid-template-columns: 1fr; } }
.start__item h3 { margin-bottom: 12px; }
.start__item pre.code { font-size: 13px; }
.start__more { color: var(--ink-soft); margin: 26px 0 0; }

/* ── in the wild ── */
.wild { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(22px, 4vw, 44px); }
@media (max-width: 900px) { .wild { grid-template-columns: 1fr; } }
.wild__text p { color: var(--ink-soft); }
.wild__text h2 { margin-bottom: 18px; }
.wild__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 10px; }
.wild__fine { font-size: 14px; color: var(--muted) !important; margin: 0; }
.wild__shots { position: relative; padding: 0 6% 9% 0; }
.wild__desk { width: 100%; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 18px 40px -24px rgba(60, 40, 20, .6); }
.wild__phone {
  position: absolute; right: 0; bottom: 0; width: 27%;
  border-radius: 18px; border: 5px solid #1d1916;
  box-shadow: 0 18px 40px -18px rgba(60, 40, 20, .7);
}
