/* 1020 INC. — SITE-WIDE TYPOGRAPHY SYSTEM
   Single shared scale for every primary page and shared component.
   Layout, colour, weight, spacing and line breaks remain page-specific.
*/
:root {
  --type-display: clamp(64px, 6vw, 82px);
  --type-section: clamp(42px, 4.2vw, 58px);
  --type-card: clamp(20px, 1.7vw, 26px);
  --type-body: 15px;
  --type-support: 13px;
  --type-meta: 10px;
}
html body,
html body :is(h1,h2,h3,h4,h5,h6,p,small,label,button,input,select,textarea) {
  font-family: "Montserrat", Arial, sans-serif !important;
}
html body :is(h1) { font-size: var(--type-display) !important; line-height: 1.04; }
html body :is(h2) { font-size: var(--type-section) !important; line-height: 1.12; }
html body :is(h3) { font-size: var(--type-card) !important; line-height: 1.25; }
html body :is(h4) { font-size: 18px !important; line-height: 1.3; }
html body :is(h5,h6) { font-size: 16px !important; line-height: 1.35; }
html body :is(p,li) { font-size: var(--type-body) !important; line-height: 1.75; }
html body :is(small, .muted, .note, .supporting-text, .footer-brand-desc,
  .footer-contact-list li, .footer-links-list li a, .footer-disclaimer,
  .footer-legal-links, .footer-legal-links a, .signature-collab,
  .path-copy small, .step span, .card p, .card li, .tag,
  .technology-tags span, .labs-products-line span, .martech-float-panel>a span) {
  font-size: var(--type-support) !important;
  line-height: 1.65;
}
html body :is(.eyebrow,.kicker,.hero-signature,.number,.metadata,.meta,
  .footer-nav-title,.footer-col-header h3,.ribbon-item,.footer-copyright,
  .signature-tag,.footer-legal-links,.footer-bottom-bar,
  .nav,.nav a,.nav-cta,.button,.menu-toggle,.field label,
  .footer-nav-label,.martech-card-index,.martech-float-trigger-label,
  .martech-float-panel-heading span) {
  font-size: var(--type-meta) !important;
  line-height: 1.5;
}
html body :is(input,select,textarea) { font-size: 14px !important; }
html body :is(.site-footer .footer-brand-heading) {
  font-size: 22px !important;
  line-height: 1.35;
}
html body :is(.site-footer .footer-nav-title) { font-size: 11px !important; }
html body :is(.site-footer .footer-links-list li a,
  .site-footer .footer-contact-list li) { font-size: 13px !important; }
html body :is(.site-footer .footer-brand-desc,
  .site-footer .footer-disclaimer) { font-size: 11.5px !important; }
html body :is(.site-footer .footer-copyright,
  .site-footer .footer-legal-links,
  .site-footer .footer-legal-links a,
  .site-footer .signature-tag,
  .site-footer .signature-collab) { font-size: 10px !important; }

@media (max-width: 700px) {
  :root {
    --type-display: clamp(40px, 10.5vw, 48px);
    --type-section: clamp(30px, 8vw, 38px);
    --type-card: clamp(18px, 5vw, 22px);
    --type-body: 14px;
    --type-support: 13px;
    --type-meta: 10px;
  }
  html body :is(h1) { line-height: 1.08; }
  html body :is(h2) { line-height: 1.16; }
  html body :is(p,li) { line-height: 1.7; }
  html body :is(.site-footer .footer-brand-heading) { font-size: 20px !important; }
  html body :is(.site-footer .footer-links-list li a,
    .site-footer .footer-contact-list li,
    .site-footer .footer-brand-desc,
    .site-footer .footer-disclaimer) { font-size: 13px !important; }
}


/* Page-specific legacy selectors must be overridden with equal-or-greater specificity. */
html body .infra-service-card > p,
html body .infra-service-card li {
  font-size: var(--type-body) !important;
}
@media (max-width: 700px) {
  html body .infra-service-card > p,
  html body .infra-service-card li {
    font-size: var(--type-body) !important;
  }
}


/* Proposition metrics: readable labels and numerals, including narrow mobile cards. */
html body .infra-stat-stack b {
  font-size: 15px !important;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .06em;
}
html body .infra-stat-stack span {
  font-size: var(--type-body) !important;
  line-height: 1.55;
}

