/* Text reveal — layout and typography. The motion lives in script.js. */

.tr-stage {
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 28px 64px;
}

.tr-label {
  margin: 0;
  color: var(--accent, #ff6a3d);
  font: 500 13px/1.2 var(--font-mono, ui-monospace, monospace);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tr-title {
  margin: 0;
  font: 700 clamp(44px, 7.4vw, 104px)/1.02 var(--font-display, system-ui, sans-serif);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.tr-lede {
  margin: 0;
  max-width: 620px;
  color: var(--muted, #9c9488);
  font-size: 19px;
}

.tr-word {
  margin: 12px 0 0;
  font: 700 clamp(64px, 16vw, 220px)/0.9 var(--font-display, system-ui, sans-serif);
  letter-spacing: -0.05em;
  color: var(--accent, #ff6a3d);
}

.tr-replay {
  justify-self: start;
  border: 1px solid #463f37;
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 10px 18px;
  font: 500 14px var(--font-ui, system-ui, sans-serif);
  cursor: pointer;
}
.tr-replay:hover { border-color: currentColor; }

/* Hide the text until it has been split. The class is added by a one-line
   script in <head> and removed after 3 s as a safety net, so without JS, or if
   GSAP fails to load, the text is simply visible. */
.reveal-pending [data-reveal] { visibility: hidden; }
