/* ------------------------------------------------------------------
   Rapid — Base resets + typographic utilities
------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display headings — impact from size, not weight */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  color: var(--text-heading);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--h1-size); line-height: var(--h1-lh); letter-spacing: var(--h1-ls); font-weight: var(--h1-weight); }
h2 { font-size: var(--h2-size); line-height: var(--h2-lh); letter-spacing: var(--h2-ls); font-weight: var(--h2-weight); }
h3 { font-size: var(--h3-size); line-height: var(--h3-lh); letter-spacing: var(--h3-ls); font-weight: var(--h3-weight); }

p { margin: 0; }

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--dur-micro) var(--ease-micro), opacity var(--dur-micro) var(--ease-micro);
}
a:hover { color: var(--brand-violet); }

/* Utility text roles */
.rapid-lead   { font-size: var(--lead-size); line-height: var(--lead-lh); font-weight: var(--lead-weight); }
.rapid-body   { font-size: var(--body-size); line-height: var(--body-lh); letter-spacing: var(--body-ls); }
.rapid-label  { font-size: var(--label-size); line-height: var(--label-lh); letter-spacing: var(--label-ls); font-weight: var(--label-weight); }
.rapid-caption{ font-size: var(--caption-size); line-height: var(--caption-lh); letter-spacing: var(--caption-ls); }

/* Signature gradient text (light->blue->cyan), used on dark hero titles */
.rapid-grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Container */
.rapid-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Signature scroll-reveal utility (CSS fallback for Framer Motion) */
.rapid-reveal {
  opacity: 0;
  animation: rapid-reveal var(--dur-reveal) var(--ease-reveal) forwards;
}
