/* Main page and section headings share the homepage signature's typography. */
:root{--amui-heading-size:clamp(48px,8.5vw,164px)}
html body .site-shell.site-shell.site-shell :is(h1,h2){
  font-family:var(--font-display)!important;
  font-weight:750!important;
  font-optical-sizing:none;
  text-transform:uppercase!important;
  letter-spacing:normal!important;
}
html body .site-shell.site-shell.site-shell :is(h1,h2):not([data-project-card] *):not([data-first-impression] *):not(nav *):not([data-page-footer] *):not([class*="card"] *):not([class*="Card"] *):not([class*="label"]):not([class*="Label"]){
  font-size:var(--amui-section-heading-size,var(--amui-heading-size))!important;
  line-height:1.04!important;
  white-space:normal!important;
  text-wrap:balance;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}
/* The reel heading scales with its column, rather than the full viewport. */
html body .site-shell.site-shell.site-shell [data-work-intro] h2{font-size:var(--amui-section-heading-size)!important}
html body .site-shell.site-shell.site-shell [data-work-intro] h2 > span{white-space:nowrap}
/* Inner-page content needs a smaller scale than the opening hero title. */
.site-shell:not(:has(.homepage)) h2{--amui-section-heading-size:clamp(32px,4vw,64px)}
.site-shell:not(:has(.homepage)) [data-service-process] h2{--amui-section-heading-size:clamp(32px,5vw,64px)}
@media(max-width:900px){
  :root{--amui-heading-size:clamp(36px,10vw,72px)}
  .site-shell:not(:has(.homepage)) h2{--amui-section-heading-size:clamp(28px,7.5vw,44px)}
  .site-shell:not(:has(.homepage)) [data-service-process] h2{--amui-section-heading-size:clamp(32px,9vw,44px)}
  html body .site-shell.site-shell.site-shell [data-wide-word="true"]{font-size:clamp(32px,10.5cqw,68px)!important}
  html body .site-shell.site-shell.site-shell [data-long-title="true"]{font-size:clamp(32px,10cqw,64px)!important}
}
@media(max-width:360px){
  [data-first-impression] [data-impression-focus]{font-size:44px!important}
}

/* Mobile hero words use their own available width, including long project names. */
@media(max-width:900px){
  html body:is(.site-shell,:has(.site-shell)) [data-mobile-hero-title]{container-type:inline-size;width:100%;max-width:none!important;text-align:left;line-height:.98!important;text-wrap:initial;}
  html body:is(.site-shell,:has(.site-shell)) [data-mobile-hero-title] br{display:none}
  html body:is(.site-shell,:has(.site-shell)) [data-mobile-hero-title] .amui-hero-word{display:block;width:100%;font-family:var(--font-display)!important;font-weight:900!important;font-size:var(--hero-word-size,min(34cqw,calc(120cqw / var(--hero-word-length))))!important;line-height:.98!important;white-space:nowrap!important;text-transform:uppercase;letter-spacing:normal!important;}
  .amui-page-hero-track{height:calc(var(--page-hero-height,100svh) + 64svh)}
  .amui-page-hero-track > .amui-page-hero-stage{height:auto;min-height:100svh}
}
@media(max-width:650px){.amui-page-hero-track{height:calc(var(--page-hero-height,100svh) + 34svh)}}
@media(prefers-reduced-motion:reduce){.amui-page-hero-track{height:auto}}
