/* Section primitives shared by the homepage and the pages split off it
   (/pricing, /about, /contact): the heading row, the outlined word, and
   the scroll reveal that site.js drives. Linked after site.css and before
   each page's own <style>. The blog keeps its own copy of the heading row. */

/* ---------- Heading row ---------- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(18px, 2.8vh, 36px);
}

h1,
h2 {
  margin: 0;
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.stroke {
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--ink-rgb), 0.92);
}

.section-index {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(var(--ink-rgb), 0.45);
  text-transform: uppercase;
}

/* ---------- Reveal on scroll ---------- */

.io-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.io-reveal.in {
  opacity: 1;
  transform: none;
}

.io-stagger > * {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.io-stagger.in > * {
  opacity: 1;
  transform: none;
}

.io-stagger.in > *:nth-child(2) {
  transition-delay: 0.12s;
}

.io-stagger.in > *:nth-child(3) {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .io-reveal,
  .io-stagger > * {
    opacity: 1;
    transform: none;
  }
}
