/* Shared reading scale. Load after site.css to resolve legacy template sizes. */
:root {
  --step-4: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  --step-5: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);
  --type-display: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);
  --type-page-title: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  --type-section-title: clamp(1.625rem, 1.35rem + 1.1vw, 2.25rem);
  --type-section-title-lg: clamp(1.75rem, 1.4rem + 1.3vw, 2.5rem);
  --type-subsection-title: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  --type-card-title: clamp(1.25rem, 1.1rem + 0.45vw, 1.5rem);
  --type-lead: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --lh-tight: 1.1;
  --lh-snug: 1.2;
  --tracking-tight: -0.035em;
  --tracking-mid: -0.02em;
  --muted: #52656d;
}

html { scroll-padding-top: calc(var(--header-height) + 1rem); }
body { font-size: 1.0625rem; line-height: 1.65; }
.site-main { min-width: 0; }
.site-main h1 {
  font-size: var(--type-page-title);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  text-transform: none;
  overflow-wrap: anywhere;
}
.site-main .home-zero-title,
.site-main .home-v2-hero__title { font-size: var(--type-display); max-width: 22ch; }
.site-main .home-zero-title { text-transform: none; }
.home-zero-title span { white-space: normal; }
.site-main h2 {
  font-size: var(--type-section-title);
  line-height: 1.2;
  letter-spacing: var(--tracking-mid);
  text-transform: none;
  overflow-wrap: anywhere;
}
.site-main h3 {
  font-size: var(--type-card-title);
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-transform: none;
  overflow-wrap: anywhere;
}
.site-main h4 { font-size: 1.125rem; line-height: 1.4; }
.site-main .services-page-lead h2,
.site-main .company-section-title { font-size: var(--type-section-title); line-height: 1.2; }
.company-hero__copy h1,
.services-hero__copy h1,
.solutions-hero__copy h1,
.secondary-hero__content h1,
.page-hero__title { max-width: 24ch; }
.prose { max-width: 68ch; }
.home-zero-hero__intro,
.home-zero-hero__intro p {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  max-width: 58ch;
  font-size: var(--type-lead);
  line-height: 1.65;
}
.home-zero-hero__bleed,
.home-zero-hero__frame { min-height: 0; }
.home-zero-hero__frame { padding-block: clamp(3rem, 6vw, 5rem); }
.home-zero-section,
.company-section,
.services-page-section,
.solutions-page-section { padding-block: clamp(2.5rem, 4.5vw, 4.5rem); }
.home-zero-section > .shell { width: min(calc(100% - 2rem), var(--shell)); }
.home-zero-section--climb { max-height: none; overflow: visible; }
.home-zero-section--newsletter { width: 100%; margin-inline: 0; }
.home-zero-hero__bleed,
.home-zero-section--contrast { background-attachment: scroll; }
.home-zero-kicker { font-size: 0.8125rem; letter-spacing: 0.1em; }
.home-zero-faq__item p { line-height: 1.65; }
.home-zero-faq__item summary { cursor: pointer; }
.home-zero-method__steps { flex-wrap: wrap; }
.site-main .services-decision__result strong,
.site-main .solutions-filter__result > strong {
  font-size: var(--type-subsection-title);
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-transform: none;
}
.solutions-filter-result-card span { font-size: 0.75rem; }
.solutions-filter-result-card strong { font-size: 1rem; line-height: 1.3; }
.solutions-filter-result-card p { font-size: 0.9375rem; line-height: 1.5; }
.services-decision__options button,
.solutions-filter__chips button { font-size: 0.9375rem; line-height: 1.4; }
.button,
.site-header__cta,
.site-nav__link,
.site-nav__panel-toggle,
.services-decision__controls button,
.solutions-filter__actions button,
.solutions-filter__slider-top button,
.home-zero-method__step,
.site-footer__form button { min-height: 44px; }
.button { white-space: normal; text-align: center; line-height: 1.4; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea { font: inherit; font-size: 1rem; min-width: 0; }
.home-zero-contact__field label { font-size: 0.9375rem; }
.home-zero-contact__field--consent,
.newsletter-consent { font-size: 0.875rem; line-height: 1.5; }
.home-zero-contact__field--consent a,
.newsletter-consent a { text-decoration: underline; text-underline-offset: 0.15em; }
.site-footer__form button { font-size: 0.875rem; padding-inline: 0.75rem; }
.site-footer__bottom p,
.site-footer__bottom a { color: #c4d2cb; }
.site-main :where(p, li) a:not(.button) { text-underline-offset: 0.2em; }
.site-main :where(p, li) a:not(.button):hover { text-decoration-thickness: 2px; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #096573;
  outline-offset: 4px;
  box-shadow: 0 0 0 4px #fff;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #0c1114;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
.site-nav__panel { visibility: hidden; }
.site-nav__item:hover > .site-nav__panel,
.site-nav__item:focus-within > .site-nav__panel,
.site-nav__item.is-open > .site-nav__panel { visibility: visible; }
.site-nav__link[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.4em; }
.site-nav__item.is-dismissed > .site-nav__panel { visibility: hidden; opacity: 0; pointer-events: none; }

/* Article archives and reading pages share one hierarchy. */
.blog-hero { padding-block: clamp(2rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.blog-hero h1 { margin-block: 0 1rem; }
.blog-hero p { max-width: 58ch; }
.blog-list { padding-block: 2.5rem; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.blog-card { min-width: 0; border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
.blog-card__image { display: block; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.blog-card__body { padding: 1.25rem; }
.blog-card h2 { font-size: var(--type-card-title); margin-block: 0.75rem; }
.blog-card__meta,
.article-meta { color: var(--muted); font-size: 0.875rem; }
.blog-card__body p { font-size: 1rem; }
.blog-card__link { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 0.2em; }
.blog-pagination { margin-top: 2rem; }
.blog-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.blog-pagination .page-numbers { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; padding: 0.5rem; }
.blog-pagination .current { background: var(--ink); color: #fff; border-radius: 0.5rem; }
.article-header { padding-block: clamp(2rem, 5vw, 4rem); }
.article-header h1 { max-width: 26ch; }
.article-body { max-width: 68ch; font-size: 1.0625rem; }
.article-body h2 { margin-top: 2em; }
.article-body h3 { margin-top: 1.5em; }
.article-body p,
.article-body li { line-height: 1.75; }
.article-body > img,
.article-body > figure { margin-block: 2rem; }
.article-body blockquote { margin-inline: 0; padding-inline: 1.25rem; border-left: 3px solid #096573; }
.article-body pre,
.article-body .wp-block-table { overflow: auto; max-width: 100%; }
.article-body :where(a, code) { overflow-wrap: anywhere; }
.article-navigation { margin-block: 2.5rem; }
.article-navigation .nav-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.blog-search { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block: 1.5rem; }
.blog-search input { flex: 1 1 12rem; min-height: 44px; padding: 0.75rem; border: 1px solid #52656d; border-radius: 0.5rem; }

@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav__panel { display: none; }
  .site-nav__item.is-open > .site-nav__panel { display: block; max-height: none; overflow: visible; }
  /* Links remain usable if JavaScript cannot run. */
  html:not(.js) .site-nav-toggle { display: none; }
  html:not(.js) .site-header__nav-shell { position: static; height: auto; opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; }
  html:not(.js) .site-nav__panel { display: block; visibility: visible; opacity: 1; pointer-events: auto; max-height: none; padding-block: 0.5rem; }
}
html:not(.js) .home-zero-service-card,
html:not(.js) [data-company-reveal],
html:not(.js) [data-company-reveal-item] { opacity: 1; transform: none; }
html:not(.js) .services-decision,
html:not(.js) .solutions-filter__questions { display: none; }
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .home-zero-hero__frame { width: calc(100% - 2rem); padding-block: 2.5rem; overflow: visible; }
  .home-zero-hero__actions { flex-direction: column; align-items: stretch; }
  .home-zero-hero__actions .button { width: 100%; }
  .blog-grid { grid-template-columns: 1fr; }
  .home-zero-method__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-zero-method__step { width: 100%; font-size: 0.9375rem; }
  .home-zero-method__path { display: none; }
  .home-zero-method__step span { font-size: 0.8125rem; }
  .solutions-filter__slider-track { grid-auto-columns: minmax(0, 82vw); }
  .solutions-quick__slider .service-readiness__case-track { grid-auto-columns: minmax(0, 82vw); }
}
.service-assessment { display: grid; gap: 0.75rem; }
.solution-impact-card strong { font-size: 1.125rem; line-height: 1.4; }
.solution-impact-card p { font-size: 1rem; line-height: 1.6; }
.service-assessment article { padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--surface); }
.service-assessment h4 { margin: 0 0 0.35rem; color: var(--ink); }
.service-assessment p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.service-readiness__panel h3 { max-width: 28ch; }
.service-readiness__tablist label { display: inline-flex; align-items: center; min-height: 44px; line-height: 1.4; text-transform: none; letter-spacing: 0; }
.service-readiness__table-wrap { overflow: auto; }
.service-readiness__hero-card-label { font-size: var(--type-subsection-title); line-height: 1.3; }
.services-decision__mini-map { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.services-decision__result.is-waiting [data-decision-link] { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-company-reveal], [data-company-reveal-item], .home-zero-service-card { opacity: 1; transform: none; }
}
