/* Replace only the hero artwork. Keep the original desktop/mobile headers. */
.replacement-hero-art{position:relative;max-width:1448px;margin:auto}
.replacement-hero-art>svg{display:block;width:100%;height:auto}
.replacement-hero-link{position:absolute;left:38.88%;top:63.03%;width:22.24%;height:5.86%;border-radius:999px}
.replacement-hero-link:hover{box-shadow:inset 0 0 0 2px #ffffff80}
/* Compact, live header rather than the enlarged header embedded in an image. */
.reference-hero-header .site-header{background:#fff;border-bottom:0}
.reference-hero-header .header-inner{max-width:1600px;min-height:76px;padding:12px 4%;gap:24px;flex-direction:row}
.reference-hero-header .official-brand{width:210px}
.reference-hero-header .main-nav{margin-left:auto;width:auto;gap:20px;font-size:12px}
.reference-hero-header .main-nav .button{background:var(--yellow);color:var(--ink)}
@media(min-width:641px) and (max-width:1100px){
 .reference-hero-header .header-inner{padding:12px 22px;flex-wrap:wrap;justify-content:center;gap:8px 22px}
 .reference-hero-header .main-nav{margin:0;flex-wrap:wrap;gap:12px;font-size:11px}
}
@media(max-width:640px){
 .reference-hero-header .header-inner{min-height:64px;padding:10px 18px;gap:14px}
 .reference-hero-header .official-brand{width:174px}
 .reference-hero-header .menu-toggle{margin-left:auto}
 .reference-hero-header .main-nav{margin:0;width:100%;font-size:13px;padding:20px 24px}
 .reference-hero-header .main-nav.is-open{display:grid;grid-template-columns:1fr 1fr;gap:8px 18px}
 .replacement-hero-link{min-height:44px;transform:translateY(-25%)}
}

/* Registered artwork layers share the same coordinate system at every width. */
.replacement-hero-art{overflow:hidden;isolation:isolate}
.hero-motion-scene{pointer-events:none}
.hero-milk-truck{animation:milk-truck-crossing 32s linear infinite;will-change:transform}
.hero-truck-bounce{animation:milk-truck-bounce 1.1s ease-in-out infinite}
.hero-bluebird-flight{animation:bluebird-flight 15s ease-in-out infinite;will-change:transform,opacity}
.hero-bluebird-flutter{transform-origin:1286px 634px;animation:bluebird-flutter .72s ease-in-out infinite alternate}
.hero-flower-sway{transform-box:view-box;animation:flower-sway 5.2s ease-in-out infinite alternate;will-change:transform}
.hero-flower-left{transform-origin:120px 1090px;animation-delay:-1.8s}
.hero-flower-right{transform-origin:1340px 1090px;animation-duration:6.1s;animation-delay:-4s;animation-direction:alternate-reverse}
@keyframes milk-truck-crossing{
 0%{transform:translateX(215px)}
 91%,100%{transform:translateX(-1460px)}
}
@keyframes milk-truck-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.6px)}}
@keyframes bluebird-flight{
 0%{transform:translate(180px,-48px) rotate(0deg);opacity:0}
 6%{opacity:1}
 25%{transform:translate(56px,-34px);opacity:1}
 49%{transform:translate(8px,0);opacity:1}
 70%{transform:translate(-30px,-24px);opacity:1}
 86%{transform:translate(-48px,-53px);opacity:0}
 100%{transform:translate(-48px,-53px);opacity:0}
}
@keyframes bluebird-flutter{from{transform:rotate(-5deg) scaleY(.94)}to{transform:rotate(5deg) scaleY(1.035)}}
@keyframes flower-sway{from{transform:translate(-7px,-3px) rotate(-12deg)}to{transform:translate(7px,2px) rotate(12deg)}}
.hero-motion-toggle{position:absolute;right:14px;bottom:12px;z-index:3;display:grid;place-items:center;width:44px;height:44px;padding:10px;border:1px solid #dce9e3;border-radius:50%;background:#fffffff0;color:#153d62;box-shadow:0 2px 8px #153d6212}
.hero-motion-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.hero-motion-toggle .motion-play-icon{display:none}
.hero-motion-toggle[aria-pressed=true] .motion-pause-icon{display:none}
.hero-motion-toggle[aria-pressed=true] .motion-play-icon{display:block}
.replacement-hero-art.is-motion-paused .hero-motion-scene *,
.replacement-hero-art.is-motion-offscreen .hero-motion-scene *{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){
 .hero-motion-scene,.hero-motion-toggle{display:none}
 .hero-motion-scene *{animation:none}
}

.hero-static-foliage{animation:none;transform:none}

/* Dedicated mobile composition; desktop artwork and its motion remain unchanged. */
.replacement-hero-art>.mobile-hero-canvas{display:none}
@media(max-width:640px){
 .replacement-hero-art>.rounded-hero-canvas{display:none}
 .replacement-hero-art>.mobile-hero-canvas{display:block}
 .replacement-hero-art>.hero-motion-toggle{display:grid}
 .replacement-hero-link{left:28%;top:58.52%;width:44%;height:7.33%;min-height:0;transform:none}
}

/* Motion uses the portrait artwork's own registered cutouts and clean plate. */
.mobile-milk-truck{animation:mobile-truck-crossing 24s linear infinite;will-change:transform}
.mobile-bluebird-flight{animation:mobile-bird-flight 11s ease-in-out infinite;will-change:transform}
.mobile-bluebird-flutter{transform-origin:844px 924px;animation:bluebird-flutter .72s ease-in-out infinite alternate}
@keyframes mobile-truck-crossing{0%{transform:translateX(220px)}100%{transform:translateX(-940px)}}
@keyframes mobile-bird-flight{0%,100%{transform:translate(0,0)}35%{transform:translate(-16px,-16px)}70%{transform:translate(10px,-8px)}}
@media(prefers-reduced-motion:reduce){
 .replacement-hero-art>.hero-motion-toggle{display:none}
}

/* The white wash belongs only to the clipped photo viewports. */
.reference-photo-frame{overflow:hidden}
.replacement-hero-art>.rounded-hero-canvas,
.replacement-hero-art>.mobile-hero-canvas{opacity:1;filter:none}

/* Editable, crisp hero title, shared across desktop and mobile artwork. */
.replacement-hero-art{container-type:inline-size}
.hero-live-heading{position:absolute;z-index:2;top:40.5%;left:2%;width:96%;margin:0;text-align:center;font-family:"M PLUS Rounded 1c","Hiragino Maru Gothic ProN",sans-serif;font-weight:700;line-height:1.5;letter-spacing:.035em;color:#08365a;pointer-events:none}
.hero-live-heading-lead{display:block;font-size:4cqw}
.hero-live-heading-accent{position:relative;display:inline-block;font-size:3.8cqw;color:#ff5745;isolation:isolate}
.hero-live-heading-accent::after{content:"";position:absolute;z-index:-1;left:1%;right:1%;bottom:-.08em;height:.17em;background:#fff292;border-radius:50%;transform:rotate(-.6deg)}
.hero-live-heading-accent>span{display:inline-block;white-space:nowrap}
@media(max-width:640px){
 .hero-live-heading{top:23.5%;left:5%;width:90%;line-height:1.55;letter-spacing:.025em}
 .hero-live-heading-lead{font-size:7cqw}
 .hero-live-heading-accent{font-size:7.6cqw}
 .hero-live-heading-accent>span{display:block}
}

/* New community-town artwork, with the original service photo strip above. */
.town-hero-art{background:#b6e7fa}
.town-hero-scene{position:relative;container-type:inline-size;background:#f0f8fd}
.town-hero-canvas{display:block;width:100%;height:auto}
.town-hero-heading{position:absolute;top:16%;left:50%;width:max-content;max-width:90%;transform:translateX(-50%);margin:0;color:#003e87;font-family:"M PLUS Rounded 1c","Hiragino Maru Gothic ProN",sans-serif;font-weight:700;line-height:1.45;letter-spacing:.015em;text-align:center;pointer-events:none}
.town-hero-heading>span{display:table;margin-inline:auto;white-space:nowrap;font-size:3.55cqw}
.town-heading-punctuation{display:inline-block;width:0;text-align:left}
.town-hero-heading>span+span{font-size:3.85cqw}
.town-hero-heading em{color:#f20b08;font-style:normal}
.town-bird-float{animation:none;transform-box:view-box}
@media(max-width:640px){.town-hero-art>.hero-motion-toggle{width:30px;height:30px;right:8px;bottom:6px;padding:6px}}
/* The JS controller respects reduced motion and leaves an explicit play control. */
.town-hero-art .hero-motion-scene{display:block}
.town-hero-art>.hero-motion-toggle{display:grid}

/* Real text on a CSS-drawn curved yellow ribbon. */
.town-hero-ribbon{position:absolute;top:3.9%;left:50%;transform:translateX(-50%);width:39%;height:11.1%;margin:0;isolation:isolate;text-align:center;color:#34250e;font-family:"M PLUS Rounded 1c","Hiragino Maru Gothic ProN",sans-serif;font-weight:700;font-size:1.65cqw;line-height:1.3;letter-spacing:0}
.town-hero-ribbon::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(110deg,#ffed86,#fff09b 50%,#ffea80);clip-path:polygon(5.000% 22.000%,7.250% 19.855%,9.500% 17.820%,11.750% 15.895%,14.000% 14.080%,16.250% 12.375%,18.500% 10.780%,20.750% 9.295%,23.000% 7.920%,25.250% 6.655%,27.500% 5.500%,29.750% 4.455%,32.000% 3.520%,34.250% 2.695%,36.500% 1.980%,38.750% 1.375%,41.000% 0.880%,43.250% 0.495%,45.500% 0.220%,47.750% 0.055%,50.000% 0.000%,52.250% 0.055%,54.500% 0.220%,56.750% 0.495%,59.000% 0.880%,61.250% 1.375%,63.500% 1.980%,65.750% 2.695%,68.000% 3.520%,70.250% 4.455%,72.500% 5.500%,74.750% 6.655%,77.000% 7.920%,79.250% 9.295%,81.500% 10.780%,83.750% 12.375%,86.000% 14.080%,88.250% 15.895%,90.500% 17.820%,92.750% 19.855%,95.000% 22.000%,95.975% 22.749%,96.913% 24.969%,97.778% 28.573%,98.536% 33.423%,99.157% 39.333%,99.619% 46.075%,99.904% 53.391%,100.000% 61.000%,99.904% 68.609%,99.619% 75.925%,99.157% 82.667%,98.536% 88.577%,97.778% 93.427%,96.913% 97.031%,95.975% 99.251%,95.000% 100.000%,92.750% 97.855%,90.500% 95.820%,88.250% 93.895%,86.000% 92.080%,83.750% 90.375%,81.500% 88.780%,79.250% 87.295%,77.000% 85.920%,74.750% 84.655%,72.500% 83.500%,70.250% 82.455%,68.000% 81.520%,65.750% 80.695%,63.500% 79.980%,61.250% 79.375%,59.000% 78.880%,56.750% 78.495%,54.500% 78.220%,52.250% 78.055%,50.000% 78.000%,47.750% 78.055%,45.500% 78.220%,43.250% 78.495%,41.000% 78.880%,38.750% 79.375%,36.500% 79.980%,34.250% 80.695%,32.000% 81.520%,29.750% 82.455%,27.500% 83.500%,25.250% 84.655%,23.000% 85.920%,20.750% 87.295%,18.500% 88.780%,16.250% 90.375%,14.000% 92.080%,11.750% 93.895%,9.500% 95.820%,7.250% 97.855%,5.000% 100.000%,4.025% 99.251%,3.087% 97.031%,2.222% 93.427%,1.464% 88.577%,0.843% 82.667%,0.381% 75.925%,0.096% 68.609%,0.000% 61.000%,0.096% 53.391%,0.381% 46.075%,0.843% 39.333%,1.464% 33.423%,2.222% 28.573%,3.087% 24.969%,4.025% 22.749%,5.000% 22.000%)}
.town-ribbon-letters{display:flex;justify-content:space-between;gap:0;width:86%;margin-inline:auto;padding-top:1.05cqw;white-space:nowrap}
.town-ribbon-letters>span{display:inline-block;flex:0 0 auto;transform:translateY(var(--ribbon-drop)) rotate(var(--ribbon-tilt))}

/* Framed headline with an offset white edge. */
.town-hero-heading{top:17%;max-width:86%;padding:.6cqw 2cqw .7cqw;background:#fff;border:.22cqw solid #263c49;border-radius:0;box-shadow:.55cqw .55cqw 0 0 #fff,.55cqw .55cqw 0 .22cqw #263c49}
.town-hero-heading>span{font-size:3.1cqw}
.town-hero-heading>span+span{font-size:3.45cqw}

/* Crop the photo strip vertically without stretching photographs or the lower wave. */
.town-hero-art>.town-photo-canvas{display:block;width:100%;height:auto}

/* Portrait artwork supplied for the mobile hero. */
.town-mobile-canvas,.town-mobile-sky{display:none}
@media(max-width:640px){
 .town-mobile-canvas{display:block;width:100%;height:auto}
 .town-mobile-sky{display:block}
 .town-desktop-sky,.town-hero-canvas,.town-hero-ribbon,.town-hero-art>.hero-motion-toggle{display:none}
 .town-hero-heading{position:absolute;width:1px;height:1px;max-width:none;padding:0;margin:-1px;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;box-shadow:none}
}

/* Give the mobile photo strip more height and trim only portrait sky/paving. */
.town-hero-art>.town-mobile-photo-canvas{display:none}
@media(max-width:640px){
 .town-hero-art>.town-photo-canvas{display:none}
 .town-hero-art>.town-mobile-photo-canvas{display:block;width:100%;height:auto}
 .town-hero-art>.hero-motion-toggle{display:grid}
}
