/* Compact content pages (polish pass, 2026-11-29).

   Amir's taste since 21 Nov 2026: standard, compact, content-heavy pages. He turned down the template's big-type
   look for content pages ("eat so much space"). The service pages (.svc2) already follow it; About, White label,
   Contact, Quote, the analysis and short pages, the process page, the Work index, the blog index and the privacy
   page still used the template's 140px titles, 330px step counts and 30px body text.

   tools/hm_site.py page_shell links this file last on every inner page, after hm-parity.css, so it overrides that
   file's demo measurements. The homepage does not load it. Every selector names a template part that only those
   content pages use (service pages, posts and project pages have none of them). Each starts with "main" and
   repeats the full class chain of the hm-parity.css rule it replaces, so it outranks that rule at 1600 to 1919px
   as well as the theme's (checked at 1024, 1440 and 1700px).

   Fonts and colors stay: BDOGrotesk headings, the italic accent word, DM Sans text, black on white. Only sizes and
   spacing change. Phone sizes were already compact; the few phone rules are at the end. */

/* ---- Page titles: 140px on desktop, now 78px at 1440, 89px at 1700 and at most 96px. Amir, 2026-11-29: live is
   too big, 59px at 1440 was too small, "a few points bigger". Phones keep about the theme's 32 to 40px. ---- */
