.algeco-city {
    --city-navy: #082e48;
    --city-lime: #d3e637;
    position: relative;
    isolation: isolate;
    color: white;
    background: var(--city-navy);
    font-family: Montserrat, Arial, sans-serif;
    line-height: 1.4;
}
.algeco-city [hidden] { display: none !important; }
.algeco-city *, .algeco-city *::before, .algeco-city *::after { box-sizing: border-box; }
.city-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}
.city-scene {
    --city-ratio: var(--wide-ratio);
    position: relative;
    width: 100%;
    aspect-ratio: var(--city-ratio);
    background: #dde3db;
}
.city-picture, .city-picture img { display: block; width: 100%; height: auto; margin: 0; }
.city-equipment { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.city-barrier { display: none; position: absolute; inset: 0; width: 100%; height: 100%; }
@media (min-width: 801px) and (prefers-reduced-motion: no-preference) {
    .city-barrier--landscape.is-ready { display: block; --gate-angle: -76deg; }
}
@media (max-width: 800px) and (prefers-reduced-motion: no-preference) {
    .city-barrier--portrait.is-ready { display: block; --gate-angle: -83deg; }
}
.city-machine, .city-door-sign { position: absolute; display: block; left: var(--x); top: var(--y); width: var(--w); height: auto; }
.city-door-sign { transform: translate(-50%, -50%); color: #fffdf6; fill: currentColor; }
.city-turbine { transform: translate(-51%, -97%); }
.city-crane { transform: translate(-36.4%, -97%) scaleX(-1); transform-origin: 36.4% 97%; }
.city-ambulance {
    aspect-ratio: 2.2;
    transform: translate(-50%, -50%) rotate(-23deg);
}
.city-ambulance i {
    position: absolute;
    inset: -46% -24%;
    border-radius: 50%;
    background: radial-gradient(ellipse, #f4ffff 0 9%, #8beaff 17%, #2583ff 33%, #1672ff77 48%, transparent 74%);
    opacity: 0;
}
.city-points { position: absolute; inset: 0; pointer-events: none; }
.city-pin {
    --pin-x: var(--x);
    position: absolute;
    left: var(--pin-x);
    top: var(--y);
    transform: translate(-50%, -50%);
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    pointer-events: auto;
    cursor: pointer;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}
.city-pin i {
    position: relative;
    grid-area: 1 / 1;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 2px solid white;
    border-radius: 50%;
    color: var(--city-navy);
    background: var(--city-lime);
    box-shadow: 0 0 0 1px #082e48c9, 0 2px 6px #071e367d;
}
.city-pin i::before, .city-pin i::after {
    content: '';
    grid-area: 1 / 1;
    width: 12px;
    border-top: 2px solid currentColor;
    border-radius: 1px;
}
.city-pin i::after { transform: rotate(90deg); }
.city-pin[aria-expanded=true] i { color: var(--city-lime); background: var(--city-navy); }
.city-pin[aria-expanded=true] i::after { opacity: 0; }
.city-pin::before {
    content: '';
    grid-area: 1 / 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--city-lime);
    box-shadow: 0 0 5px #d3e637b3;
    pointer-events: none;
    opacity: 0;
}
.city-pin:focus-visible i { box-shadow: 0 0 0 2px var(--city-navy); }
@media (hover: hover) {
    .city-pin:hover i { box-shadow: 0 0 0 2px var(--city-navy), 0 0 0 4px white; }
}
.city-pin span {
    position: absolute;
    left: 50%;
    /* Align edge labels inward in proportion to the marker's position in the city. */
    transform: translateX(calc(0% - var(--pin-x)));
    bottom: 39px;
    width: max-content;
    max-width: 135px;
    padding: 5px 9px;
    border-radius: 3px;
    text-align: center;
    background: #082e48ef;
    color: white;
    font-size: clamp(10px, .92vw, 14px);
    font-weight: 650;
    line-height: 1.2;
    box-shadow: 0 1px 5px #0b213955;
    opacity: 0;
    pointer-events: none;
}
.city-pin:is(:hover,:focus-visible,[aria-expanded=true]) { z-index: 2; }
.city-pin:is(:hover,:focus-visible) span { opacity: 1; }
.algeco-city :is(a, button):focus-visible {
    outline: 3px solid white;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--city-navy);
}
.city-panel {
    position: absolute;
    z-index: 4;
    width: min(668px, calc(100% - 20px));
    border-radius: 4px 36px 4px 4px;
    overflow: hidden;
    color: white;
    background: var(--city-navy);
    box-shadow: 0 12px 40px #061c38a6;
    outline: 1px solid #ffffff5c;
    scroll-margin-block: 95px 18px;
}
.city-panel-body { position: relative; isolation: isolate; overflow: clip; display: grid; align-content: end; min-height: clamp(215px, 16vw, 280px); }
.city-photo, .city-panel-body::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.city-photo { z-index: -2; left: auto; width: 76%; object-fit: cover; }
.city-photo--security { object-position: center top; transform: scale(1.35); transform-origin: 45% top; }
.city-panel-body::after {
    z-index: -1;
    content: '';
    background: linear-gradient(90deg, #0b263e 24%, #0b263ef2 37%, #0b263ec9 49%, #0b263e9c 56%, #0b263e20 69%, transparent 76%);
}
.city-copy { width: min(440px, 67%); padding: 28px clamp(18px, 2vw, 32px); text-align: left; }
.city-category { display: block; color: var(--city-lime); font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.city-copy h3 { margin: 0; max-width: 90%; color: white; font-size: clamp(24px, 2.1vw, 35px); line-height: 1.06; letter-spacing: -.045em; }
.city-copy p { margin: 10px 0 16px; max-width: 32ch; font-size: 14px; line-height: 1.45; color: white; }
.city-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 8px 14px;
    background: white;
    color: var(--city-navy);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}
.city-link:hover { background: var(--city-lime); color: var(--city-navy); }
.city-link svg { width: 18px; height: 18px; }
.algeco-city .city-close {
    position: absolute;
    z-index: 1;
    top: 6px;
    right: 8px;
    display: grid;
    place-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #082e48eb;
    color: white;
    font: 400 27px/1 Arial, sans-serif;
    cursor: pointer;
}
@media (max-width: 800px) {
    .city-pin { --pin-x: var(--mx); top: var(--my); }
    .city-panel-body { min-height: 205px; }
    .city-scene { --city-ratio: var(--tall-ratio); }
    .city-machine, .city-door-sign { left: var(--mx); top: var(--my); width: var(--mw); }
    .city-ambulance { transform: translate(-50%, -50%) rotate(24deg); }
}
@media (max-width: 540px) {
    .city-panel-body { --photo-band: clamp(80px, 24vw, 116px); padding-top: var(--photo-band); }
    .city-photo { width: 100%; height: calc(var(--photo-band) + 100px); }
    .city-panel-body::after {
        background: linear-gradient(180deg, transparent calc(var(--photo-band) - 35px), #0b263ee6 calc(var(--photo-band) + 15px), #0b263e calc(var(--photo-band) + 98px));
    }
    .city-photo--mobile-crop {
        height: calc(var(--photo-band) + 16px);
        object-position: center var(--photo-focus);
    }
    .city-photo--site { --photo-focus: 85%; }
    .city-photo--lab { --photo-focus: 83%; }
    .city-photo--office { --photo-focus: 100%; }
    .city-photo--classroom { --photo-focus: 82%; }
    .city-photo--event { --photo-focus: 90%; }
    .city-photo--solar { --photo-focus: 71%; }
    .city-panel-body:has(.city-photo--mobile-crop)::after {
        background: linear-gradient(180deg, transparent calc(var(--photo-band) - 20px), #0b263e calc(var(--photo-band) + 16px));
    }
    .city-copy { width: 100%; padding: 20px; }
    .city-copy h3 { max-width: calc(100% - 18px); }
    .city-copy p { margin-block: 8px 12px; }
}
@media (min-width: 801px) and (max-height: 500px) {
    body:has([data-city-page]) .utility-inner { min-height: 38px; }
    body:has([data-city-page]) .header-main { min-height: 61px; padding-block: 6px; }
    body:has([data-city-page]) .brand img { width: auto; max-height: 43px; }
}
@media (min-width: 541px) and (max-height: 500px) {
    .city-panel { border-top-right-radius: 20px; }
    .city-panel-body { min-height: 0; }
    .city-copy { padding: 12px; }
    .city-copy h3 { font-size: 21px; }
    .city-copy p { font-size: 12px; margin-block: 6px; }
    .city-category { margin-bottom: 4px; }
}
@media (prefers-reduced-motion: no-preference) {
    .city-scene.in-view .city-points:not(:has([aria-expanded=true])) .city-pin::before {
        animation: city-pin-halo 4.8s ease-out var(--halo-delay, 0s) infinite;
    }
    .city-pin:nth-child(4n+2) { --halo-delay: -1.2s; }
    .city-pin:nth-child(4n+3) { --halo-delay: -2.4s; }
    .city-pin:nth-child(4n) { --halo-delay: -3.6s; }
    @keyframes city-pin-halo {
        0% { opacity: 0; transform: scale(1); }
        6% { opacity: .85; }
        38%, 100% { opacity: 0; transform: scale(1.46); }
    }
    .city-barrier-arm, .city-barrier-shadow { transform-origin: 0 0; animation: city-lift-gate 12s ease-in-out infinite paused; }
    .city-barrier-shadow { animation-name: city-gate-shadow; }
    @keyframes city-lift-gate {
        0%, 18%, 90%, 100% { transform: rotate(0); }
        44%, 64% { transform: rotate(var(--gate-angle)); }
    }
    @keyframes city-gate-shadow {
        0%, 18%, 90%, 100% { transform: none; }
        44%, 64% { transform: matrix(.08, .2, 0, 1, 0, 0); }
    }
    .city-rotor { animation: city-rotation 6.5s linear infinite paused; transform-origin: 0 0; }
    .city-jib { transform-origin: 67px 26px; animation: city-slew 15s ease-in-out infinite alternate paused; }
    .city-trolley { animation: city-traverse 9s ease-in-out infinite alternate paused; }
    .city-cable { transform-origin: 0 0; animation: city-payout 7s ease-in-out infinite alternate paused; }
    .city-hook { animation: city-lower 7s ease-in-out infinite alternate paused; }
    .city-ambulance i { animation: city-blue-light 1.8s linear infinite paused; }
    .city-scene.in-view :is(.city-rotor, .city-jib, .city-trolley, .city-cable, .city-hook, .city-ambulance i, .city-barrier-arm, .city-barrier-shadow) { animation-play-state: running; }
    @keyframes city-rotation { to { transform: rotate(360deg); } }
    @keyframes city-slew {
        from { transform: skewY(-3deg) scaleX(.84); }
        to { transform: skewY(3deg) scaleX(1); }
    }
    @keyframes city-traverse { from { transform: translateX(-19px); } to { transform: translateX(34px); } }
    @keyframes city-payout { 0%,15% { transform: scaleY(.83); } 85%,100% { transform: scaleY(1.63); } }
    @keyframes city-lower { 0%,15% { transform: translateY(-3.91px); } 85%,100% { transform: translateY(14.49px); } }
    @keyframes city-blue-light { 0%, 42%, 100% { opacity: 0; } 10%, 24% { opacity: 1; } }
}
