/* Murmur typographic system
   One semantic scale for every page. Layout controls line length;
   page-specific styles no longer decide typographic importance. */

:root {
  --type-display-xl: clamp(2.875rem, 5vw, 4rem);
  --type-display-l: clamp(2.625rem, 4.375vw, 3.5rem);
  --type-section-title: clamp(2.375rem, 3.75vw, 3rem);
  --type-card-title: clamp(1.625rem, 2.35vw, 1.875rem);
  --type-lead: clamp(1.125rem, 1.56vw, 1.25rem);
  --type-body: 1rem;
  --type-label: 0.6875rem;

  --type-display-line: 0.98;
  --type-section-line: 1.02;
  --type-card-line: 1.08;
  --type-lead-line: 1.3;
  --type-body-line: 1.5;
  --type-label-line: 1.5;

  --type-display-track: -0.05em;
  --type-section-track: -0.04em;
  --type-card-track: -0.03em;
  --type-lead-track: -0.02em;
  --type-label-track: 0.14em;
}

/* Labels and section indices */
body .eyebrow,
body .index,
body .prefooter-cta__eyebrow,
body .contact-option__eyebrow {
  font-family: var(--font-compact);
  font-size: var(--type-label);
  font-weight: 500;
  line-height: var(--type-label-line);
  letter-spacing: var(--type-label-track);
  text-transform: uppercase;
}

/* Full-width page statements */
body main .hero.demo-section .hero__title,
body #pdemo-title,
body .chero__title {
  font-family: var(--font);
  font-size: var(--type-display-xl);
  font-weight: 400;
  line-height: var(--type-display-line);
  letter-spacing: var(--type-display-track);
}

/* Split heroes, manifesto statements and the shared closing statement */
body .ahero__title,
body #category-title,
body #day-title,
body #vision-title,
body #home-prefooter-title,
body #product-prefooter-title,
body #agentic-prefooter-title,
body #contact-prefooter-title {
  font-family: var(--font);
  font-size: var(--type-display-l);
  font-weight: 400;
  line-height: var(--type-display-line);
  letter-spacing: var(--type-display-track);
}

body #home-prefooter-title,
body #product-prefooter-title,
body #agentic-prefooter-title,
body #contact-prefooter-title {
  font-weight: 500;
}

/* Standard section titles */
body #audience-title,
body #measurement-title,
body #shift-title,
body #flow-title,
body #control-title,
body #reader-title,
body #marketing-title,
body #why-title,
body #next-title,
body #contact-options-title {
  font-family: var(--font);
  font-size: var(--type-section-title);
  font-weight: 400;
  line-height: var(--type-section-line);
  letter-spacing: var(--type-section-track);
}

body #measurement-title {
  max-width: none;
}

/* Preserve authored rhetorical lines instead of letting narrow character
   measures split each one a second time. */
body #category-title,
body #pdemo-title,
body #control-title,
body #audience-title,
body #shift-title,
body #agentic-hero-title,
body #reader-title,
body #marketing-title,
body #why-title,
body #next-title,
body #vision-title,
body #home-prefooter-title,
body #product-prefooter-title,
body #agentic-prefooter-title,
body #contact-prefooter-title {
  max-width: none;
  text-wrap: balance;
}

body #audience-title span,
body #measurement-title span,
body #vision-title span,
body #home-prefooter-title span,
body #product-prefooter-title span,
body #agentic-prefooter-title span,
body #contact-prefooter-title span {
  display: block;
}

body .vision-section__header {
  width: 100%;
}

body #vision-title {
  margin-inline: auto;
}

body .agency-site__copy h2 {
  max-width: none;
  text-wrap: balance;
}

@media (min-width: 1101px) {
  body .reader-editorial {
    grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
    gap: clamp(56px, 6vw, 96px);
  }

  body .marketing-section > .shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
    column-gap: clamp(56px, 6vw, 96px);
  }

  body .audience-ledger {
    grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
    column-gap: clamp(52px, 5vw, 76px);
  }

  body #audience-title {
    max-width: none;
    font-size: 2.75rem;
  }

  body .measurement-report {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: clamp(48px, 5vw, 78px);
  }

  body #measurement-title {
    max-width: none;
    font-size: clamp(46px, 3.8vw, 56px);
  }

  body .measurement-report__intro > p {
    max-width: 27ch;
    margin-top: clamp(34px, 3.2vw, 48px);
  }

  body #vision-title {
    max-width: 30ch;
  }

  body #pdemo-title {
    font-size: 2.9rem;
  }

  body #category-title span,
  body #pdemo-title span,
  body #control-title span,
  body #agentic-hero-title span,
  body #reader-title span,
  body #marketing-title span,
  body #why-title span,
  body #next-title span,
  body #audience-title span,
  body #measurement-title span,
  body #vision-title span,
  body #home-prefooter-title span,
  body #product-prefooter-title span,
  body #agentic-prefooter-title span,
  body #contact-prefooter-title span {
    white-space: nowrap;
  }

  body #measurement-title span {
    white-space: normal;
  }
}