/* Mobile typography floor: minimum text size is 11.5px. */
@media (max-width: 700px) {
  :root {
    --type-support: 11.5px;
    --type-meta: 11.5px;
  }
  html body :is(small, .muted, .note, .supporting-text, .footer-brand-desc,
    .footer-contact-list li, .footer-links-list li a, .footer-disclaimer,
    .footer-legal-links, .footer-legal-links a, .signature-collab,
    .path-copy small, .step span, .card p, .card li, .tag,
    .technology-tags span, .labs-products-line span, .martech-float-panel>a span,
    .eyebrow, .kicker, .hero-signature, .metadata, .meta,
    .footer-nav-title, .footer-col-header h3, .ribbon-item,
    .footer-copyright, .signature-tag, .footer-bottom-bar,
    .nav, .nav a, .nav-cta, .button, .menu-toggle, .field label,
    .footer-nav-label, .martech-card-index, .martech-float-trigger-label,
    .martech-float-panel-heading span) {
    font-size: 11.5px !important;
  }
  html body .infra-stat-stack span {
    font-size: 14px !important;
  }
  html body .infra-stat-stack b {
    font-size: 15px !important;
  }
  html body .site-footer .footer-copyright,
  html body .site-footer .footer-legal-links,
  html body .site-footer .footer-legal-links a,
  html body .site-footer .signature-tag,
  html body .site-footer .signature-collab {
    font-size: 11.5px !important;
  }
}


/* Infrastructure proposition: restore compact, readable mobile hierarchy. */
html body .infra-stat-stack b {
  font-size: 12px !important;
  font-weight: 800;
  line-height: 1.4;
}
html body .infra-stat-stack span {
  font-size: 15px !important;
  line-height: 1.55;
}
@media (max-width: 700px) {
  html body .infra-stat-stack b,
  html body .infra-stat-stack span {
    font-size: 12px !important;
  }
  /* S09 mobile node descriptions: compact to preserve diagram clarity. */
  html body:has(.hero-section) :is(.s09-impact-item p, .s09-adv-node p) {
    font-size: 12px !important;
  }
  html body .infra-proposition p {
    font-size: 14px !important;
  }
}


/* FOUR-PAGE TYPOGRAPHY MAP — Home, About, Infrastructure and Investment */
/* Shared role sizes: preserve each page's layout, colours and component spacing. */
html body :is(.home-page, .aboutx, .investment-page, main) {
  font-family: "Montserrat", Arial, sans-serif;
}

/* HOME — supporting copy and compact labels */
html body .home-page main :is(.landscape-points p, .vertical-card p,
  .value-steps p, .engagement-flow p, .capability-detail p,
  .martech-platform-card p, .product-highlight p, .principle-grid p) {
  font-size: 13px !important;
  line-height: 1.65;
}
html body .home-page main :is(.eyebrow, .kicker, .hero-signature,
  .vertical-card-content > span, .vertical-card-content > b,
  .capability-overline, .product-highlight > span, .martech-card-index,
  .labs-toolkit-label, .labs-toolkit-heading > b, .text-link) {
  font-size: 11.5px !important;
}

/* ABOUT — distinguish narrative copy from card and timeline descriptions */
html body .aboutx :is(.ax-hero-copy > p, .ax-head p, .ax-manifesto p,
  .ax-lead p, .ax-end p) {
  font-size: 15px !important;
  line-height: 1.75;
}
html body .aboutx :is(.ax-four p, .ax-era p, .ax-case p, .ax-work-copy p,
  .ax-architecture-grid p, .ax-vertical p, .ax-principles p) {
  font-size: 13px !important;
  line-height: 1.65;
}
html body .aboutx :is(.ax-note, .ax-work-link, .ax-brand small,
  .ax-hero-meta, .ax-node span, .ax-orbit-core span) {
  font-size: 11.5px !important;
}

/* INFRASTRUCTURE — section introductions remain body copy; card details are supporting copy */
html body :is(.infra-services-head > p, .infra-section .section-head > p,
  .infra-proposition > div:first-child > p, .infra-hero-copy > p,
  .infra-intel p, .infra-leader p, .infra-cta p) {
  font-size: 14px !important;
}
html body :is(.infra-partner-list p, .infra-sector-list span,
  .infra-solar p, .infra-capability-grid p, .infra-timeline p,
  .infra-service-card > p, .infra-service-card li,
  .infra-service-output span, .infra-intel-pillars p,
  .infra-intel-note span, .infra-service-note, .infra-note) {
  font-size: 13px !important;
  line-height: 1.65;
}
html body :is(.infra-proof, .infra-photo span, .infra-sector-image span,
  .infra-capability-grid b, .infra-timeline b, .infra-due-list span,
  .infra-service-top, .infra-service-output b, .infra-intel-pillars article > span) {
  font-size: 11.5px !important;
}