main .page-title-area:not(.hm-work-detail) .page-title,
main .page-title-area:not(.hm-work-detail) .page-title span,
main .about-us .section-title-2,
main .about-us .section-title-2 span {
  font-size: clamp(32px, 4.2vw + 18px, 96px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
main .blog-details:not(.hm-post) .section-title {
  font-size: clamp(32px, 4.2vw + 18px, 96px);
  line-height: 1.04;
}

@media (min-width: 992px) {
  /* ---- Space under the menu bar and around the title ---- */
  main .page-title-area .page-title-area-inner.section-spacing-top,
  main .page-title-area.contact-title .page-title-area-inner.section-spacing-top { padding-top: 56px; }
  main .about-us .about-us-inner { padding-top: 56px; }
  /* The wide photo under the About title was 773px tall at 1440 (865px from 1600px). */
  main .about-us .about-us__media img { height: clamp(320px, 34vw, 520px); object-fit: cover; }

  /* ---- "Our story" style rows: label left, text right ---- */
  main .who-we-are .who-we-are__wrapper { margin-top: 64px; }
  main .who-we-are .who-we-are__content p.designation { font-size: 24px; line-height: 1.5; }
  main .who-we-are .who-we-are__content p.designation.mb-40 { margin-bottom: 22px; }
  main .who-we-are .who-we-are__content h2.designation,
  main .who-we-are .who-we-are__content h3.designation { font-size: 34px; line-height: 1.18; letter-spacing: -0.02em; }
  main .who-we-are .who-we-are__content h2.designation.mb-40,
  main .who-we-are .who-we-are__content h3.designation.mb-40 { margin-bottom: 16px; }
  main .who-we-are.section-spacing-bottom { padding-bottom: 64px; }

  /* ---- Numbered steps (White label, the process page): the count beside the rows was 330px ---- */
  main .approach-area-service-details-page.section-spacing-top { padding-top: 64px; }
  main .approach-area-service-details-page .approach-area-service-details-page-inner.section-spacing-bottom-150 { padding-bottom: 56px; }
  main .approach-area-service-details-page .approach-wrapper-content { margin-top: 0; }
  main .approach-area-service-details-page .approach-wrapper-content .steps {
    font-size: 160px; line-height: 1; margin-top: 24px; letter-spacing: -0.04em;
  }
  main .approach-area-service-details-page .section-header .section-title { font-size: 46px; line-height: 1.08; margin-bottom: 36px; }
  main .approach-area-service-details-page .approach-box { padding-top: 26px; padding-bottom: 28px; }
  main .approach-area-service-details-page .approach-box .title { font-size: 27px; line-height: 1.18; letter-spacing: -0.02em; }
  main .approach-area-service-details-page .approach-box .number { font-size: 24px; line-height: 1.3; }
  main .approach-area-service-details-page .approach-box .text { font-size: 18px; line-height: 1.55; }

  /* ---- Questions: the heading beside them was 90px ---- */
  main .faq-area .section-title-wrapper .title-wrapper .section-title {
    font-size: 60px; line-height: 1.04; margin-top: 8px; letter-spacing: -0.03em;
  }
  main .faq-area.faq-area-space { padding-top: 32px; }

  /* ---- Marquee line on About: 210px, now two thirds of that ---- */
  main .marquee-text-area.marquee-text-area--padding { padding-top: 72px; }
  main .marquee-text-area .section-title { font-size: 140px; line-height: 1; }

  /* ---- Work samples, contact form and offices ---- */
  main .work-area .work-area-inner.section-spacing-top { padding-top: 48px; }
  main .contact-page.section-spacing-top { padding-top: 56px; }
  main .contact-page.section-spacing-bottom-150 { padding-bottom: 80px; }
  main .contact-us.section-spacing-top { padding-top: 64px; }
  main .contact-us.section-spacing-bottom-150 { padding-bottom: 80px; }

  /* ---- Blog index and Work index: space under the title ---- */
  main .blog-area .blog-area-inner.section-spacing-bottom-150 { padding-bottom: 80px; }
}

/* ---- Privacy policy and the online presence page (old article layout, not the blog posts): lines ran the full
   1290px container, about 180 characters. Now a readable column, and section headings at heading size. ---- */
main .blog-details:not(.hm-post) .blog-details__content p,
main .blog-details:not(.hm-post) .blog-details__content ul,
main .blog-details:not(.hm-post) .blog-details__content ol,
main .blog-details:not(.hm-post) .blog-details__content h2,
main .blog-details:not(.hm-post) .blog-details__content h3 {
  max-width: 760px;
}
main .blog-details:not(.hm-post) .blog-details__content h2 {
  font-size: clamp(24px, 1.2vw + 18px, 36px); line-height: 1.2; margin-top: 36px; margin-bottom: 12px;
}
/* The privacy page's text starts under its title, which sits in the right-hand nine of twelve columns (the "Legal"
   chip takes the left three): 25% of the row plus half a gutter. */
@media (min-width: 992px) {
  main .blog-details.hm-first:not(.hm-post) .blog-details__content { margin-left: calc(25% + 6px); }
}

/* ---- Phones ---- */
@media (max-width: 991px) {
  /* The step count was 160px to 230px tall on its own row above the steps. */
  main .approach-area-service-details-page .approach-wrapper-content .steps {
    font-size: 72px; line-height: 1; margin-top: 8px; letter-spacing: -0.03em;
  }
  /* Body text in the "Our story" rows: 22px on a 25px line, so long paragraphs read cramped. */
  main .who-we-are .who-we-are__content p.designation { font-size: 19px; line-height: 1.55; }
  main .who-we-are .who-we-are__content p.designation.mb-40 { margin-bottom: 16px; }
  main .who-we-are .who-we-are__content h2.designation, main .who-we-are .who-we-are__content h3.designation { line-height: 1.25; }
  main .who-we-are .who-we-are__wrapper { margin-top: 44px; }
  /* "What agency owners ask": a 30px heading on a 50px line left a gap between its two lines. */
  main .faq-area .section-title-wrapper .title-wrapper .section-title { line-height: 1.1; }
}

/* Each step on a phone stacked its number, a 30px title and the text on three rows. Now the number sits beside
   the title and text, as the theme already lays it out between 576px and 1399px. */
@media (max-width: 575px) {
  main .approach-area-service-details-page .approach-box { grid-template-columns: 40px 1fr; gap: 6px 12px; padding-top: 22px; padding-bottom: 24px; }
  main .approach-area-service-details-page .approach-box .number { grid-row: span 2; font-size: 18px; line-height: 1.5; }
  main .approach-area-service-details-page .approach-box .title { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
  main .approach-area-service-details-page .approach-box .text { font-size: 16px; line-height: 1.6; }
}
