/* nm-svc-switch (1 Oct 2026): the "all our services" switcher, one shared component for every service page.
   Markup: .nm-svc-switch[data-current] > .nss-tabs > button.nss-tab[data-for][style=--c]
                                        > .nss-panels > .nss-panel#id (.nss-media + .nss-copy)
   Without JS: tabs are hidden and every panel shows as a plain list, so nothing is lost.
   With JS (assets/js/nm-svc-switch.js adds .is-ready): ARIA tabs, panels stacked in one grid cell so the
   section height never jumps when the service changes. */
.nm-svc-switch{--nss-c:#6BDBD7;display:grid;grid-template-columns:minmax(220px,.36fr) minmax(0,1.64fr);gap:clamp(20px,3vw,44px);gap:round(clamp(20px,3vw,44px),4px);align-items:start}
.nss-tabs{display:flex;flex-direction:column;gap:2px;border-left:1px solid rgba(255,255,255,.14)}
.nss-tab{appearance:none;-webkit-appearance:none;background:none;border:0;margin:0;color:#cfc9df;font:inherit;font-size:clamp(16.5px,1.3vw,18.5px);font-weight:600;letter-spacing:-.01em;text-align:left;padding:12px 16px;min-height:48px;cursor:pointer;position:relative;border-radius:0 24px 24px 0;transition:color .16s ease,background-color .16s ease;white-space:nowrap}
.nss-tab::before{content:'';position:absolute;left:-1px;top:9px;bottom:9px;width:3px;border-radius:2px;background:var(--c,#6BDBD7);transform:scaleY(0);transition:transform .2s cubic-bezier(.23,1,.32,1)}
@media (hover:hover) and (pointer:fine){.nss-tab:hover{color:#fff;background:rgba(255,255,255,.04)}}
.nss-tab[aria-selected=true]{color:#fff;background:rgba(255,255,255,.07)}
.nss-tab[aria-selected=true]::before{transform:none}
.nss-tab:focus-visible{outline:2px solid #6BDBD7;outline-offset:-2px}
.nss-tab:active{transform:scale(.985)}

.nss-panels{display:grid;gap:16px}
.nss-panel{position:relative;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);border-radius:24px;overflow:hidden;background:linear-gradient(160deg,rgba(255,255,255,.085),rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.12)}
.nss-panel:focus-visible{outline:2px solid #6BDBD7;outline-offset:3px}
.nss-media{margin:0;position:relative;min-height:340px;background:#0d0522}
.nss-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 0}
.nss-copy{padding:clamp(26px,3vw,44px);padding:round(clamp(26px,3vw,44px),4px);display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
.nss-copy h3{font-size:clamp(24px,2.2vw,32px);color:#fff;letter-spacing:-.03em;line-height:1.12;margin:0}
.nss-copy h3 span{display:block;width:32px;height:3px;border-radius:2px;background:var(--c,#6BDBD7);margin-bottom:16px}
.nss-copy p{margin:16px 0 0;color:#dcd7ea;font-size:16.5px;line-height:1.6}
.nss-copy .nss-with{color:#fff}
.nss-copy .nss-work{font-size:14.5px;color:#cfc9df}
.nss-link{display:inline-flex;align-items:center;min-height:44px;margin-top:16px;font-weight:700;color:#fff;text-decoration:underline;text-decoration-color:var(--c,#6BDBD7);text-decoration-thickness:2px;text-underline-offset:6px;transition:color .16s ease}
@media (hover:hover) and (pointer:fine){.nss-link:hover{color:var(--c,#6BDBD7)}}

/* without JS: a plain list of services */
.nm-svc-switch:not(.is-ready){grid-template-columns:1fr}
.nm-svc-switch:not(.is-ready) .nss-tabs{display:none}
.nm-svc-switch:not(.is-ready) .nss-panel{grid-template-columns:minmax(0,.5fr) minmax(0,1.5fr)}
.nm-svc-switch:not(.is-ready) .nss-media{min-height:180px}

/* with JS: tabs; every panel shares one grid cell so the height is the tallest panel */
.nm-svc-switch.is-ready .nss-panels{grid-template-areas:"p"}
.nm-svc-switch.is-ready .nss-panel{grid-area:p;visibility:hidden;opacity:0}
.nm-svc-switch.is-ready .nss-panel.is-on{visibility:visible;opacity:1;transition:opacity .2s cubic-bezier(.23,1,.32,1)}

@media (max-width:900px){
  .nm-svc-switch{grid-template-columns:minmax(0,1fr);gap:16px}
  .nss-tabs{flex-direction:row;overflow-x:auto;border-left:0;border-bottom:1px solid rgba(255,255,255,.14);gap:0;scrollbar-width:none;-webkit-overflow-scrolling:touch;margin:0 -16px;padding:0 16px}
  .nss-tabs::-webkit-scrollbar{display:none}
  .nss-tab{border-radius:24px 24px 0 0;padding:12px 16px;flex:0 0 auto}
  .nss-tab::before{left:12px;right:12px;top:auto;bottom:-1px;width:auto;height:3px;transform:scaleX(0)}
  .nss-tab[aria-selected=true]::before{transform:none}
  .nss-panel,.nm-svc-switch:not(.is-ready) .nss-panel{grid-template-columns:minmax(0,1fr)}
  .nss-media,.nm-svc-switch:not(.is-ready) .nss-media{min-height:0;aspect-ratio:16/10}
}
@media (prefers-reduced-motion:reduce){
  .nss-tab,.nss-tab::before,.nm-svc-switch.is-ready .nss-panel.is-on{transition:none}
  .nss-tab:active{transform:none}
}
