/* Shared styles for the three app chapters. */

/* -------------------------------------------------------------------------
   Chapter shared
   ------------------------------------------------------------------------- */
.ch { position: relative; }

/* Each chapter has its own ground color with a straight edge between sections. */
.hero,
.why,
.index { background: #0a0b0d; }
.ch--gallery { background: #eef2f8; }
.ch--eloquent { background: #fff; }
.ch--foresight { background: #00303a; }
.gemma { background: #06070a; }
.get,
.foot { background: #06070a; position: relative; }
.ch__tag { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 500; margin-bottom: 28px; }
.ch__logo { width: 24px; height: 24px; object-fit: contain; }
.ch__title { margin: 0; font-size: clamp(44px, 6.2vw, 104px); line-height: .96; letter-spacing: -.04em; font-weight: 440; }
.ch__sub { margin: 26px 0 32px; max-width: 600px; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; color: var(--fg-dim); }
.ch__sub a { text-underline-offset: 3px; }

/* Split text reveal (used by .split headings). Same padded-mask trick as the hero. */
.split .sw {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: .1em .12em .26em; margin: -.1em -.12em -.26em;
}
.split .sw > span {
  display: inline-block;
  transform: translateY(150%);
  font-weight: 250;
  transition: transform 1.1s var(--ease-out), font-weight 1.4s var(--ease-out);
  transition-delay: calc(var(--wi) * 55ms);
}
.split.in .sw > span { transform: none; font-weight: inherit; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.pillars .reveal:nth-child(2) { transition-delay: .08s; }
.pillars .reveal:nth-child(3) { transition-delay: .16s; }
.pillars .reveal:nth-child(4) { transition-delay: .24s; }
