/* SETTAR 3.1 — viewport/container-aware Japanese typesetting.
   Keep intentional hero breaks, avoid arbitrary Japanese line wrapping. */
.stw-home { line-break: strict; word-break: normal; overflow-wrap: anywhere; }
.stw-home :is(h2,h3) { line-break: strict; word-break: normal; overflow-wrap: normal; text-wrap: balance; }
.stw-home p { line-break: strict; word-break: normal; overflow-wrap: anywhere; text-wrap: wrap; }
.stw-home .stw-hero h1 { text-wrap: initial; }
/* Do not let narrow card containers force oversized headings. */
.stw-home :is(.stw-problem,.stw-service,.stw-case,.stw-post,.stw-tool) { min-width: 0; container-type: inline-size; }
.stw-home :is(.stw-problem,.stw-service,.stw-case,.stw-post,.stw-tool) h3 { font-size: clamp(14px, 6.5cqi, 18px); line-height: 1.55; text-wrap: balance; overflow-wrap: anywhere; }
.stw-home .stw-post h3 { font-size: clamp(14px, 6cqi, 17px); }
.stw-home .stw-heading h2 { max-width: 100%; font-size: clamp(24px, 2.35vw, 36px); line-height: 1.45; text-wrap: balance; }
.stw-home .stw-heading > p:not(.stw-eyebrow) { max-width: 44em; margin-inline: auto; }
.stw-home .stw-heading--split > div { min-width: 0; }
.stw-home .stw-heading--split > div p:not(.stw-eyebrow) { max-width: 44em; }
/* CONTACT: meaningful breaks; line two stays intact on a normal desktop. */
.stw-home .stw-contact__inner { min-width: 0; }
.stw-home .stw-contact__inner h2 { max-width: none; font-size: clamp(27px, 2.55vw, 38px); line-height: 1.5; letter-spacing: .01em; text-wrap: initial; overflow-wrap: normal; }
.stw-home .stw-contact__headline-line { display: block; }
.stw-home .stw-contact__inner > p:not(.stw-eyebrow) { max-width: 46em; line-height: 1.9; }
@media (min-width: 801px) and (max-width: 1199px) {
  .stw-home .stw-contact__layout { grid-template-columns: minmax(0,1.28fr) minmax(0,.72fr); gap: clamp(18px,2.3vw,34px); }
  .stw-home .stw-contact__inner h2 { font-size: clamp(25px,2.7vw,34px); }
}
@media (max-width: 800px) {
 .stw-home .stw-contact__inner h2 { font-size: clamp(24px,5vw,34px); }
 .stw-home .stw-heading h2 { font-size: clamp(23px,4.5vw,30px); }
}
@media (max-width: 380px) {
 .stw-home .stw-contact__inner h2 { font-size: clamp(22px,6vw,25px); }
}
/* The same low-risk line-breaking defaults for child-theme fixed pages. */
body:is(.page,.single) :is(.settar-services-page,.settar-works-page,.settar-about-page,.settar-contact-page,.settar-services,.settar-works,.settar-about,.settar-service-detail,.settar-work-section) { line-break: strict; word-break: normal; }
body:is(.page,.single) :is(.settar-services-page,.settar-works-page,.settar-about-page,.settar-contact-page,.settar-service-detail,.settar-work-section) :is(h2,h3) { text-wrap: balance; overflow-wrap: normal; }
