.nsi-hero.nsi-hero--smart-cities {
    --hero-image: url('../smart-cities/res/city.jpg');
}

.nsi-hero.nsi-hero--smart-cities .nsi-hero__inner {
    min-height: clamp(240px, 34vh, 330px) !important;
    flex-direction: column;
    gap: var(--spacing-md);
}

.nsi-hero.nsi-hero--smart-cities .nsi-hero__subtitle {
    margin: 0;
    color: var(--color-bg-primary);
    font-weight: var(--font-weight-medium);
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    line-height: 1.25;
    max-width: 60ch;
    opacity: 0.95;
}

.nsi-smart-cities {
    padding: var(--spacing-2xl) 0;
}

.nsi-smart-cities__tiles {
    margin-top: 0;
}

/* Match the top tile feel on other redesign service pages */
.nsi-smart-cities__tiles .nsi-service-tile {
    min-height: clamp(180px, 18vw, 240px);
}

.nsi-smart-cities__tiles .nsi-service-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg, var(--shadow-md));
    border-color: var(--color-primary-lighter);
}

.nsi-smart-cities__tiles .nsi-service-tile:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg, var(--shadow-md));
    border-color: var(--color-primary-lighter);
}

@media (max-width: 700px) {
    /* Reduce hero height on mobile */
    .nsi-hero.nsi-hero--smart-cities .nsi-hero__inner {
        min-height: clamp(180px, 22vh, 230px) !important;
        gap: var(--spacing-sm);
    }

    /* Tighten spacing below hero / above tiles */
    .nsi-smart-cities {
        padding-top: var(--spacing-sm);
        padding-bottom: var(--spacing-md);
    }

    .nsi-smart-cities__tiles {
        margin-top: 0;
    }

    /* H9 bridge: shrink visual + hide side people icons */
    .nsi-smart-cities__h9-bridge {
        margin-top: var(--spacing-sm);
        padding: 0;
    }

    .nsi-smart-cities__h9-bridge-side {
        display: none !important;
    }

    .nsi-smart-cities__h9-bridge-visual {
        width: min(560px, 100%);
        margin: 0 auto var(--spacing-xs);
        grid-template-columns: 1fr;
    }

    .nsi-smart-cities__h9-bridge-center {
        width: min(560px, 100%);
    }

    .nsi-smart-cities__h9-bridge-bridgeWrap {
        aspect-ratio: 7 / 5.2;
    }

    .nsi-smart-cities__h9-bridge-caption {
        margin-top: var(--spacing-xs);
        font-size: clamp(1rem, 4.2vw, 1.15rem);
    }

    /* Reduce space below bridge before the needs section */
    .nsi-smart-cities__needs {
        margin-top: 0;
        padding-top: var(--spacing-md);
    }
}

/* H9 bridge section */
.nsi-smart-cities__h9-bridge {
    padding: var(--spacing-sm) 0 var(--spacing-lg);
    text-align: center;
    margin-top: var(--spacing-lg);

    /* Side icon placement + scroll travel */
    --h9-side-drop: calc(clamp(12px, 2vw, 26px) + 15px);
}

.nsi-smart-cities__h9-bridge-header {
    max-width: 72ch;
    margin: 0 auto 0;
}

.nsi-smart-cities__h9-bridge-title {
    margin: 0;
    font-size: clamp(1.6rem, 2.8vw, 2.25rem);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

.nsi-smart-cities__h9-bridge-subtitle {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.nsi-smart-cities__h9-bridge-visual {
    width: min(1100px, 100%);
    margin: calc(var(--spacing-xs) * -1) auto var(--spacing-sm);
    display: grid;
    grid-template-columns: minmax(64px, 120px) minmax(0, 1fr) minmax(64px, 120px);
    align-items: center;
    column-gap: var(--spacing-md);
}

.nsi-smart-cities__h9-bridge-center {
    position: relative;
    width: min(920px, 100%);
    margin: 0 auto;
}

.nsi-smart-cities__h9-bridge-side {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);

    /* Lower the icons slightly relative to the bridge */
    transform: translateY(var(--h9-side-drop));
    will-change: transform;
    z-index: 3;
}

.nsi-smart-cities__h9-bridge-side--left {
    --h9-travel-x: 0px;
    transform: translateY(var(--h9-side-drop)) translateX(var(--h9-travel-x));
}

.nsi-smart-cities__h9-bridge-side .bi {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.08));
}

