/* ============================================================
   PRIMITIVES — typography, layout, utilities
   ============================================================ */

/* ---- Type primitives ---- */
.t-hero {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 400;
  text-wrap: balance;
}
.t-display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 400;
  text-wrap: balance;
}
.t-h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-normal);
  font-weight: 400;
  text-wrap: balance;
}
.t-h2 {
  font-family: var(--font-body);
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-normal);
  font-weight: 500;
}
.t-h3 {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: var(--lh-snug);
}
.t-lg { font-size: var(--fs-lg); line-height: var(--lh-body); }
.t-body { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-2); }
.t-sm { font-size: var(--fs-sm); line-height: var(--lh-body); color: var(--ink-3); }
.t-xs { font-size: var(--fs-xs); line-height: var(--lh-body); color: var(--ink-3); }

.t-mono { font-family: var(--font-mono); font-feature-settings: 'ss01', 'cv11'; }
.t-italic { font-style: italic; font-family: 'Instrument Serif', serif; }

.t-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-mega);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-3);
}
.t-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
}

/* ---- Layout primitives ---- */
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-direction: row; }
.center { display: flex; align-items: center; justify-content: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.gap-1 { gap: var(--s-1); }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.gap-5 { gap: var(--s-5); }
.gap-6 { gap: var(--s-6); }
.gap-7 { gap: var(--s-7); }

.grid { display: grid; }

.hairline { height: 1px; background: var(--line); border: 0; }
.hairline-strong { height: 1px; background: var(--line-strong); border: 0; }

/* ---- Micro utilities ---- */
.mono-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.dim { color: var(--ink-4); }
.strong { color: var(--ink); }

.glyph {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--ink-3);
}

/* Number tick */
.tick {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-wide);
  color: var(--ink-4);
}

/* Animated counter placeholder */
.counter {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

/* Keyframes */
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}
.caret::after {
  content: '▌';
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
  color: var(--accent);
}
