/* Matching downward oval district flows on both sides of the building photographs. */
body[data-page="home"] .hero{
 grid-template-columns:minmax(0,1fr) clamp(180px,16vw,220px) minmax(0,1.08fr) clamp(180px,16vw,220px);
 gap:22px;
}
body[data-page="home"] .hero h1{font-size:clamp(34px,3.5vw,50px)}
.hero-district-flow{
 --district-travel:146px;
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
 min-width:0;width:100%;align-self:center;
}
.district-flow-viewport{
 position:relative;isolation:isolate;width:100%;height:292px;overflow:hidden;
 -webkit-mask-image:linear-gradient(to bottom,transparent,#000 16%,#000 84%,transparent);
 mask-image:linear-gradient(to bottom,transparent,#000 16%,#000 84%,transparent);
}
.district-name{
 position:absolute;top:50%;left:50%;display:flex;align-items:center;justify-content:center;
 width:calc(100% - 24px);height:54px;padding:0 8px;border:1px solid #fff3;border-radius:50%;
 color:#fff;background:var(--green);box-shadow:0 5px 14px #1e3e351a;
 font-family:Arial,Helvetica,sans-serif;font-size:clamp(16px,1.45vw,20px);font-weight:600;
 line-height:1.1;letter-spacing:0;white-space:nowrap;text-align:center;
 opacity:0;will-change:transform,opacity;
 animation:district-downward 20s linear infinite both;
 animation-delay:var(--district-delay);
}
@keyframes district-downward{
 0%{transform:translate(-50%,-50%) translate3d(-12px,calc(var(--district-travel) * -1),0) scale(.38);opacity:0}
 15%{transform:translate(-50%,-50%) translate3d(-9px,calc(var(--district-travel) * -.7),0) scale(.6);opacity:.32}
 35%{transform:translate(-50%,-50%) translate3d(-3px,calc(var(--district-travel) * -.3),0) scale(.96);opacity:.9}
 50%{transform:translate(-50%,-50%) translate3d(0,0,0) scale(1.08);opacity:1}
 65%{transform:translate(-50%,-50%) translate3d(-3px,calc(var(--district-travel) * .3),0) scale(.96);opacity:.9}
 85%{transform:translate(-50%,-50%) translate3d(-9px,calc(var(--district-travel) * .7),0) scale(.6);opacity:.32}
 100%{transform:translate(-50%,-50%) translate3d(-12px,var(--district-travel),0) scale(.38);opacity:0}
}
.hero-district-flow.is-paused .district-name{animation-play-state:paused}
.district-flow-toggle{
 display:flex;align-items:center;justify-content:center;width:30px;height:30px;flex-shrink:0;
 padding:0;border:1px solid var(--green);border-radius:50%;background:var(--green);color:#fff;
 cursor:pointer;
}
.district-flow-toggle:hover{background:#153c2e}
.district-flow-toggle::before{content:'';display:block;width:7px;height:10px;border-left:2px solid currentColor;border-right:2px solid currentColor}
.hero-district-flow.is-paused .district-flow-toggle::before{width:0;height:0;border:5px solid transparent;border-left:8px solid currentColor;border-right:0;margin-left:2px}
.district-flow-toggle:focus-visible{outline:3px solid var(--sage);outline-offset:4px}
@media(max-width:1100px){
 body[data-page="home"] .hero{gap:16px}
}
@media(max-width:980px) and (min-width:651px){
 body[data-page="home"] .hero{grid-template-columns:clamp(140px,20vw,180px) minmax(0,1fr) clamp(140px,20vw,180px);gap:12px 16px}
 body[data-page="home"] .hero-copy{grid-column:1 / -1;text-align:center}
 body[data-page="home"] .hero-copy .eyebrow{justify-content:center}
 body[data-page="home"] .hero h1{font-size:38px;margin:10px 0}
 .hero-district-flow{max-width:220px;justify-self:center}
 .district-name{font-size:clamp(16px,2.2vw,20px)}
}
@media(max-width:650px){
 body[data-page="home"] .hero{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body[data-page="home"] .hero-copy{grid-column:1 / -1}
 body[data-page="home"] .hero-photo-collection{grid-column:1 / -1;grid-row:2}
 .hero-district-flow--left{grid-column:1;grid-row:3}
 .hero-district-flow--right{grid-column:2;grid-row:3}
 body[data-page="home"] .hero h1{font-size:28px}
 .hero-district-flow{--district-travel:124px;max-width:270px;justify-self:center;gap:0}
 .district-flow-viewport{height:200px}
 .district-name{width:calc(100% - 14px);height:42px;font-size:clamp(13px,3.9vw,20px)}
 .district-flow-toggle{width:30px;height:30px}
}
@media(prefers-reduced-motion:reduce){
 .hero-district-flow{max-width:100%}
 .district-flow-viewport{display:flex;flex-wrap:wrap;justify-content:center;align-content:center;gap:8px;height:auto;min-height:180px;overflow:visible;-webkit-mask-image:none;mask-image:none}
 .district-name{position:static;width:auto;height:auto;min-height:36px;padding:8px 12px;transform:none;opacity:1;animation:none;will-change:auto;font-size:15px;border-radius:24px}
 .district-flow-toggle{display:none}
}
