/*
 * One type scale for the whole site (loaded last on every page).
 * Display font: Type Juice Unison Pro (uppercase). Desktop / phone:
 *   H1  page title: homepage hero + blog lobby 50 / 40 px
 *   H1  inner pages (article, case, privacy) ...... 32 / 28 px  (= H2 size, the largest on those pages)
 *   H2  section title ............................. 36 / 28 px
 *   H3  card / item title (services, projects) .... 28 / 24 px
 *   H4  small heading inside text, blocks ......... 18 / 17 px
 *   card title (blog cards) ....................... 15 / 17 px  (unchanged)
 * Rule: on every page H1 > H2 > H3 > H4.
 */
:root {
  --fs-h1: clamp(2.5rem, 4.45vw, 4rem);
  --fs-h1-inner: clamp(1.25rem, 1.65vw, 1.5rem);
  --fs-h2: clamp(1.75rem, 2.5vw, 2.25rem);
  --fs-h3: clamp(1.5rem, 1.95vw, 1.75rem);
  --fs-h4: clamp(1.0625rem, 1.25vw, 1.125rem);
}

/* H1 */
.hero-main-info .h1,
.blog-head .case-title { font-size: clamp(2.5rem, 3.5vw, 3.25rem) !important; line-height: 1 !important; }
.post-title,
.case .case-title,
.section-privacy h1 { font-size: var(--fs-h2) !important; line-height: 1.05 !important; }

/* H2: homepage section titles */
.heading-2 { font-size: var(--fs-h2) !important; line-height: 1 !important; }
.section-privacy h1.heading-2 { font-size: var(--fs-h2) !important; }

/* H3: item titles */
.section-services .serv-name,
.pf-b-name { font-size: var(--fs-h3) !important; line-height: 1 !important; }

/* Inner pages: everything below the small H1 */
.blog-card--featured .case-h2 { font-size: clamp(1.5rem, 2vw, 1.75rem) !important; line-height: 1.05 !important; }
/* Blog lobby uses the homepage sizes: H1 = hero, H2 = section title, H3 = item title. */
/* Card titles (blog lobby, More articles, More case studies) */
.blog-card-title { font-size: clamp(1.1875rem, 1.5vw, 1.375rem) !important; line-height: 1.1 !important; }
.post-more-head .case-h2 { font-size: var(--fs-h2) !important; line-height: 1 !important; } /* "More articles" / "More case studies" = homepage H2 */
.post-h2,
.case-layout .case-h2,
.post-aside-title { font-size: clamp(1.125rem, 1.4vw, 1.25rem) !important; line-height: 1.1 !important; }
.case-stat dt { font-size: var(--fs-h4) !important; }
/* Hero title: exactly two lines on desktop ("Passion Powered" / "Design Agency"). */
@media (min-width: 768px) { .hero-main-info .h1 { white-space: nowrap; max-width: none !important; } }

/* Small phones (≤ 400px): keep everything inside the screen */
@media (max-width: 400px) {
  .hero-main-info .h1 { font-size: clamp(1.875rem, 10vw, 2.5rem) !important; }
}
@media (max-width: 767px) {
  .section-sticky-item-wrap-col-1, .section-sticky-item-wrap-col-3, .serv-main-info { width: 100% !important; max-width: 100%; }
  .privacy-heading, .privacy-heading-wrap { max-width: 100%; min-width: 0; width: auto; overflow-wrap: anywhere; }
}

/* Line height: one value for body text everywhere (1.4); card excerpts 1.3 (user
   asked for tighter cards); display headings ~1.0-1.15 (set above). */
.hero-text, .serv-main-info p, .serv-main-info, .pf-b-desc, .p-1, ._1rem,
.case-lead, .post-lead, .post-aside-text, .post-sec p, .post-sec li, .case-desc, .case-approach p,
.privacy-text, .section-privacy li, .section-privacy .list, .tl-items { line-height: 1.4 !important; }
.blog-card-body p { line-height: 1.3 !important; }
/* Hero: "Contact us" and "Book a call" texts on one line (centred, not bottom-aligned). */
.hero-btn-wrap { align-items: center !important; }
