/* Shared type system. Component files own layout; this file owns type roles. */
:root {
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --heading-1: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --heading-2: clamp(1.5rem, 1.25rem + 0.7vw, 1.875rem);
  --heading-3: 1.25rem;
  --heading-4: 1.125rem;
  --heading-5: 1rem;
  --heading-6: 0.875rem;
  --muted: #65758a;
  font-family: var(--font-sans);
  font-synthesis: none;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font-family: inherit;
}
:is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.22;
  margin-block: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}
h1 {
  font-size: var(--heading-1);
  line-height: 1.12;
  letter-spacing: -0.045em;
}
h2 {
  font-size: var(--heading-2);
}
h3 {
  font-size: var(--heading-3);
}
h4 {
  font-size: var(--heading-4);
}
h5 {
  font-size: var(--heading-5);
}
h6 {
  font-size: var(--heading-6);
}
/* These titles share a semantic role regardless of the page template. */
:is(.site-shell, .page, .privacy-page, dialog) h1 {
  font-size: var(--heading-1);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.045em;
}
:is(.site-shell, .page, .privacy-page, dialog) h2 {
  font-size: var(--heading-2);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.035em;
}
:is(.site-shell, .page, .privacy-page, dialog) h3 {
  font-size: var(--heading-3);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand {
  font-family: var(--font-sans);
  letter-spacing: -0.05em;
  font-weight: 700;
}
.hero-lead,
.lead,
.detail-heading .lead,
.case-heading .lead {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--muted);
}
.hero h1 {
  margin-block: 18px;
}
.button,
.header-cta {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
}
.main-nav {
  font-size: var(--text-sm);
}
.card-description,
.article-description,
.about-copy p,
.learning-panel > p,
.service-copy,
.case-content > p,
.about > p,
.contact > p,
.case-copy,
.case-brief p,
.case-stage-grid p,
.case-outcome-grid p,
.steps p,
.question-answer p,
.related-card p,
.project-card p {
  font-size: var(--text-sm);
  line-height: 1.6;
}
.card-title,
.article-title,
.service-name {
  font-size: var(--text-base);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.feature-title {
  font-size: var(--text-xl);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.feature-description {
  font-size: var(--text-sm);
  line-height: 1.5;
}
.section-heading h2,
.newsletter h2,
.promo-banner h2 {
  text-wrap: pretty;
}
.article-section p,
.short-answer,
.detail-content,
.privacy-page p {
  font-size: var(--text-base);
  line-height: 1.75;
}
.article-section h2 {
  margin-bottom: 16px;
}
.detail-content p + p {
  margin-top: 1em;
}
.card-copy h2.card-title {
  font-size: var(--text-lg);
  line-height: 1.4;
  letter-spacing: -0.025em;
}
.catalog-grid:not(.projects-grid) .card-title {
  font-size: var(--text-base);
}
.site-footer nav,
.site-footer nav .text-link,
.footer-tagline,
.footer-brand > span,
.privacy-link,
.eyebrow,
.micro-label,
.hero-benefits,
.availability,
.article-meta,
.pill,
.demo-badge,
.section-note,
.values li,
.case-metrics dt,
.case-label,
.case-numbers dt,
.service-detail small,
.dialog-eyebrow,
.poster-caption {
  font-size: var(--text-xs);
  line-height: 1.5;
}
.main-nav a,
.site-footer a,
.site-footer button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.text-link,
.text-button,
.source-link,
.section-heading > a {
  min-height: 44px;
}
.close-dialog,
.case-lightbox-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid #3288bf;
  outline-offset: 3px;
}

/* Grid items must be allowed to shrink: nowrap topic/filter rows used to
   push the knowledge answers beyond the mobile viewport. */
:is(
    .hero,
    .directions-grid,
    .editorial-grid,
    .articles-grid,
    .bottom-grid,
    .knowledge-layout,
    .knowledge-hero,
    .material-layout,
    .case-heading,
    .case-overview,
    .case-stage-grid,
    .case-outcome-grid
  )
  > * {
  min-width: 0;
}
.questions-panel,
.topics-panel,
.questions-list,
.question-answer {
  min-width: 0;
  max-width: 100%;
}
.question summary {
  overflow-wrap: anywhere;
}
.question-toggle {
  flex: none;
}
.question-answer p {
  overflow-wrap: anywhere;
}
.filter-tabs,
.topics-panel nav {
  max-width: 100%;
}
.search-form > input,
.email-row input {
  font-size: 1rem;
}
.search-form > button {
  width: 44px;
  height: 44px;
  flex: none;
}
.consent {
  font-size: var(--text-xs);
  line-height: 1.5;
}
.consent input {
  width: 18px;
  height: 18px;
}
.contact-options a,
.contact-option {
  min-height: 56px;
}
.contact-bottom {
  flex-wrap: wrap;
}
.privacy-page code {
  overflow-wrap: anywhere;
}

@media (max-width: 1050px) {
  .main-nav {
    gap: 2px;
  }
  .main-nav a {
    padding-inline: 8px;
  }
  .site-header {
    gap: 12px;
  }
  .header-cta {
    padding-inline: 12px;
    font-size: var(--text-xs);
  }
}
@media (max-width: 760px) {
  :root {
    --heading-1: clamp(1.875rem, 1.1rem + 3.8vw, 2.5rem);
    --heading-2: 1.5rem;
    --heading-3: 1.125rem;
    --header-height: 60px;
  }
  body {
    width: 100%;
  }
  .site-header,
  .direct-page .site-header {
    height: var(--header-height);
    min-height: var(--header-height);
    gap: 12px;
  }
  .home-page .site-header,
  .direct-page .site-header {
    padding: 0 16px;
  }
  .platform-page .site-header {
    margin: 0 16px;
  }
  .site-header .brand {
    font-size: 21px;
  }
  .site-header .header-cta {
    display: none;
  }
  .site-header :is(.nav-toggle, .menu-toggle) {
    display: grid;
    place-items: center;
    margin-left: auto;
    width: 40px;
    height: 44px;
    border-radius: 11px;
  }
  .site-header .main-nav {
    display: none;
    position: absolute;
    top: 54px;
    right: 0;
    left: auto;
    width: min(280px, calc(100vw - 32px));
    margin: 0;
    font-size: var(--text-sm);
    z-index: 25;
    padding: 8px;
    background: #fbfdfe;
    border: 1px solid #e2ebf2;
    border-radius: 16px;
    box-shadow: 0 16px 35px #1633491a;
  }
  .site-header .main-nav.is-open {
    display: grid;
  }
  .home-page .site-header .main-nav,
  .direct-page .site-header .main-nav {
    right: 16px;
  }
  .site-header .main-nav a {
    display: flex;
    padding: 12px;
  }
  .hero {
    width: 100%;
  }
  .home-page .hero,
  .direct-page .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: calc(100svh - var(--header-height));
    padding: 18px 16px 20px;
    gap: 18px;
  }
  .hero-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
  }
  .hero-copy .eyebrow {
    align-self: flex-start;
    font-size: var(--text-xs);
  }
  .hero-actions {
    display: flex;
    gap: 8px;
    margin: 20px 0;
  }
  .hero-actions .button {
    padding: 12px;
    min-height: 46px;
    font-size: var(--text-xs);
    gap: 8px;
  }
  .hero-actions .button svg {
    width: 16px;
  }
  .hero-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    font-size: var(--text-xs);
  }
  .hero-benefits li {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .hero-benefits svg {
    width: 22px;
    height: 22px;
  }
  .home-page .hero-visual,
  .direct-page .hero-poster {
    flex: none;
    height: clamp(120px, 21svh, 190px);
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
  }
  .visual-note {
    font-size: 10px;
    top: 12px;
    right: 14px;
  }
  .visual-label {
    font-size: 11px;
    bottom: 10px;
    left: 12px;
  }
  .home-page .hero-visual img {
    object-position: center 57%;
  }
  .section,
  .home-page .bottom-grid {
    margin-inline: 16px;
  }
  .section-heading {
    align-items: center;
    gap: 12px;
  }
  .section-heading h2 {
    min-width: 0;
  }
  .section-heading .text-link,
  .section-heading > a {
    font-size: var(--text-xs);
    max-width: 110px;
    flex: none;
  }
  .section-note {
    font-size: var(--text-xs);
  }
  .card-title {
    font-size: var(--text-sm);
  }
  .card-title .round-arrow {
    width: 26px;
    height: 26px;
  }
  .card-description {
    font-size: var(--text-sm);
  }
  .feature-card {
    min-height: 240px;
  }
  .project-card .feature-copy {
    right: 12px;
    bottom: 58px;
  }
  .project-card .feature-description {
    font-size: var(--text-xs);
  }
  .article-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px 14px;
    padding: 12px;
    min-height: 0;
  }
  .article-card > img {
    min-height: 150px;
    border-radius: 10px;
  }
  .article-meta {
    gap: 8px;
    margin: 0;
    font-size: var(--text-xs);
    flex-wrap: wrap;
  }
  .article-title {
    font-size: var(--text-base);
    margin: 0;
  }
  .article-description {
    font-size: var(--text-sm);
    padding: 0 0 30px;
  }
  .about-panel {
    grid-template-columns: 1fr;
  }
  .about-image {
    min-height: 0;
    height: 150px;
  }
  .about-copy {
    padding: 8px;
  }
  .about-facts {
    gap: 8px;
    flex-wrap: wrap;
  }
  .about-facts > div {
    padding: 10px;
  }
  .about-facts span {
    font-size: var(--text-xs);
  }
  .contact-panel {
    padding: 22px;
  }
  .contact-panel h2 br,
  .contact-panel > p br {
    display: none;
  }
  .contact-bottom {
    gap: 16px;
  }
  .site-footer nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px 18px;
  }
  .site-footer nav a,
  .site-footer nav button {
    font-size: var(--text-xs);
  }
  .social-link,
  .socials a {
    width: 44px;
    height: 44px;
  }
  .knowledge-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .knowledge-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .topics-panel {
    padding: 16px;
    overflow: hidden;
  }
  .topics-panel nav {
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .topics-panel nav > a {
    font-size: var(--text-xs);
    min-height: 44px;
  }
  .filter-tabs > a {
    font-size: var(--text-xs);
    min-height: 44px;
    flex: none;
    padding: 12px 14px;
  }
  .filter-tabs {
    overflow-x: auto;
  }
  .filter-secondary select {
    font-size: 1rem;
    min-height: 44px;
    max-width: 100%;
    min-width: 0;
    flex: 1;
  }
  .questions-panel {
    padding: 16px;
  }
  .question summary {
    font-size: var(--text-base);
    gap: 10px;
    padding: 14px;
    line-height: 1.5;
  }
  .question-answer {
    padding: 0 14px 16px;
  }
  .question-answer > a {
    min-height: 44px;
    font-size: var(--text-sm);
  }
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
  .related-card img {
    aspect-ratio: 1.3;
  }
  .related-card h3 {
    font-size: var(--text-base);
  }
  .related-card p {
    font-size: var(--text-sm);
  }
  .related-card .tag {
    font-size: var(--text-xs);
    padding-inline: 8px;
  }
  .promo-banner {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 20px 16px;
    gap: 12px;
  }
  .promo-banner .banner-icon {
    width: 40px;
    height: 40px;
    align-self: start;
  }
  .promo-banner .button {
    grid-column: 1/-1;
    margin: 4px 0 0;
    width: 100%;
    min-height: 46px;
  }
  .newsletter {
    padding: 20px 16px;
  }
  .newsletter-copy > small {
    font-size: var(--text-xs);
    line-height: 1.5;
  }
  .email-row {
    flex-wrap: wrap;
  }
  .email-row input {
    flex: 1 1 160px;
    min-height: 46px;
  }
  .email-row .button {
    flex: 1;
    min-height: 46px;
  }
  .breadcrumbs {
    flex-wrap: wrap;
    font-size: var(--text-xs);
  }
  .tags {
    gap: 6px;
  }
  .tags > a,
  .tags > span {
    font-size: var(--text-xs);
  }
  .catalog-grid:not(.projects-grid) .card-title {
    font-size: var(--text-sm);
  }
  .card-copy .tags {
    flex-wrap: wrap;
    height: auto;
  }
  .card-copy .tags > a {
    font-size: var(--text-xs);
    padding: 4px 7px;
  }
  .direct-page .featured-case .section-heading {
    flex-wrap: wrap;
  }
  .direct-page .values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .direct-page .values li {
    flex-direction: column;
    align-items: flex-start;
    font-size: var(--text-xs);
  }
  .material-facts {
    gap: 8px;
  }
  .material-facts > div {
    padding-left: 0;
  }
  .material-facts svg {
    display: none;
  }
  .material-facts dt,
  .material-facts dd {
    font-size: var(--text-xs);
  }
  .settings-list > div {
    gap: 12px;
  }
  .settings-list dd {
    overflow-wrap: anywhere;
  }
  .contact-dialog {
    max-height: calc(100svh - 24px);
  }
  .contact-option {
    flex-wrap: wrap;
    font-size: var(--text-sm);
  }
  .privacy-page header {
    gap: 12px;
    flex-wrap: wrap;
  }
}
@media (max-width: 760px) and (max-height: 700px) {
  .home-page .hero,
  .direct-page .hero {
    gap: 12px;
    padding-block: 12px;
  }
  .hero h1 {
    margin-block: 12px;
  }
  .hero-actions {
    margin-block: 14px;
  }
  .hero-benefits li {
    flex-direction: row;
    gap: 6px;
  }
  .hero-benefits svg {
    width: 18px;
    height: 18px;
  }
  .hero-benefits {
    gap: 8px;
  }
  .hero-lead {
    font-size: var(--text-sm);
  }
  .home-page .hero-visual,
  .direct-page .hero-poster {
    height: 120px;
  }
}
@media (max-width: 360px) and (max-height: 640px),
  (max-width: 760px) and (max-height: 500px) {
  /* On short screens, give essential copy and actions priority over decoration. */
  .home-page .hero-visual,
  .direct-page .hero-poster {
    display: none;
  }
}
