/* Decorative traffic sits opposite the content, low in the hero. */
.hero.motion-hero{position:relative;isolation:isolate;background:#eef0eb!important;transition:background-color 1.25s cubic-bezier(.22,1,.36,1)!important}
[data-theme="dark"] .hero.motion-hero{background:#11161c!important}
.motion-hero .wrap{position:relative;z-index:1;display:block}
.motion-hero .wrap>div:first-child{width:58%;margin-left:auto;margin-right:0}
.motion-hero .plan{display:none!important}
.junction-world{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0;direction:ltr;mask-image:linear-gradient(90deg,#000 0%,#000 28%,transparent 47%);-webkit-mask-image:linear-gradient(90deg,#000 0%,#000 28%,transparent 47%)}
.junction-world svg{position:absolute;width:max(760px,65vw);height:auto;left:calc(23vw - max(380px,32.5vw));bottom:-260px;overflow:visible;color:#f6f6ee;opacity:.82}
.junction-world .ground{fill:#e0e4db}.junction-world .road{fill:#a2abb0}.junction-world .sidewalk{fill:#d1d7cd}.junction-world .median{fill:#c2cdbb}.junction-world .mark{fill:none;stroke:#f5f5eb;stroke-width:1.4}.junction-world .zebra{fill:#f5f5eb}.junction-world .building{fill:#d1d7d1;stroke:#c5cdc6;stroke-width:1}.junction-world .roof{fill:#dfe3dc}.junction-world .tree{fill:#99b589}.junction-world .trunk{fill:#728769}.junction-world .window{fill:#bac5bc}.junction-world .lamp{fill:#697876}.junction-world .signal-case{fill:#374447;stroke:#bbc5c2;stroke-width:.6}.junction-world .bulb{fill:#293336;opacity:.55}.junction-world .bulb.on{opacity:1;fill:var(--light);filter:drop-shadow(0 0 3px var(--light))}
.junction-world .car-body{fill:var(--paint)}.junction-world .glass{fill:#506877}.junction-world .car-trim{fill:#f3f5ed;opacity:.6}.junction-world .tire{fill:#333f44}.junction-world .headlight{fill:#fff3cb}.junction-world .tail{fill:#b7413e}.junction-world .beam,.junction-world .pool,.junction-world .lit-window{opacity:0}.junction-world .braking .tail{fill:#ff6156;filter:drop-shadow(0 0 2px #ff453a)}
.junction-world :is(.ground,.road,.sidewalk,.median,.mark,.zebra,.building,.roof,.tree,.trunk,.window,.lamp,.beam,.pool,.lit-window,.tail){transition:fill 1.4s ease,stroke 1.4s ease,opacity 1.6s ease,filter 1.4s ease!important}
[data-theme="dark"] .junction-world .ground{fill:#131d22}[data-theme="dark"] .junction-world .road{fill:#28343e}[data-theme="dark"] .junction-world .sidewalk{fill:#354147}[data-theme="dark"] .junction-world .median{fill:#273c36}[data-theme="dark"] .junction-world .mark{stroke:#879596}[data-theme="dark"] .junction-world .zebra{fill:#a8b1ac}[data-theme="dark"] .junction-world .building{fill:#17252e;stroke:#283943}[data-theme="dark"] .junction-world .roof{fill:#1d2e38}[data-theme="dark"] .junction-world .tree{fill:#2e5043}[data-theme="dark"] .junction-world .trunk{fill:#1d342e}[data-theme="dark"] .junction-world .window{fill:#2c3d43}[data-theme="dark"] .junction-world .beam{opacity:.42}[data-theme="dark"] .junction-world .pool{opacity:.6}[data-theme="dark"] .junction-world .lit-window{opacity:.8}[data-theme="dark"] .junction-world .tail{fill:#ff655c;filter:drop-shadow(0 0 3px #ff453a)}
.junction-controls{position:absolute;left:24px;bottom:18px;z-index:2;display:flex;align-items:center;gap:4px;direction:ltr;padding:5px;border:1px solid #c7cec8;border-radius:999px;background:rgba(250,252,248,.8);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:0 4px 20px #2333290b}
.junction-controls button{display:grid;place-items:center;border:0;border-radius:999px;min-width:36px;min-height:36px;padding:5px 9px;background:transparent;color:#3c484a;font:inherit;font-size:12px;font-weight:600;cursor:pointer;touch-action:manipulation}
.junction-controls button[aria-pressed="true"]{background:#fff;box-shadow:0 2px 7px #23332916}.junction-controls button:focus-visible{outline:2px solid #b78919;outline-offset:3px}
[data-theme="dark"] .junction-controls{background:rgba(34,45,55,.8);border-color:#44515b}[data-theme="dark"] .junction-controls button{color:#d9e1e3}[data-theme="dark"] .junction-controls button[aria-pressed="true"]{background:#53606b}
/* Keep color interpolation alive for the whole theme transition. */
html.mh-anim body :is(.masthead,.strip,footer,.hq,.duo,.btn,.stat){transition:background-color 1.2s ease,border-color 1.2s ease,color 1.2s ease!important}
@media(max-width:899px){.motion-hero .wrap>div:first-child{width:100%}.hero.motion-hero{padding-bottom:260px}.junction-world{mask-image:linear-gradient(0deg,#000,transparent 300px);-webkit-mask-image:linear-gradient(0deg,#000,transparent 300px)}.junction-world svg{width:520px;left:-70px;bottom:-210px;opacity:.64}.junction-controls{left:20px;bottom:16px}}
@media(prefers-reduced-motion:reduce){.hero.motion-hero,.junction-world *,html.mh-anim body *{transition:none!important}}
@media print{.junction-world,.junction-controls{display:none}.hero.motion-hero{padding-bottom:30px}.motion-hero .wrap>div:first-child{width:100%}}
/* English mirrors the composition while traffic keeps right-hand lanes. */
html[dir="ltr"] .motion-hero .wrap>div:first-child{margin-left:0;margin-right:auto}
html[dir="ltr"] .junction-world svg{left:auto;right:calc(23vw - max(380px,32.5vw))}
html[dir="ltr"] .junction-controls{left:auto;right:24px}
@media(max-width:899px){html[dir="ltr"] .junction-world{mask-image:linear-gradient(0deg,#000,transparent 300px);-webkit-mask-image:linear-gradient(0deg,#000,transparent 300px)}html[dir="ltr"] .junction-world svg{right:-70px}html[dir="ltr"] .junction-controls{right:20px}}
:root[data-theme="dark"] .motion-hero + .strip{background:#171f25;color:#e6e8e3;border-color:#2d333b}

/* Match the crossing to the tool grid and dissolve the approaches at its edge. */
@media(min-width:900px){
  .junction-world{--fade-direction:90deg;--fade-end:var(--junction-fade-end,44vw);mask-image:linear-gradient(var(--fade-direction),#000 0%,#000 calc(var(--fade-end) - 240px),rgba(0,0,0,.85) calc(var(--fade-end) - 180px),rgba(0,0,0,.5) calc(var(--fade-end) - 115px),rgba(0,0,0,.15) calc(var(--fade-end) - 50px),transparent var(--fade-end));-webkit-mask-image:linear-gradient(var(--fade-direction),#000 0%,#000 calc(var(--fade-end) - 240px),rgba(0,0,0,.85) calc(var(--fade-end) - 180px),rgba(0,0,0,.5) calc(var(--fade-end) - 115px),rgba(0,0,0,.15) calc(var(--fade-end) - 50px),transparent var(--fade-end))}
  html[dir="ltr"] .junction-world{--fade-direction:270deg}
  .junction-world svg,html[dir="ltr"] .junction-world svg{top:var(--junction-y,50%);bottom:auto;transform:translateY(-50%)}
}
/* A lived-in street: protected cycling, transit and people at human scale. */
.junction-world .cycle-track{fill:none;stroke:#7ba999;stroke-width:8;opacity:.75;transition:stroke 1.4s ease!important}
.junction-world .cycle-dashes{fill:none;stroke:#e7f4e9;stroke-width:.6;stroke-dasharray:4 7;opacity:.6}
.junction-world .cycle-symbol{fill:none;stroke:#f0f7e9;stroke-width:.8;opacity:.85}
.junction-world .bus-body{fill:#367d6c}.junction-world .bus-roof{fill:#e7eadc}.junction-world .bus-windows{fill:none;stroke:#2d535c;stroke-width:2;stroke-dasharray:5 2}.junction-world .bus-ac{fill:#b4c8c0;stroke:#90aaa0;stroke-width:.6}
.junction-world .stop-platform{fill:#ccd5cb}.junction-world .shelter{fill:#aecac1;fill-opacity:.65;stroke:#708d83;stroke-width:1}.junction-world .bench{stroke:#836e53;stroke-width:3;stroke-linecap:round}.junction-world .stop-sign{fill:#397c68}
.junction-world .bike-wheel{stroke:#263a3b;stroke-width:2;stroke-linecap:round}.junction-world .bike-frame{fill:none;stroke:#e6ead9;stroke-width:1}.junction-world .rider-leg,.junction-world .rider-arm{stroke:#354e5c;stroke-width:1.6;stroke-linecap:round}.junction-world .rider-body{fill:var(--jersey)}.junction-world .helmet{fill:#f6f0de;stroke:#b9c3bd;stroke-width:.4}
.junction-world .person-shadow{fill:#22362b;opacity:.18}.junction-world .person-leg{stroke:#42576a;stroke-width:1.5;stroke-linecap:round}.junction-world .person-arms{fill:none;stroke:var(--coat);stroke-width:1.4;stroke-linecap:round}.junction-world .person-body{fill:var(--coat)}.junction-world .person-head{fill:#dfba97}
[data-theme="dark"] .junction-world .cycle-track{stroke:#386b60}[data-theme="dark"] .junction-world .stop-platform{fill:#334741}[data-theme="dark"] .junction-world .shelter{fill:#526c64;stroke:#6c9082}[data-theme="dark"] .junction-world .bike-wheel{stroke:#a6bcb6}
.junction-world .turn-arrow{fill:none;stroke:#b55550;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;opacity:.65}
.junction-world .turn-arrow[data-state="green"]{stroke:#62e6a1;opacity:1;filter:drop-shadow(0 0 2px #62e6a1)}
.junction-world .turn-arrow[data-state="amber"]{stroke:#ffd66a;opacity:1;filter:drop-shadow(0 0 2px #ffd66a)}
.junction-world .beam{filter:url(#junction-soft-light)}
[data-theme="dark"] .junction-world .beam{opacity:.34}
[data-theme="dark"] .junction-world .headlight{filter:drop-shadow(0 0 2px #ffedbe)}
[data-theme="dark"] .junction-world .pool{opacity:.48}
[data-theme="dark"] .junction-world .lit-window{filter:drop-shadow(0 0 1.5px #ffc876)}
