/* A restrained shared motion language; no loading screen or scroll hijacking. */
:root{--motion-ease:cubic-bezier(.22,1,.36,1)}
.hero-copy>*,.hero-note{animation:none}
.hero-copy h1 em:after{animation:line-arrive 950ms 160ms var(--motion-ease) both}
nav a:not(.button){position:relative;text-decoration:none}
nav a:not(.button):after{content:'';position:absolute;left:0;right:0;bottom:-7px;height:1px;background:var(--indigo);transform:scaleX(0);transform-origin:left;transition:transform 350ms var(--motion-ease)}
nav a:not(.button):hover:after,nav a[aria-current=page]:after,nav a:not(.button):focus-visible:after{transform:scaleX(1)}
.text-link{transition:color 250ms,border-color 250ms,gap 350ms var(--motion-ease)}
.text-link:hover,.text-link:focus-visible{gap:21px}
.button{transition:background 250ms,transform 350ms var(--motion-ease),box-shadow 350ms}
.service,.service:not(:nth-child(3n+1)){transition:transform 400ms var(--motion-ease),box-shadow 400ms,border-color 400ms}
.project-photo img,.gallery-item img{transition:transform 900ms var(--motion-ease)}
.project-photo:focus-visible img,.gallery-item:focus-visible img{transform:scale(1.025)}
.faq summary span{transition:transform 350ms var(--motion-ease)}
.faq details[open] p{animation:soft-arrive 420ms var(--motion-ease) both}
.phase-panel{animation:soft-arrive 550ms var(--motion-ease) both}
dialog[open]{animation:dialog-arrive 360ms var(--motion-ease) both}
dialog[open]::backdrop{animation:backdrop-arrive 280ms ease-out both}
.photo-viewer img{animation:soft-arrive 400ms var(--motion-ease) both}
.gallery-five .gallery-item:first-child{grid-column:span 2}
.gallery-five .gallery-item:first-child img{aspect-ratio:2.86}
@keyframes soft-arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes dialog-arrive{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes backdrop-arrive{from{opacity:0}to{opacity:1}}
@keyframes line-arrive{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(max-width:850px){nav.open{animation:soft-arrive 300ms var(--motion-ease) both}}
@media(max-width:760px){.gallery-five .gallery-item:first-child img{aspect-ratio:2.2}}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .text-link:hover,.text-link:focus-visible{gap:15px}
  .project-photo:focus-visible img,.gallery-item:focus-visible img{transform:none}
}
@media print{*,*:before,*:after{animation:none!important;transition:none!important}}
