html { font-size: 100%; scroll-padding-top: calc(var(--bm-header-height, 98px) + 20px); }
.content-section { scroll-margin-top: 0; }
.wrap { width: min(var(--width), calc(100% - 40px)); }
.header-row { min-height: 88px; gap: 24px; }
.header .brand { min-width: 0; }
.nav { flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; }
.hero { padding-block: clamp(40px, 5vw, 72px); }
.hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); }
.hero-grid > div, .footer-grid > div { min-width: 0; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.08; letter-spacing: -.04em; }
h1, h2, h3, p, a { overflow-wrap: anywhere; }
.hero .lead { font-size: clamp(1rem, 1.35vw, 1.125rem); line-height: 1.65; }
.hero-caption { flex-wrap: wrap; gap: 8px; font-size: .75rem; letter-spacing: .06em; }
.hero-note { font-size: .875rem; }
.content-section { padding-block: clamp(36px, 5vw, 64px); }
.rich-content h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.2; }
.bm-body-copy { max-width: 75ch; font-size: 1rem; line-height: 1.75; font-weight: 400; color: var(--muted); }
#om > .rich-content > .preserved > .preserved { margin-block: 20px; }
#om .rich-content > h2 { margin-bottom: 28px; }
#serv .rich-content > .preserved { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
#serv .rich-content > .preserved > .preserved:first-child { grid-column: 1 / -1; margin-bottom: 8px; }
#serv .rich-content > .preserved > .preserved:not(:first-child) { display: flex; align-items: center; min-height: 80px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
#serv h3 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -.015em; }
#serv h3::before { content: ''; display: inline-block; width: 8px; height: 8px; margin: 0 10px 2px 0; border-radius: 50%; background: var(--brand); }
.bm-anchor-alias { display: block; height: 0; }
.bm-contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 48px); }
.bm-contact h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.bm-contact-links { display: grid; gap: 14px; min-width: 0; }
.bm-contact-links a { display: flex; gap: 18px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-size: 1.0625rem; font-weight: 700; }
.bm-contact-links a:hover { border-color: var(--brand); color: var(--ink); }
.bm-contact-links svg { width: 24px; height: 24px; color: var(--brand); flex: 0 0 24px; }
.bm-contact-links span { min-width: 0; }
.bm-contact-links small { display: block; margin-bottom: 4px; font-size: .8125rem; font-weight: 400; color: var(--muted); }
.footer a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-links { grid-template-columns: 1fr; gap: 4px; }
@media (max-width: 900px) {
  .brand-restored .header-row { min-height: 86px; }
  .nav { max-height: calc(100dvh - var(--bm-header-height, 86px) - var(--bm-action-height, 0px) - 20px); overscroll-behavior: contain; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid > div:last-child { max-width: 560px; width: 100%; justify-self: center; }
  .bm-contact { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(2.125rem, 9vw, 3rem); }
  .hero .actions .btn { flex: 1 1 130px; }
  #serv .rich-content > .preserved { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  #serv .rich-content > .preserved > .preserved:not(:first-child) { padding: 16px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer { padding-bottom: calc(var(--bm-action-height, 68px) + 32px); }
  .mobile-bar { flex-wrap: wrap; }
  .mobile-bar a { min-width: 0; }
  .bm-contact-links a { padding: 16px; gap: 14px; font-size: 1rem; }
}
@media (max-width: 360px) { #serv .rich-content > .preserved { grid-template-columns: minmax(0, 1fr); } }
