/* 10 Figure Agency — 03-typography.css
   Type styles, split-text helpers and reveal start states (only when JS motion is on). */

/* ---------- type ---------- */
.label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
  display: inline-flex;
  gap: 0.5em;
  align-items: baseline;
}
.label--muted {
  color: var(--ink-50);
}
.dark .label--muted {
  color: var(--white-60);
}
.display {
  font-size: var(--fs-display);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.mega {
  font-size: var(--fs-mega);
  line-height: 0.85;
  letter-spacing: -0.055em;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.h3 {
  font-size: var(--fs-h3);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.statement {
  font-size: var(--fs-statement);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.45;
}
.small {
  font-size: var(--fs-small);
  line-height: 1.5;
}
.muted {
  color: var(--ink-50);
}
.dark .muted {
  color: var(--white-60);
}
.measure {
  max-width: 34ch;
}
.measure-lg {
  max-width: 52ch;
}

/* line masks (text reveals) */
.line {
  display: block;
  overflow: clip;
  /* room for descenders (g, y, p) and accents at tight line-heights */
  padding: 0.06em 0 0.2em;
  margin: -0.06em 0 -0.2em;
}
.line__inner {
  display: block;
  will-change: transform;
}
.word {
  display: inline-block;
  white-space: nowrap;
}
.char {
  display: inline-block;
}

/* initial hidden states — only when JS motion is active (fail-open) */
.js-motion [data-reveal="lines"] .line__inner {
  transform: translateY(105%);
}
.js-motion [data-reveal="fade"],
.js-motion [data-reveal="stagger"] > * {
  opacity: 0;
  transform: translateY(1.5rem);
}
.js-motion [data-reveal="chars"] .char {
  opacity: 0;
  transform: translateY(0.4em);
}
.js-motion [data-wave] .char {
  color: rgb(10 10 10 / 0.14);
}
.js-motion :is(.dark, .footer) [data-wave] .char {
  color: rgb(255 255 255 / 0.16);
}
.js-motion [data-reveal="wave"] .char {
  color: var(--ink-15);
}
.js-motion .dark [data-reveal="wave"] .char,
.js-motion [data-reveal="wave"].on-dark .char {
  color: rgb(255 255 255 / 0.18);
}
.js-motion [data-reveal="media"] {
  clip-path: inset(0 0 100% 0 round var(--radius));
}
.js-motion [data-reveal="rule"] {
  transform: scaleX(0);
  transform-origin: left;
}
.js-motion [data-reveal="scrub-words"] .word {
  opacity: 0.22;
}