.nsi-smart-cities__h9-bridge-bridgeWrap {
    width: 100%;
    /* Keep crop/logo alignment consistent across breakpoints by scaling uniformly */
    aspect-ratio: 7 / 4.5;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.nsi-smart-cities__h9-bridge-bridge {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    /* Crop away extra SVG whitespace above the bridge */
    object-position: center -3%;
}

.nsi-smart-cities__h9-bridge-side--right {
    position: relative;
}

.nsi-smart-cities__h9-bridge-smile {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -120%) scale(0.92);
    opacity: 0;
    pointer-events: none;
    color: var(--color-primary);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.nsi-smart-cities__h9-bridge-smile .bi {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    line-height: 1;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.12));
}

.nsi-smart-cities__h9-bridge-smile.is-visible {
    opacity: 1;
    transform: translate(-50%, -160%) scale(1);
}

.nsi-smart-cities__h9-bridge-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -120%);
    width: clamp(160px, 28%, 260px);
    height: auto;
    z-index: 2;
}

.nsi-smart-cities__h9-bridge-caption {
    margin: var(--spacing-xs) auto 0;
    max-width: 70ch;
    color: var(--color-text-primary);
    font-weight: var(--font-weight-semibold);
    font-size: clamp(1.05rem, 1.4vw, 1.35rem);
    line-height: 1.4;
}

@media (max-width: 1000px) {
    /* Prevent the bridge logo from crowding the header around tablet/desktop widths */
    .nsi-smart-cities__h9-bridge-logo {
        width: 120px;
    }
}

@media (max-width: 700px) {
    .nsi-smart-cities__h9-bridge-visual {
        grid-template-columns: 1fr;
        row-gap: var(--spacing-sm);
    }

    .nsi-smart-cities__h9-bridge-side {
        order: 0;
    }

    .nsi-smart-cities__h9-bridge-center {
        order: 1;
    }

    /* Mobile: keep the bridge logo much smaller than desktop */
    .nsi-smart-cities__h9-bridge-logo {
        transform: translate(-50%, -115%);
    }
}

.nsi-smart-cities__needs {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-2xl) 0 0;
}

.needs-wheel {
    --need-size: 142px;
    --radius: 290px;
    --link-stroke: 12px;
    --detail-size: calc(var(--radius) * 2 - var(--need-size) - 24px);

    position: relative;
    width: min(680px, 100%);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    isolation: isolate;
}

/* Linking ring behind nodes */
.needs-wheel::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(var(--radius) * 2);
    height: calc(var(--radius) * 2);
    transform: translate(-50%, -50%);
    border-radius: var(--radius-full);
    border: var(--link-stroke) solid var(--color-primary);
    box-shadow: var(--shadow-sm);
    opacity: 0.35;
    z-index: 0;
}

.need {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--need-size);
    height: var(--need-size);
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--color-bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    text-align: center;
    padding: var(--spacing-sm);
    box-shadow: var(--shadow-md);

    z-index: 20;

    --scale: 1;

    --dx: 0px;
    --dy: 0px;
    transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) scale(var(--scale));
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.need img {
    width: 62px;
    height: 62px;
    margin-bottom: 6px;
    filter: brightness(0) invert(1);
}

.need:hover,
.need:focus-visible {
    --scale: 1.08;
    box-shadow: var(--shadow-lg);
    z-index: 200;
    background: var(--color-primary-light);
}

.need:focus-visible {
    outline: 3px solid var(--color-primary-lighter);
    outline-offset: 3px;
}