@media (min-width: 861px) and (max-width: 1100px) {
  body .reader-editorial,
  body .marketing-section > .shell {
    grid-template-columns: 1fr;
  }

  body .marketing-section .asection__head {
    grid-column: 1;
    grid-row: 1;
  }

  body .marketing-section .buyer-paths,
  body .marketing-section .contrast {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (max-width: 1100px) {
  body .audience-ledger {
    grid-template-columns: 1fr;
    gap: 54px;
  }
}

@media (min-width: 621px) and (max-width: 1100px) {
  body #audience-title span,
  body #measurement-title span,
  body #vision-title span,
  body #home-prefooter-title span,
  body #product-prefooter-title span,
  body #agentic-prefooter-title span,
  body #contact-prefooter-title span {
    white-space: nowrap;
  }

  body #measurement-title span {
    white-space: normal;
  }

  body #home-prefooter-title,
  body #product-prefooter-title,
  body #agentic-prefooter-title,
  body #contact-prefooter-title {
    font-size: 2.625rem;
  }
}

@media (min-width: 861px) and (max-width: 1100px) {
  body #vision-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 621px) and (max-width: 860px) {
  body main .hero.demo-section .hero__title {
    font-size: 2.5rem;
  }

  body #vision-title {
    font-size: 2.1875rem;
  }
}

@media (max-width: 620px) {
  body main .hero.demo-section .hero__title {
    font-size: 2.375rem;
  }

  body #category-title,
  body #pdemo-title {
    font-size: 2.375rem;
  }

  body #audience-title,
  body #measurement-title,
  body #shift-title,
  body #control-title {
    font-size: 2.125rem;
  }

  body #flow-title {
    font-size: 1.95rem;
  }

  body #home-prefooter-title,
  body #product-prefooter-title,
  body #agentic-prefooter-title,
  body #contact-prefooter-title {
    font-size: 2.125rem;
  }

  body #category-title span,
  body #pdemo-title span,
  body #control-title span,
  body #day-title span,
  body #reader-title span,
  body #marketing-title span,
  body #why-title span,
  body #next-title span,
  body #audience-title span,
  body #measurement-title span,
  body #vision-title span,
  body #home-prefooter-title span,
  body #product-prefooter-title span,
  body #agentic-prefooter-title span,
  body #contact-prefooter-title span {
    display: inline;
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  body .control-story__head #control-title {
    grid-column: 1 / -1;
    font-size: clamp(2.375rem, 6vw, 3rem);
  }
}

/* Card and subsection titles */
body .category-card > h3,
body .audience-row__detail > h3,
body .facts h3,
body .control-lesson__intro > h3,
body .reader-list__detail > h3,
body #survival-card-title,
body .contact-option__head h3,
body .shift-ledger__intro > p,
body .shift-ledger__response h3 {
  font-family: var(--font);
  font-size: var(--type-card-title);
  font-weight: 500;
  line-height: var(--type-card-line);
  letter-spacing: var(--type-card-track);
}

/* Strong introductory copy */
body .hero__sub,
body .pdemo__lead,
body .ahero__lead,
body .chero__sub,
body .category__lead,
body .psection__head > .lead,
body .control-story__lead,
body .marketing__copy > .lead,
body .shift-feature__content > .lead {
  font-family: var(--font);
  font-size: var(--type-lead);
  font-weight: 400;
  line-height: var(--type-lead-line);
  letter-spacing: var(--type-lead-track);
}

/* Supporting copy immediately attached to major headings */
body .pdemo__sub,
body .ahero__sub,
body .contact-options__head > p,
body .prefooter-cta__copy > p {
  font-family: var(--font);
  font-size: var(--type-body);
  font-weight: 400;
  line-height: var(--type-body-line);
  letter-spacing: -0.01em;
}

/* Shared title rhythm */
body .eyebrow + h1,
body .index + h1,
body .index + h2 {
  margin-top: 24px;
}

body h1 + .hero__sub,
body h1 + .chero__sub,
body h2 + .lead,
body h2 + .control-story__lead {
  margin-top: 28px;
}

/* The Home statement carries twice the copy of the other page heroes.
   On small screens it uses the next scale step to preserve a compact fold. */
@media (max-width: 620px) {
  body main .hero.demo-section .hero__title {
    font-size: 2.375rem;
  }
}

@media (min-width: 1101px) {
  body .measurement-report {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  }
}

@media (min-width: 861px) {
  body .shift-ledger .shift-ledger__intro > p,
  body .shift-ledger__stat--readiness .shift-ledger__response h3 {
    font-size: clamp(1.75rem, 3vw, 2.75rem);
  }

  body .shift-ledger .shift-ledger__intro > p {
    max-width: none;
    white-space: nowrap;
  }
}
