/* NYC V38 — one-screen desktop, unified services, discreet carousel controls.
 * Loaded last. Preserve V36 artwork, 16:9 source images, and mobile accessibility.
 */
:root{--effect-ms:650ms;--slide-duration:9000ms}
.additional-services{display:none!important}
/* Every item is a service, regardless of its creation date. */
.services-panel .services{min-width:0;min-height:0;overflow:hidden!important;overscroll-behavior:contain;align-content:stretch}
.services-panel .services .service{min-width:0;min-height:0;max-height:none}
.services-panel .services .service[hidden]{display:none!important}
.services-panel .service-copy strong{overflow-wrap:anywhere}
.service-pager{display:flex;align-items:center;justify-content:center;gap:10px;color:#365b81;font:650 12px/1.3 var(--font-heading)}
.service-pager[hidden]{display:none!important}
.service-pager button{width:28px;height:28px;border:1px solid #cfe1f4;border-radius:50%;background:#fff;color:#2362a0;font:700 20px/1 var(--font-heading);cursor:pointer;display:grid;place-items:center;transition:background .18s ease}
.service-pager button:hover:not(:disabled){background:#e2effd}
.service-pager button:disabled{opacity:.34;cursor:not-allowed}
.service-pager span{white-space:nowrap}
/* Remove the duplicated Web globe: main website already has its own large CTA. */
.contact-socials .social-web{display:none!important}
.contact-online .contact-symbol{display:grid}
.contact-socials a[hidden]{display:none!important}
.contact-copy .contact-socials{gap:10px}
/* Zoom appears on hover/focus. Pause is visually retired (keyboard fallback retained). */
.hero-zoom,.hero-pause{opacity:0!important;pointer-events:none;transition:opacity .2s ease,background .2s ease!important}
.hero:hover .hero-zoom,.hero:focus-within .hero-zoom{opacity:1!important;pointer-events:auto}
.hero-pause{left:auto!important;right:10px!important;top:10px!important;bottom:auto!important;transform:none!important;width:34px!important;height:34px!important;clip-path:inset(50%);overflow:hidden!important}
.hero-pause:focus-visible{opacity:1!important;pointer-events:auto;clip-path:none;overflow:visible!important}
.hero-zoom{right:10px!important;bottom:10px!important}
.hero-zoom[hidden],.hero-pause[hidden]{display:none!important}
@media(hover:none){.hero-zoom{opacity:1!important;pointer-events:auto}}
/* V38.1: one Admin toggle governs the Pause control on ALL slides.
 * When visually disabled, V38's keyboard-focus pause fallback remains available
 * for visitors needing to stop auto-moving content (WCAG pause/stop).
 */
html[data-carousel-pause="show"] .hero .hero-pause:not([hidden]){
  opacity:.9!important;pointer-events:auto!important;clip-path:none!important;overflow:visible!important;
  left:10px!important;right:auto!important;top:auto!important;bottom:10px!important;
  width:38px!important;height:38px!important;
}
html[data-carousel-pause="show"] .hero .hero-pause:hover,
html[data-carousel-pause="show"] .hero .hero-pause:focus-visible{opacity:1!important}
/* Override old V36 first-slide embedded-controls theme: a hover Zoom must
 * be legible regardless of which published slide is currently active. */
.hero .hero-zoom{
  color:#fff!important;background:rgba(8,20,34,.86)!important;
  border-color:rgba(255,255,255,.58)!important;box-shadow:0 4px 18px rgba(0,0,0,.26)!important;
}
.hero .hero-zoom:hover,.hero .hero-zoom:focus-visible{background:rgba(18,48,72,.96)!important}
html[data-carousel-pause="show"] .hero .hero-pause{
  color:#fff!important;background:rgba(8,20,34,.82)!important;
  border-color:rgba(255,255,255,.58)!important;box-shadow:0 4px 18px rgba(0,0,0,.26)!important;
}
html[data-carousel-zoom="hide"] .hero .hero-zoom{display:none!important}
/* Hover works for any active slide because it is bound to the carousel stage.
 * Touch devices keep a visible Zoom target, as there is no mouse hover. */
@media(hover:hover) and (pointer:fine){
  .hero:not(:hover):not(:has(:focus-visible)) .hero-zoom{opacity:0!important;pointer-events:none!important}
  .hero:hover .hero-zoom,.hero:has(:focus-visible) .hero-zoom{opacity:1!important;pointer-events:auto!important}
}
/* The carousel controller changes the active slide; animate opacity/position safely. */
.hero .hero-slide{display:flex!important;opacity:0;pointer-events:none;transition:opacity var(--effect-ms) ease, transform var(--effect-ms) ease;z-index:0}
.hero .hero-slide.is-active{opacity:1;z-index:1}
.hero[data-effect="slide"] .hero-slide{transform:translate3d(7%,0,0)}
.hero[data-effect="slide"] .hero-slide.is-active{transform:translate3d(0,0,0)}
.hero[data-effect="zoom"] .hero-slide{transform:scale(1.06)}
.hero[data-effect="zoom"] .hero-slide.is-active{transform:scale(1)}
.hero[data-effect="kenburns"] .hero-slide.is-active>img{animation:nyc-kenburns var(--slide-duration) linear forwards}
@keyframes nyc-kenburns{from{transform:scale(1)}to{transform:scale(1.025)}}
/* Keep all readable poster text; blurred background fills any aspect-ratio mismatch. */
.hero-slide>img{object-fit:contain!important}
/* Match the visual weight of both action cards and simplify the contact strip. */
.feature-grid{gap:14px!important}
.feature{min-width:0}
.feature-body{min-width:0}
.feature .feature-description{max-width:83%;line-height:1.3}
.feature h2{line-height:1.17!important}
.contact-strip{overflow:hidden}
.contact-cell{min-width:0}
.contact-copy{overflow-wrap:anywhere}
/* Desktop: measured CSS grid fits the available viewport without page scrolling.
 * Small windows and mobile keep natural scroll to avoid losing content. */
@media(min-width:1024px) and (min-height:700px){
  html,body{height:100%;overflow:hidden!important}
  .shell{
    width:min(1470px,calc(100% - 16px))!important;
    height:calc(100dvh - 16px)!important;max-height:none!important;
    margin:8px auto!important;padding:12px 17px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1.74fr) minmax(345px,1fr)!important;
    grid-template-rows:minmax(54px,auto) minmax(0,1fr) clamp(132px,18vh,167px) clamp(76px,11vh,96px)!important;
    gap:9px 14px!important;
    overflow:hidden;
  }
  .brandbar{grid-column:1/-1;grid-row:1;min-height:0!important;padding:0!important}
  .hero{grid-column:1;grid-row:2;min-height:0!important;width:100%;height:100%!important;aspect-ratio:auto!important;align-self:stretch!important}
  .services-panel{grid-column:2;grid-row:2;contain:none!important;overflow:hidden!important;min-height:0;height:100%!important;max-height:none!important;display:flex!important;flex-direction:column;gap:5px!important;padding:9px!important}
  .services-panel .section-row--featured{min-height:42px!important;padding:2px 2px 4px!important}
  .services-panel .services{flex:1;min-height:0;max-height:none!important;display:grid;grid-template-columns:1fr!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:7px!important;padding:0!important}
  .services-panel .service{height:100%!important;min-height:0!important;padding:8px 11px 8px 15px!important;gap:10px!important}
  .services-panel .service-mark{height:clamp(42px,6.5vh,62px)!important;width:clamp(42px,6.5vh,62px)!important;flex-basis:clamp(42px,6.5vh,62px)!important}
  .services-panel .service-arrow{width:34px!important;height:34px!important;flex-basis:34px!important}
  .services-panel .service-copy strong{font-size:clamp(16px,1.35vw,21px)!important;line-height:1.2!important}
  .services-panel .service-copy .eyebrow,.services-panel .service-copy .helper{font-size:clamp(9px,.78vw,11px)!important}
  .service-audience{min-height:0!important;padding:4px 7px!important;flex-wrap:wrap}
  .service-pager{min-height:25px;flex:0 0 25px}
  .feature-grid{grid-column:1/-1;grid-row:3!important;margin:0!important;min-height:0}
  .feature{height:100%!important;min-height:0!important}
  .feature-body{padding:10px 23px!important}
  .feature h2{font-size:clamp(19px,1.63vw,25px)!important;margin-bottom:2px!important}
  .feature .feature-description{font-size:clamp(10px,.9vw,13px)!important;margin-bottom:5px!important}
  .feature .action-pill{min-height:31px!important;padding:5px 13px!important;font-size:11px!important}
  .contact-strip{grid-column:1/-1;grid-row:4!important;min-height:0!important;height:100%;margin:0!important}
  .contact-cell{padding:6px 11px!important;gap:8px!important}
  .contact-symbol{height:33px!important;width:33px!important;flex-basis:33px!important}
  .contact-symbol svg{height:19px!important;width:19px!important}
  .contact-copy strong{font-size:clamp(11px,.93vw,14px)!important}
  .contact-copy span,.contact-copy a{font-size:clamp(9px,.78vw,11.5px)!important}
  .contact-socials a{height:29px!important;width:29px!important;min-width:29px!important}
}
/* Avoid dense desktop right panel at narrow widths. */
@media(min-width:781px) and (max-width:1023px){
  .services-panel .services{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:none!important;overflow:hidden!important}
  .service-pager{margin:7px auto 0}
  .services-panel .service-copy strong{font-size:clamp(15px,1.65vw,19px)}
}
@media(max-width:780px){
  html,body{height:auto!important;overflow-x:hidden!important;overflow-y:auto!important}
  .services-panel .services{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:none!important;grid-auto-rows:minmax(90px,auto)!important;overflow:visible!important}
  .services-panel .services .service{min-height:90px!important;height:auto!important}
  .service-pager{display:none!important}
  .feature .feature-description{max-width:92%}
}
@media(prefers-reduced-motion:reduce){
  .hero .hero-slide{transition:none!important}
  .hero[data-effect="kenburns"] .hero-slide.is-active>img{animation:none!important}
  .service-pager button,.hero-zoom,.hero-pause{transition:none!important}
}
