/* Reserve the final heading height throughout the opening sequence. */
:is(.hero,.architecture-hero,.about-page-hero) .hero-title{position:relative}
:is(.hero,.architecture-hero,.about-page-hero) .hero-title .hero-final{display:block;color:var(--ink)}
:is(.hero,.architecture-hero,.about-page-hero) .hero-title .hero-secondary{color:#86868b}
:is(.hero,.architecture-hero,.about-page-hero) .hero-title .hero-slogan{display:none;position:absolute;inset:0;align-items:center;justify-content:center;color:var(--ink);pointer-events:none}
:is(.hero,.architecture-hero,.about-page-hero) .hero-title .hero-slogan>span{color:var(--ink);font-size:clamp(88px,13vw,184px);font-weight:600;line-height:.98;letter-spacing:-.055em;max-width:100%;text-wrap:balance}
@media(max-width:760px){:is(.hero,.architecture-hero,.about-page-hero) .hero-title .hero-slogan>span{font-size:clamp(64px,14vw,104px);max-width:5.5em}}
@media(max-width:760px){
 #main .home-opening-content .hero-title .hero-slogan{inset-inline:50% auto;width:100vw;translate:-50% 0}
 #main .home-opening-content .hero-title .hero-slogan>span{font-size:min(14.5vw,24svh);max-width:none;white-space:nowrap}
 #main .home-opening-content .hero-title .hero-slogan>span:lang(en){font-size:min(12.5vw,24svh)}
}
@media(min-width:761px){
 /* Compensate for each opening's initial scale while keeping its scroll motion. */
 #main :is(.home-opening-content,.architecture-hero) .hero-title .hero-slogan>span{
  font-size:calc(var(--desktop-opening-slogan-size,min(clamp(99px,14.6vw,207px),24svh)) / var(--home-opening-start-scale,var(--architecture-hero-start-scale,1)));
 }
 #main :is(.home-opening-content,.architecture-hero) .hero-title .hero-slogan>span:lang(en){--desktop-opening-slogan-size:min(12.5vw,24svh)}
}
:is(.hero,.architecture-hero,.about-page-hero) .hero-title .hero-primary-dot{color:#0071e3}
:is(.hero,.architecture-hero,.about-page-hero) .hero-title .hero-dot{color:#000}
.hero-title.is-introducing .hero-slogan{display:flex;animation:hero-slogan-intro 2.35s cubic-bezier(.22,.61,.36,1) both}
.hero-title.is-introducing .hero-final{animation:hero-heading-intro .85s 1.85s cubic-bezier(.22,.61,.36,1) both}
@keyframes hero-slogan-intro{
 0%{opacity:0;transform:translateY(16px);filter:blur(6px)}
 22%,72%{opacity:1;transform:translateY(0);filter:blur(0)}
 100%{opacity:0;transform:translateY(-14px);filter:blur(6px)}
}
@keyframes hero-heading-intro{
 from{opacity:0;transform:translateY(18px);filter:blur(6px)}
 to{opacity:1;transform:translateY(0);filter:blur(0)}
}
@media(prefers-reduced-motion:reduce){
 .hero-title.is-introducing .hero-slogan{display:none;animation:none}
 .hero-title.is-introducing .hero-final{animation:none}
}

/* Architecture uses the same introduction on its original dark background. */
.architecture-hero .hero-title{min-height:clamp(120px,13vw,184px);display:grid;align-items:center}
@media(max-width:760px){.architecture-hero .hero-title{min-height:clamp(140px,28vw,210px)}}

/* About retains its two-line heading and shares the opening slogan. */
.about-page-hero .hero-title .hero-final>span:first-child{color:var(--ink)}
.about-page-hero .hero-title .hero-final .about-title-secondary{color:#96969e}
.about-page-hero .hero-title .hero-primary-dot{display:inline}

/* Compact the introduction on Architecture, Projects and About. */
body .architecture-hero,body .about-page-hero{padding-top:16px;padding-bottom:32px}
body .architecture-hero .hero-title,body .about-page-hero .hero-title{margin-top:12px;margin-bottom:16px}
@media(max-width:760px){
 body .architecture-hero,body .about-page-hero{padding-top:12px;padding-bottom:24px}
 body .architecture-hero .hero-title,body .about-page-hero .hero-title{margin-top:10px;margin-bottom:14px}
}
