/* =========================================================
   Site-wide typography (loaded last on every page)
   Headings : Inter Tight (Google Fonts) - stand-in for Neue Montreal (loopindustries.com)
   Body/UI  : Inter (Google Fonts) - stand-in for PP Neue Montreal
   Sizes follow a single scale; old page styles are overridden.
   ========================================================= */
:root{
  --font-sans:'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-serif:'Inter Tight', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --fs-xs:12px;     /* labels, kickers            */
  --fs-sm:14px;     /* buttons, menu, small text  */
  --fs-base:16px;   /* body text                  */
  --fs-lead:19px;   /* intro paragraphs           */
  --fs-h6:17px;
  --fs-h5:19px;
  --fs-h4:21px;     /* card titles                */
  --fs-h3:clamp(21px, 1.8vw, 26px);
  --fs-h2:clamp(28px, 3vw, 44px);   /* section titles */
  --fs-h1:clamp(36px, 4.8vw, 72px);   /* page titles    */
}

/* ---------- base ---------- */
html body{
  font-family:var(--font-sans) !important;
  font-size:var(--fs-base);
  line-height:1.6;
  letter-spacing:-.01em;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
html body :where(p, li, a, span, div, td, th, label, small, strong, em, b, dd, dt, blockquote,
  section, article, aside, nav, header, footer, main, figcaption, input, textarea, select, button){
  font-family:var(--font-sans) !important;
}

/* ---------- headings: serif, regular weight, normal case ---------- */
html body :where(h1, h2, h3, h4, h5, h6),
html body .sp-display, html body .wwd-title, html body .ab-title, html body .ab-lead,
html body .tpf-cta-title, html body .pageTitle, html body .pageTitle1, html body .prfileHead,
html body .pageName h1, html body .contHead, html body .portfolio_head h1, html body .tec_services h1,
html body .h4about, html body .h5about, html body .subTitlee, html body .appHead,
html body .sp-num, html body .sp-step::before, html body .sp-stat strong, html body .ab-stat strong{
  font-family:var(--font-serif) !important;
  font-weight:400 !important;
  text-transform:none !important;
  letter-spacing:-.02em !important;
}
html body :where(h1, h2, h3, h4, h5, h6) *{ font-family:inherit !important; }

/* small label-style headings stay sans */
html body .tpf-head, html body .ab-points-head, html body .h6about, html body .sp-quote,
html body .tpf-kicker, html body .sp-kicker, html body .ab-kicker, html body .sp-chips-label{
  font-family:var(--font-sans) !important;
}

/* ---------- heading scale ---------- */
html body h1, html body .pageTitle, html body .pageTitle1, html body .prfileHead,
html body .pageName h1, html body .portfolio_head h1, html body .tec_services h1,
html body #about h3.has-line{
  font-size:var(--fs-h1) !important;
  line-height:1.04 !important;
}
html body h2{ font-size:var(--fs-h2); line-height:1.1; }
html body h3{ font-size:var(--fs-h3); line-height:1.2; }
html body h4{ font-size:var(--fs-h4); line-height:1.25; }
html body h5{ font-size:var(--fs-h5); line-height:1.3; }
html body h6{ font-size:var(--fs-h6); line-height:1.35; }

/* new-design components */
html body .sp-hero h1{ font-size:var(--fs-h1) !important; line-height:1.02 !important; }
html body .sp-head h2, html body .sp-intro h2, html body .sp-split h2, html body .sp-feature h2,
html body .sp-cta-box h2, html body .ab-title, html body .tpf-cta-title{
  font-size:var(--fs-h2) !important; line-height:1.08 !important;
}
html body .sp-card h3, html body .wwd-title, html body .sp-panel h3{ font-size:var(--fs-h4) !important; line-height:1.25 !important; }
html body .sp-step h3{ font-size:var(--fs-h3) !important; }
html body .ab-lead{ font-size:var(--fs-h5) !important; letter-spacing:0 !important; color:#555; }
html body .sp-quote{ font-size:var(--fs-sm) !important; letter-spacing:.06em !important; text-transform:uppercase !important; }
html body .sp-num, html body .sp-step::before{ letter-spacing:-.03em !important; }

/* body copy */
html body p, html body li{ font-size:var(--fs-base); }
html body .sp-lead{ font-size:var(--fs-lead) !important; line-height:1.6 !important; }
html body .sp-hero-sub{ font-size:var(--fs-lead) !important; }
html body .sp-card p, html body .sp-step p, html body .wwd-text, html body .ab-text, html body .ab-point,
html body .sp-checks li, html body .tpf-brand p, html body .tpf-contact li, html body .tpf-links li,
html body .pagePara, html body .pagePara1, html body .pagePara3, html body .pabout,
html body .boxabout-border ul li, html body .focus-description h3{
  font-size:var(--fs-base) !important;
  line-height:1.7 !important;
}

/* ---------- UI text: labels, menu, buttons ---------- */
html body .sp-kicker, html body .ab-kicker, html body .tpf-kicker, html body .tph-mega-label,
html body .tph-side-kicker, html body .sp-chips-label, html body .tpf-head, html body .ab-points-head,
html body .sp-crumb, html body .ab-stat span, html body .sp-stat span{
  font-size:var(--fs-xs) !important;
  font-weight:600 !important;
  letter-spacing:.14em !important;
  text-transform:uppercase !important;
}
html body .tph .tph-link, html body .tph .tph-cta, html body .sp-btn, html body .ab-btn, html body .tpf-btn,
html body .wwd-more, html body .sp-more, html body .sp-tab, html body .tph-side-btn, html body .readmoreee{
  font-size:var(--fs-sm) !important;
  font-weight:500 !important;
  letter-spacing:-.005em !important;
  text-transform:none !important;
}
html body .tph .tph-cta, html body .sp-btn, html body .ab-btn, html body .tpf-btn, html body .tph-side-btn{ font-weight:600 !important; }
html body .tph .tph-link{ font-size:15px !important; }
html body .tph .tph-drop a, html body .sp-tag, html body .sp-chip, html body .tpf-bottom,
html body .tph-svc-txt small, html body .tpf-mail{
  font-size:var(--fs-sm) !important;
  letter-spacing:-.005em !important;
}
html body .tph .tph-svc-txt strong{ font-size:15px !important; font-weight:600 !important; }
html body .tph .tph-svc-txt small{ font-size:13px !important; }
html body .tph .tph-drop .tph-pills a{ font-size:12.5px !important; }
html body .tph-side-title{ font-family:var(--font-serif) !important; font-size:20px !important; line-height:1.35 !important; letter-spacing:-.01em !important; }

/* ---------- phones ---------- */
@media screen and (max-width:600px){
  :root{ --fs-base:15.5px; --fs-lead:17px; --fs-h4:19px; }
  html body .tph .tph-link{ font-size:15px !important; }
}