/* Center detail panel */
.needs-wheel__detail {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--detail-size);
    height: var(--detail-size);
    transform: translate(-50%, -50%);
    padding: 1.1rem 1.2rem;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--color-text-primary);
    box-shadow: none;
    border: none;

    display: grid;
    place-items: center;
    text-align: center;
    line-height: 1.35;
    font-size: 0.98rem;

    z-index: 10;
    pointer-events: none;

    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.needs-wheel__detail .need-detail {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.needs-wheel__detail .need-detail strong {
    display: block;
    font-size: 1.1rem;
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.needs-wheel__detail .need-detail--default {
    opacity: 0;
    visibility: hidden;
}

/* Swap center content based on hovered/focused need */
.need--1:hover ~ .needs-wheel__detail .need-detail--1,
.need--1:focus-visible ~ .needs-wheel__detail .need-detail--1,
.need--2:hover ~ .needs-wheel__detail .need-detail--2,
.need--2:focus-visible ~ .needs-wheel__detail .need-detail--2,
.need--3:hover ~ .needs-wheel__detail .need-detail--3,
.need--3:focus-visible ~ .needs-wheel__detail .need-detail--3,
.need--4:hover ~ .needs-wheel__detail .need-detail--4,
.need--4:focus-visible ~ .needs-wheel__detail .need-detail--4,
.need--5:hover ~ .needs-wheel__detail .need-detail--5,
.need--5:focus-visible ~ .needs-wheel__detail .need-detail--5,
.need--6:hover ~ .needs-wheel__detail .need-detail--6,
.need--6:focus-visible ~ .needs-wheel__detail .need-detail--6,
.need--7:hover ~ .needs-wheel__detail .need-detail--7,
.need--7:focus-visible ~ .needs-wheel__detail .need-detail--7,
.need--8:hover ~ .needs-wheel__detail .need-detail--8,
.need--8:focus-visible ~ .needs-wheel__detail .need-detail--8,
.need--9:hover ~ .needs-wheel__detail .need-detail--9,
.need--9:focus-visible ~ .needs-wheel__detail .need-detail--9 {
    opacity: 1;
    visibility: visible;
}

.need--1:hover ~ .needs-wheel__detail .need-detail--default,
.need--1:focus-visible ~ .needs-wheel__detail .need-detail--default,
.need--2:hover ~ .needs-wheel__detail .need-detail--default,
.need--2:focus-visible ~ .needs-wheel__detail .need-detail--default,
.need--3:hover ~ .needs-wheel__detail .need-detail--default,
.need--3:focus-visible ~ .needs-wheel__detail .need-detail--default,
.need--4:hover ~ .needs-wheel__detail .need-detail--default,
.need--4:focus-visible ~ .needs-wheel__detail .need-detail--default,
.need--5:hover ~ .needs-wheel__detail .need-detail--default,
.need--5:focus-visible ~ .needs-wheel__detail .need-detail--default,
.need--6:hover ~ .needs-wheel__detail .need-detail--default,
.need--6:focus-visible ~ .needs-wheel__detail .need-detail--default,
.need--7:hover ~ .needs-wheel__detail .need-detail--default,
.need--7:focus-visible ~ .needs-wheel__detail .need-detail--default,
.need--8:hover ~ .needs-wheel__detail .need-detail--default,
.need--8:focus-visible ~ .needs-wheel__detail .need-detail--default,
.need--9:hover ~ .needs-wheel__detail .need-detail--default,
.need--9:focus-visible ~ .needs-wheel__detail .need-detail--default {
    opacity: 0;
    visibility: hidden;
}

/* Reveal the center detail panel while any node is hovered/focused */
.need--1:hover ~ .needs-wheel__detail,
.need--1:focus-visible ~ .needs-wheel__detail,
.need--2:hover ~ .needs-wheel__detail,
.need--2:focus-visible ~ .needs-wheel__detail,
.need--3:hover ~ .needs-wheel__detail,
.need--3:focus-visible ~ .needs-wheel__detail,
.need--4:hover ~ .needs-wheel__detail,
.need--4:focus-visible ~ .needs-wheel__detail,
.need--5:hover ~ .needs-wheel__detail,
.need--5:focus-visible ~ .needs-wheel__detail,
.need--6:hover ~ .needs-wheel__detail,
.need--6:focus-visible ~ .needs-wheel__detail,
.need--7:hover ~ .needs-wheel__detail,
.need--7:focus-visible ~ .needs-wheel__detail,
.need--8:hover ~ .needs-wheel__detail,
.need--8:focus-visible ~ .needs-wheel__detail,
.need--9:hover ~ .needs-wheel__detail,
.need--9:focus-visible ~ .needs-wheel__detail {
    opacity: 1;
    visibility: visible;
}


.needs-wheel__hub {
    position: absolute;
    left: 50%;
    top: 50%;
    --hub-img-width: calc(var(--need-size) * 1.5);

    width: var(--hub-img-width);
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transition: opacity var(--transition-base), visibility var(--transition-base);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.needs-wheel__hub img {
    width: var(--hub-img-width);
    height: auto;
    display: block;
    margin: 0 auto;
}

.needs-wheel__hub-hint {
    font-size: 0.85rem;
    line-height: 1.2;
    color: var(--color-text-muted);
    font-weight: var(--font-weight-medium);
    text-align: right;
    transform: translate(-20px, -10px);
    width: var(--hub-img-width);
}

/* Hide the hub logo while any node is hovered/focused */
.need--1:hover ~ .needs-wheel__hub,
.need--1:focus-visible ~ .needs-wheel__hub,
.need--2:hover ~ .needs-wheel__hub,
.need--2:focus-visible ~ .needs-wheel__hub,
.need--3:hover ~ .needs-wheel__hub,
.need--3:focus-visible ~ .needs-wheel__hub,
.need--4:hover ~ .needs-wheel__hub,
.need--4:focus-visible ~ .needs-wheel__hub,
.need--5:hover ~ .needs-wheel__hub,
.need--5:focus-visible ~ .needs-wheel__hub,
.need--6:hover ~ .needs-wheel__hub,
.need--6:focus-visible ~ .needs-wheel__hub,
.need--7:hover ~ .needs-wheel__hub,
.need--7:focus-visible ~ .needs-wheel__hub,
.need--8:hover ~ .needs-wheel__hub,
.need--8:focus-visible ~ .needs-wheel__hub,
.need--9:hover ~ .needs-wheel__hub,
.need--9:focus-visible ~ .needs-wheel__hub {
    opacity: 0;
    visibility: hidden;
}

/* Circular positioning (9 items around center) */
.need--1 { --dx: 0px; --dy: -290px; }
.need--2 { --dx: 167px; --dy: -199px; }
.need--3 { --dx: 256px; --dy: -45px; }
.need--4 { --dx: 225px; --dy: 130px; }
.need--5 { --dx: 89px; --dy: 245px; }
.need--6 { --dx: -89px; --dy: 245px; }
.need--7 { --dx: -225px; --dy: 130px; }
.need--8 { --dx: -256px; --dy: -45px; }
.need--9 { --dx: -167px; --dy: -199px; }

/* Mobile replacement for the Human Needs wheel */
.nsi-smart-cities__needs-list {
    display: none;
    width: min(980px, 100%);
    margin: var(--spacing-lg) auto 0;
    gap: var(--spacing-sm);
}

.nsi-smart-cities__needs-list-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    padding: var(--spacing-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg-secondary);
}

.nsi-smart-cities__needs-list-button {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-align: left;
    color: var(--color-text-primary);
    font-weight: var(--font-weight-semibold);
    justify-content: flex-start;
}

.nsi-smart-cities__needs-list-button img {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
}

.nsi-smart-cities__needs-list-button:focus-visible {
    outline: 3px solid var(--color-primary-lighter);
    outline-offset: 4px;
    border-radius: var(--radius-md);
}

.nsi-smart-cities__needs-list-detail {
    color: var(--color-text-primary);
    line-height: 1.5;

    width: 100%;
    overflow: hidden;
    height: 0;
    opacity: 0;
    margin-top: 0;
    transition: height var(--transition-base), opacity var(--transition-base), margin-top var(--transition-base);
}

.nsi-smart-cities__needs-list-detail strong {
    display: block;
    margin-bottom: 0.25rem;
}

.nsi-smart-cities__needs-list-row.is-active {
    background: var(--color-bg-primary);
    box-shadow: var(--shadow-sm);
}

.nsi-smart-cities__needs-list-row.is-active .nsi-smart-cities__needs-list-detail {
    opacity: 1;
    margin-top: var(--spacing-sm);
}

@media (max-width: 700px) {
    .needs-wheel {
        display: none;
    }

    .nsi-smart-cities__needs-list {
        display: grid;
    }
}

/* Why H9 section */
.nsi-smart-cities__why-h9 {
    padding: var(--spacing-2xl) 0;
}

.nsi-smart-cities__why-h9 .h9-container {
    font-family: var(--font-family-primary);
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.nsi-smart-cities__why-h9 .h9-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 320px;
    column-gap: var(--spacing-2xl);
    align-items: start;
}

.nsi-smart-cities__why-h9 .h9-row--header {
    grid-template-columns: 1fr;
    align-items: center;
}

.nsi-smart-cities__why-h9 .h9-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin: 0 auto;
    text-align: center;
}

.nsi-smart-cities__why-h9 .h9-header h2 {
    margin: 0;
    color: var(--color-text-primary);
    font-weight: var(--font-weight-bold);
}

.nsi-smart-cities__why-h9 .h9-left {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.nsi-smart-cities__why-h9 .h9-logo {
    width: 120px;
    height: auto;
    display: block;
}

.nsi-smart-cities__why-h9 .ring {
    position: relative;
    border-radius: var(--radius-full);
    background: transparent;
    box-sizing: border-box;
    width: 190px;
    height: 64px;
    margin-top: 0;

    display: grid;
    place-items: center;

    --connector-y: 18px;
    --connector-length: 50px;
    --bracket-width: 10px;
    --bracket-height: 66px;
}

.nsi-smart-cities__why-h9 .ring__icon {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nsi-smart-cities__why-h9 .ring__icon i {
    color: var(--color-primary);
    font-size: 1.25rem;
    line-height: 1;
}

/* Connector from ring to the section content */
.nsi-smart-cities__why-h9 .ring::after {
    content: "";
    position: absolute;
    left: 100%;
    top: var(--connector-y);
    transform: translateY(-50%);
    width: var(--connector-length);
    height: 2px;
    background: var(--ring-color, var(--color-border));
    pointer-events: none;
}

.nsi-smart-cities__why-h9 .ring::before {
    content: "";
    position: absolute;
    left: calc(100% + var(--connector-length));
    top: var(--connector-y);
    transform: translateY(-50%);
    width: var(--bracket-width);
    height: var(--bracket-height);
    border-left: 2px solid var(--ring-color, var(--color-border));
    border-top: 2px solid var(--ring-color, var(--color-border));
    border-bottom: 2px solid var(--ring-color, var(--color-border));
    border-radius: 2px;
    pointer-events: none;
}

/* ring sizes and colors*/
.nsi-smart-cities__why-h9 .ring1 {
    --ring-color: var(--color-primary-lighter);
    border: 10px solid var(--ring-color);
}

.nsi-smart-cities__why-h9 .ring2 {
    --ring-color: color-mix(in srgb, var(--color-primary-lighter), var(--color-primary) 30%);
    border: 11px solid var(--ring-color);
}

.nsi-smart-cities__why-h9 .ring3 {
    --ring-color: var(--color-primary-light);
    border: 12px solid var(--ring-color);
}

.nsi-smart-cities__why-h9 .ring4 {
    --ring-color: var(--color-primary-dark);
    border: 13px solid var(--ring-color);
}

/* Keep consistent Y alignment across the 3 columns */
.nsi-smart-cities__why-h9 .h9-row:not(.h9-row--header) .h9-left,
.nsi-smart-cities__why-h9 .h9-row:not(.h9-row--header) .h9-center,
.nsi-smart-cities__why-h9 .h9-row:not(.h9-row--header) .h9-right {
    padding-top: 4px;
}

.nsi-smart-cities__why-h9 .capability {
    display: flex;
    gap: 0;
    margin-bottom: 0;
}

.nsi-smart-cities__why-h9 .capability .icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 auto;
}

.nsi-smart-cities__why-h9 .capability .icon i {
    color: var(--color-primary);
    font-size: 1.25rem;
    line-height: 1;
}

.nsi-smart-cities__why-h9 .capability strong {
    font-size: 18px;
    color: var(--color-text-primary);
}

.nsi-smart-cities__why-h9 .capability p {
    margin: 3px 0 0;
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* ===== RIGHT COLUMN ===== */
.nsi-smart-cities__why-h9 .h9-right {
    color: var(--color-text-secondary);
    text-align: center;
    transform: translateY(-10px);
}

.nsi-smart-cities__why-h9 .h9-right p {
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .nsi-smart-cities__why-h9 .h9-row {
        grid-template-columns: 1fr;
        row-gap: var(--spacing-sm);
        text-align: center;
    }

    .nsi-smart-cities__why-h9 .ring {
        margin: 0 auto;
    }

    .nsi-smart-cities__why-h9 .ring::after {
        display: none;
    }

    .nsi-smart-cities__why-h9 .ring::before {
        display: none;
    }
}

/* Case Studies banner */
.nsi-smart-cities__banner--case-studies .nsi-smart-cities__banner_div {
    padding: var(--spacing-2xl) 0;
}

/* Our Services */
.nsi-smart-cities__our-services {
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
}

.nsi-smart-cities__our-services-grid {
    margin-top: var(--spacing-xl);
}

/* Floating H9 video button */
.nsi-smart-cities__fab-group {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1055; /* Above content; below Bootstrap modal (1055/1060 stack) */

    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nsi-smart-cities__fab {
    position: relative;

    order: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;
    padding: 0 18px;
    border-radius: var(--radius-full);

    background: var(--color-primary);
    color: var(--color-bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-lg);

    transition: width var(--transition-base), border-radius var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.nsi-smart-cities__fab-close {
    order: 1;

    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--color-primary);
    color: var(--color-bg-primary);
    box-shadow: var(--shadow-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;

    opacity: 0;
    pointer-events: none;
    transform: translateY(2px);
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.nsi-smart-cities__fab-close .bi {
    font-size: 1.05rem;
    line-height: 1;
}

.nsi-smart-cities__fab-close:focus-visible {
    outline: 3px solid var(--color-primary-lighter);
    outline-offset: 3px;
}

.nsi-smart-cities__fab:hover + .nsi-smart-cities__fab-close,
.nsi-smart-cities__fab.is-expanded + .nsi-smart-cities__fab-close,
.nsi-smart-cities__fab-group.is-expanded .nsi-smart-cities__fab-close {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 700px) {
    /* Move the needs rows up on mobile */
    .nsi-smart-cities__needs {
        padding-top: 0;
    }

    .nsi-smart-cities__needs-list {
        margin-top: var(--spacing-sm);
    }
}

.nsi-smart-cities__fab:hover,
.nsi-smart-cities__fab.is-expanded {
    width: 260px;
    border-radius: 9999px;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.nsi-smart-cities__fab:focus-visible {
    outline: 3px solid var(--color-primary-lighter);
    outline-offset: 3px;
}

.nsi-smart-cities__fab .bi {
    font-size: 1.5rem;
    line-height: 1;
    flex: 0 0 auto;
}

.nsi-smart-cities__fab-text {
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    transform: translateX(-6px);
    transition: max-width var(--transition-base), opacity var(--transition-base), transform var(--transition-base), margin-left var(--transition-base);
}

.nsi-smart-cities__fab:hover .nsi-smart-cities__fab-text,
.nsi-smart-cities__fab:focus-visible .nsi-smart-cities__fab-text,
.nsi-smart-cities__fab.is-expanded .nsi-smart-cities__fab-text {
    max-width: 220px;
    opacity: 1;
    margin-left: var(--spacing-sm);
    transform: translateX(0);
}

.nsi-smart-cities__our-services-header {
    text-align: center;
    margin: 0 auto var(--spacing-xl);
}

.nsi-smart-cities__our-services-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    background: var(--color-primary-lighter);
    border: 1px solid var(--color-border);
    color: var(--color-primary-darker);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.02em;
    text-transform: none;
    box-shadow: var(--shadow-sm);
}

.nsi-smart-cities__our-services-lead {
    margin: var(--spacing-lg) auto 0;
    max-width: 900px;
    color: var(--color-text-secondary);
}

.nsi-smart-cities__our-services-card {
    height: 100%;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.nsi-smart-cities__our-services-card-title {
    margin: 0 0 var(--spacing-sm);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

.nsi-smart-cities__our-services-separator {
    width: min(140px, 60%);
    height: 1px;
    margin: 0 auto var(--spacing-md);
    background: var(--color-border);
}

.nsi-smart-cities__our-services-card-body {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.nsi-smart-cities__our-services-card-body p {
    margin: 0 0 var(--spacing-sm);
}

.nsi-smart-cities__our-services-list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--color-text-secondary);
    display: inline-block;
    text-align: left;
}

.nsi-smart-cities__our-services-list li {
    margin: 0 0 var(--spacing-xs);
}

.nsi-smart-cities__banner--case-studies .nsi-banner-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    column-gap: var(--spacing-xl);
    row-gap: var(--spacing-md);
}

.nsi-smart-cities__banner--case-studies .nsi-banner-text {
    min-width: 260px;
    text-align: left;
}

.nsi-smart-cities__banner--case-studies .nsi-banner-cta {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    justify-self: end;
}


@media (max-width: 700px) {
    .nsi-smart-cities__banner--case-studies .nsi-banner-row {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .nsi-smart-cities__banner--case-studies .nsi-banner-text {
        text-align: center;
    }

    .nsi-smart-cities__banner--case-studies .nsi-banner-cta {
        justify-self: center;
    }
}

@media (max-width: 560px) {
    .needs-wheel {
        --need-size: 116px;
        --radius: 230px;
        --link-stroke: 10px;
    }

    .need {
        font-size: 0.9rem;
    }

    .need img {
        width: 50px;
        height: 50px;
    }

    .need--1 { --dx: 0px; --dy: -230px; }
    .need--2 { --dx: 133px; --dy: -157px; }
    .need--3 { --dx: 202px; --dy: -35px; }
    .need--4 { --dx: 177px; --dy: 103px; }
    .need--5 { --dx: 70px; --dy: 194px; }
    .need--6 { --dx: -70px; --dy: 194px; }
    .need--7 { --dx: -177px; --dy: 103px; }
    .need--8 { --dx: -202px; --dy: -35px; }
    .need--9 { --dx: -133px; --dy: -157px; }
}

.nsi-smart-cities__tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-md);
}


@media (max-width: 700px) {
    /* 3 image tiles become: 2-up row + full-width row */
    .nsi-smart-cities__tiles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--spacing-sm);
    }

    .nsi-smart-cities__tiles-grid > .nsi-service-tile:nth-child(3) {
        grid-column: 1 / -1;
    }

    /* Reduce image/tile height on mobile */
    .nsi-smart-cities__tiles .nsi-service-tile {
        min-height: 140px;
    }
}

@media (max-width: 700px) {
    /* Why H9: center-align everything on mobile */
    .nsi-smart-cities__why-h9 {
        padding: var(--spacing-lg) 0;
    }

    .nsi-smart-cities__why-h9 .h9-row {
        text-align: center;
        justify-items: center;
    }

    .nsi-smart-cities__why-h9 .h9-center {
        text-align: center;
    }

    .nsi-smart-cities__why-h9 .capability {
        justify-content: center;
    }

    .nsi-smart-cities__why-h9 .capability > div {
        text-align: center;
    }

    .nsi-smart-cities__why-h9 .h9-right {
        transform: none;
        text-align: center;
    }

    /* Our Services: reduce space below on mobile */
    .nsi-smart-cities__our-services {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }

    .nsi-smart-cities__our-services-header {
        margin-bottom: var(--spacing-lg);
    }

    .nsi-smart-cities__our-services-lead {
        margin-top: var(--spacing-md);
    }
}

.nsi-smart-cities__banner_div {
    background-color: var(--color-primary);
    padding: var(--spacing-md);
    text-align: center;
    color: var(--color-bg-primary);
}

.nsi-smart-cities__banner_div h1,
.nsi-smart-cities__banner_div h2 {
    margin: 0;
    color: inherit;
}

.nsi-smart-cities__banner_div p {
    margin: var(--spacing-xs) 0 0;
    color: inherit;
    opacity: 0.9;
}

/* Profile section */
.nsi-smart-cities__profile {
    padding: var(--spacing-xl) 0 var(--spacing-2xl);
    overflow-x: hidden;
}

@media (max-width: 700px) {
    .nsi-smart-cities__profile {
        padding-top: var(--spacing-md);
    }
}

.nsi-profile-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--spacing-xl);
    align-items: center;

    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-xl);
}