/* INVESTMENT / FINANCE — section introductions, service descriptions and compact metadata */
html body .investment-page :is(.invest-hero-copy > p,
  .invest-section-head > p, .invest-connect-heading > p,
  .invest-deliverables-heading > p, .invest-evaluation-intro > p,
  .invest-intelligence-copy > p, .invest-process-inner > p,
  .invest-cta-content > p) {
  font-size: 14px !important;
  line-height: 1.7;
}
html body .investment-page :is(.invest-direction p, .invest-service-card > p,
  .invest-service-card ul li, .invest-connect-column li,
  .invest-sector-content > p, .invest-sector-principle p,
  .invest-deliverables-grid p, .invest-timeline p,
  .invest-tab-panel li, .invest-research-list p,
  .invest-intel-note span, .invest-cta-path small) {
  font-size: 13px !important;
  line-height: 1.65;
}
html body .investment-page :is(.invest-caption, .invest-proof,
  .invest-direction-number, .invest-direction-label, .invest-direction-outcome,
  .invest-geography-note, .invest-service-top, .invest-card-note,
  .invest-connect-title > span, .invest-sector-image span,
  .invest-sector-areas span, .invest-pills span,
  .invest-sector-footnote, .invest-deliverables-grid article > span,
  .invest-timeline article > span, .invest-process-footnote,
  .invest-panel-heading > span, .invest-research-list article > span,
  .invest-visual-caption span, .invest-intel-note b,
  .invest-cta-path-no, .invest-present-link, .invest-cta-signoff,
  .invest-regulatory-note p) {
  font-size: 11.5px !important;
}

/* Mobile: the agreed floor applies to compact text, while body and supporting roles retain hierarchy. */
@media (max-width: 700px) {
  html body .home-page main :is(.landscape-points p, .vertical-card p,
    .value-steps p, .engagement-flow p, .capability-detail p,
    .martech-platform-card p, .product-highlight p, .principle-grid p),
  html body .aboutx :is(.ax-four p, .ax-era p, .ax-case p, .ax-work-copy p,
    .ax-architecture-grid p, .ax-vertical p, .ax-principles p),
  html body :is(.infra-partner-list p, .infra-sector-list span,
    .infra-solar p, .infra-capability-grid p, .infra-timeline p,
    .infra-service-card > p, .infra-service-card li,
    .infra-service-output span, .infra-intel-pillars p,
    .infra-intel-note span, .infra-service-note, .infra-note),
  html body .investment-page :is(.invest-direction p, .invest-service-card > p,
    .invest-service-card ul li, .invest-connect-column li,
    .invest-sector-content > p, .invest-sector-principle p,
    .invest-deliverables-grid p, .invest-timeline p,
    .invest-tab-panel li, .invest-research-list p,
    .invest-intel-note span, .invest-cta-path small) {
    font-size: 12px !important;
  }
  html body .aboutx :is(.ax-hero-copy > p, .ax-head p, .ax-manifesto p,
    .ax-lead p, .ax-end p),
  html body :is(.infra-services-head > p, .infra-section .section-head > p,
    .infra-proposition > div:first-child > p, .infra-hero-copy > p,
    .infra-intel p, .infra-leader p, .infra-cta p),
  html body .investment-page :is(.invest-hero-copy > p,
    .invest-section-head > p, .invest-connect-heading > p,
    .invest-deliverables-heading > p, .invest-evaluation-intro > p,
    .invest-intelligence-copy > p, .invest-process-inner > p,
    .invest-cta-content > p) {
    font-size: 14px !important;
  }
  html body .infra-stat-stack b,
  html body .infra-stat-stack span {
    font-size: 12px !important;
  }
  html body .infra-proposition > div:first-child > p {
    font-size: 14px !important;
  }
}


/* INFRA HERO — retain its designed display scale; do not inherit global H1 sizing. */
html body .infra-hero .infra-hero-copy h1 {
  font-size: clamp(48px, 5vw, 66px) !important;
  line-height: 1.04 !important;
  letter-spacing: -.06em;
  max-width: 690px;
}
@media (max-width: 640px) {
  html body .infra-hero .infra-hero-copy h1 {
    font-size: clamp(36px, 10.5vw, 42px) !important;
    line-height: 1.04 !important;
  }
}


/* MARTECH & AI PAGE — ROLE-BASED TYPOGRAPHY MAP */
/* Scoped to the MarTech page only. Keep its bespoke diagrams and section layouts intact. */
html body:has(.hero-section) {
  --martech-copy: 15px;
  --martech-support: 13px;
  --martech-meta: 11.5px;
}

/* Desktop heading sizes: restore the original MarTech design scale.
   Mobile overrides remain in the media query below. */