.nsi-profile-card__media {
    width: 100%;
}

.nsi-profile-card__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
}

.nsi-profile-card__kicker {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
}

.nsi-profile-card__name {
    margin: 0;
    color: var(--color-text-primary);
    font-weight: var(--font-weight-bold);
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    line-height: 1.1;
}

.nsi-profile-card__title {
    margin-top: var(--spacing-xs);
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
}

.nsi-profile-card__contacts {
    margin-top: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.nsi-profile-contact {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
}

.nsi-profile-contact i {
    color: var(--color-primary);
    font-size: 1.1rem;
    line-height: 1;
}

.nsi-profile-contact:hover {
    color: var(--color-text-primary);
}

@media (max-width: 900px) {
    .nsi-profile-card {
        grid-template-columns: 1fr;
    }

    .nsi-profile-card__img {
        max-width: 320px;
        margin: 0 auto;
    }

    .nsi-profile-card__body {
        text-align: center;
    }

    .nsi-profile-card__contacts {
        align-items: center;
    }
}

/* Keep the 3-tile section as a single column only for tablet widths (not mobile).
   Mobile (<700px) uses the 2-up + 1-full-width layout defined earlier. */
@media (max-width: 900px) and (min-width: 701px) {
    .nsi-smart-cities__tiles-grid {
        grid-template-columns: 1fr;
    }
}

/* SPECIAL section */
.nsi-smart-cities__special {
    padding: var(--spacing-2xl) 0;
    width: 80%;
    margin: auto;
}

.nsi-smart-cities__special-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.nsi-smart-cities__special-visual {
    max-width: 100%;
}

.nsi-smart-cities__special-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid #ccc;
}

.nsi-smart-cities__special-title {
    margin: 0;
    color: var(--color-text-primary);
    font-weight: var(--font-weight-bold);
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}

.nsi-smart-cities__special-subtitle {
    margin: var(--spacing-sm) 0 0;
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-lg);
}

.special-container {
    --row-height: 44px;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: var(--spacing-lg);
    align-items: start;
    color: var(--color-text-primary);
}

/* left column */
.special-left {
    display: flex;
    gap: var(--spacing-sm);
}

.stack,
.letters,
.needs-list {
    display: grid;
    grid-auto-rows: var(--row-height);
    align-content: start;
}

.stack img {
    width: 30px;
    height: 30px;
    display: block;
    margin: 0;
    align-self: center;
}

.letters span {
    display: block;
    font-size: 1.375rem;
    margin: 0;
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-semibold);
    align-self: center;
}

/* middle column */
.needs-list span {
    display: block;
    margin: 0;
    font-size: var(--font-size-lg);
    color: var(--color-text-primary);
    align-self: center;
}

/* right column */
.right-side {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
}

.pair {
    display: grid;
    grid-template-columns: 40px auto;
    grid-template-rows: auto auto;
    column-gap: var(--spacing-md);
    row-gap: var(--spacing-xs);
    align-items: center;
}

.pair img {
    width: 40px;
    height: 40px;
    display: block;
    margin: 0;
    grid-row: 1 / span 2;
}

.pair strong {
    font-size: var(--font-size-xl);
    color: var(--color-text-primary);
    line-height: 1.1;
}

.pair span {
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
}

@media (max-width: 900px) {
    .nsi-smart-cities__special-grid {
        grid-template-columns: 1fr;
    }

    .nsi-smart-cities__special-header {
        text-align: center;
    }

    .special-container {
        justify-content: center;
        width: min(100%, 760px);
        margin: 0 auto;
    }
}

.nsi-smart-cities__special-copy {
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
    line-height: 1.6;
}

.nsi-smart-cities__special-copy p {
    margin: 0;
}