html body:has(.hero-section) .hero-heading {
  font-size: clamp(48px, 3.5vw, 64px) !important;
  line-height: 1.2 !important;
  letter-spacing: -.03em;
}
html body:has(.hero-section) .equation-heading {
  font-size: clamp(32px, 3vw, 40px) !important;
  line-height: 1.2 !important;
}
html body:has(.hero-section) .s6-title {
  font-size: clamp(42px, 5vw, 68px) !important;
  line-height: 1.12 !important;
}
html body:has(.hero-section) .s8-story h2 {
  font-size: 20px !important;
  line-height: 1.3 !important;
}
html body:has(.hero-section) .s09-intro h2 {
  font-size: clamp(38px, 4.1vw, 58px) !important;
  line-height: 1.15 !important;
}
html body:has(.hero-section) .ia-title {
  font-size: clamp(40px, 5vw, 72px) !important;
  line-height: 1.1 !important;
}
html body:has(.hero-section) .s7-heading {
  font-size: clamp(44px, 6.2vw, 82px) !important;
  line-height: 1.04 !important;
}
html body:has(.hero-section) .s10-title {
  font-size: clamp(40px, 4.5vw, 60px) !important;
  line-height: 1.1 !important;
}
html body:has(.hero-section) :is(.capability-header h2, .evolution-intro h2,
  .ia-manifesto h2, .s7-metrics-heading h2, .s7-next h2,
  .s8-difference h2, .s09-panel h2, .s09-closing h2,
  .s10-step-heading, .s10-closing-heading) {
  font-size: clamp(24px, 2.8vw, 36px) !important;
  line-height: 1.2 !important;
}
html body:has(.hero-section) :is(.capability-card h3, .stage-header,
  .foundation-title, .ia-principle h3, .s6-domain h3, .s7-card-label,
  .s7-drives-title, .s8-layer-name, .outcome-title, .journey-title,
  .s09-shift-heading, .s09-panel-copy h3, .s10-scenario-title,
  .s10-impact-card h3, .s10-action-title, .s10-bridge-title,
  .s10-engagement-heading) {
  font-size: clamp(16px, 1.4vw, 20px) !important;
  line-height: 1.3 !important;
}


/* S09 MAIN STATEMENT — restore the section's intended display scale on desktop.
   The global 82px display token was overpowering this split-layout headline. */
@media (min-width: 701px) {
  html body:has(.hero-section) .s09-intro h1 {
    font-size: clamp(38px, 4.1vw, 58px) !important;
    line-height: .99 !important;
  }
}

/* S09 transformation comparison — restrained desktop column headings. */
@media (min-width: 701px) {
  html body:has(.hero-section) .s09-shift-heading {
    font-size: 15px !important;
    line-height: 1.3 !important;
  }
}

html body:has(.hero-section) :is(.eq-node-title, .architecture-node,
  .flow-n1, .flow-n2, .flow-n3-left, .flow-n3-center, .flow-n3-right,
  .flow-n4, .flow-n5, .flow-n6, .s10-node-title, .s10-step-tag) {
  font-size: 13px !important;
  line-height: 1.4 !important;
}

/* Primary explanatory copy */
html body:has(.hero-section) :is(.hero-subheading, .equation-sub,
  .capability-header-center p, .evolution-intro p, .ia-lead,
  .ia-manifesto-block p, .s6-lead, .s7-lead, .s8-description,
  .s09-intro p, .s09-panel-copy p, .s10-lead, .s10-step-desc,
  .s10-engagement-desc, .s10-closing-sub) {
  font-size: var(--martech-copy) !important;
  line-height: 1.7 !important;
}

/* Supporting card, stage, list and outcome descriptions */
html body:has(.hero-section) :is(.capability-card p, .stage-description,
  .stage-outcome, .stage-detail, .foundation-item p, .ia-principle p,
  .s6-sub, .s7-drives-grid p, .s7-metric p, .s8-difference-item p,
  .layer-question, .layer-content, .outcome-subtitle, .journey-step,
  .s09-shift-card p, .s09-journey-item p, .s09-impact-item p,
  .s09-impact-item > span, .s09-adv-node p, .s10-scenario-list,
  .s10-top-name, .s10-pw-sub, .s10-impact-item > span,
  .s10-action-desc, .s10-bridge-item p) {
  font-size: var(--martech-support) !important;
  line-height: 1.65 !important;
}

/* Eyebrows, indices, diagram annotations and compact metadata */
html body:has(.hero-section) :is(.eyebrow-text, .stat-text,
  .card-number, .stage-number, .outcome-label, .evolution-eyebrow,
  .proof-eyebrow, .ia-eyebrow, .ia-kicker, .ia-principle-number,
  .s6-eyebrow, .s6-index, .s7-kicker, .s7-card-number,
  .s7-metrics-note, .s7-next-eyebrow, .s8-eyebrow,
  .s8-index, .layer-no, .diamond-number, .impact-eyebrow,
  .s09-eyebrow, .s09-panel-eyebrow, .s09-adv-node span,
  .s10-eyebrow, .s10-node-meta, .s10-node-num, .s10-step-tag,
  .s10-breakdown-label, .s10-matrix-title, .s10-top-item,
  .s10-gauge-label, .s10-gauge-note, .s10-engagement-tag,
  .s10-bridge-item > span) {
  font-size: var(--martech-meta) !important;
  line-height: 1.5 !important;
}

/* Mobile: retain hierarchy without shrinking meaningful reading text. */
@media (max-width: 700px) {
  html body:has(.hero-section) {
    --martech-copy: 14px;
    --martech-support: 12px;
    --martech-meta: 11.5px;
  }
  html body:has(.hero-section) .hero-heading {
    font-size: clamp(36px, 9.5vw, 44px) !important;
    line-height: 1.08 !important;
  }
  html body:has(.hero-section) :is(.equation-heading, .s6-title,
    .s8-story h2, .s09-intro h2, .ia-title) {
    font-size: clamp(30px, 8vw, 38px) !important;
    line-height: 1.16 !important;
  }
  html body:has(.hero-section) :is(.s7-heading, .s10-title) {
    font-size: clamp(38px, 10vw, 46px) !important;
    line-height: 1.06 !important;
  }
  html body:has(.hero-section) :is(.capability-header h2, .evolution-intro h2,
    .ia-manifesto h2, .s7-metrics-heading h2, .s7-next h2,
    .s8-difference h2, .s09-panel h2, .s09-closing h2,
    .s10-step-heading, .s10-closing-heading) {
    font-size: clamp(25px, 6.5vw, 32px) !important;
  }
  html body:has(.hero-section) :is(.capability-card h3, .stage-header,
    .foundation-title, .ia-principle h3, .s6-domain h3, .s7-card-label,
    .s7-drives-title, .s8-layer-name, .outcome-title, .journey-title,
    .s09-shift-heading, .s09-panel-copy h3, .s10-scenario-title,
    .s10-impact-card h3, .s10-action-title, .s10-bridge-title,
    .s10-engagement-heading) {
    font-size: 18px !important;
  }
  html body:has(.hero-section) :is(.hero-subheading, .equation-sub,
    .capability-header-center p, .evolution-intro p, .ia-lead,
    .ia-manifesto-block p, .s6-lead, .s7-lead, .s8-description,
    .s09-intro p, .s09-panel-copy p, .s10-lead, .s10-step-desc,
    .s10-engagement-desc, .s10-closing-sub) {
    font-size: 14px !important;
  }
  html body:has(.hero-section) :is(.capability-card p, .stage-description,
    .stage-outcome, .stage-detail, .foundation-item p, .ia-principle p,
    .s6-sub, .s7-drives-grid p, .s7-metric p, .s8-difference-item p,
    .layer-question, .layer-content, .outcome-subtitle, .journey-step,
    .s09-shift-card p, .s09-journey-item p, .s09-impact-item p,
    .s09-impact-item > span, .s09-adv-node p, .s10-scenario-list,
    .s10-top-name, .s10-pw-sub, .s10-impact-item > span,
    .s10-action-desc, .s10-bridge-item p) {
    font-size: 12px !important;
  }
}


/* S09 BUSINESS IMPACT + ADVANTAGE — compact laptop/desktop supporting copy.
   Mobile typography remains governed by the existing mobile rules below. */
@media (min-width: 701px) {
  html body:has(.hero-section) :is(.s09-impact-item p, .s09-adv-node p) {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
}

/* S09 ADVANTAGE — compact mobile node descriptions, respecting the 11.5px legibility floor. */
@media (max-width: 700px) {
  html body:has(.hero-section) .s09-advantage .s09-adv-node p {
    font-size: 11.5px !important;
    line-height: 1.4 !important;
  }
}


/* FINAL S09 DESKTOP OVERRIDE — ensure both comparison headings stay restrained. */
@media (min-width: 701px) {
  html body:has(.hero-section) .s09-shift-diagram .s09-shift-column .s09-shift-heading {
    font-size: 14px !important;
    line-height: 1.3 !important;
    letter-spacing: .12em !important;
  }
}
