@media screen and (min-width:1100px) and (prefers-reduced-motion:no-preference){
  .group-covers-active .group-cover-stage{position:relative;}
  .group-covers-active .group-cover-scene{position:sticky;top:var(--cover-top,0px);z-index:1;background-color:var(--cream);isolation:isolate;}
  .group-covers-active .group-cover-scene::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:6;background:var(--ink);opacity:calc(var(--cover-depth,0) * .055);}
  .group-covers-active .group-cover-scene:focus-within::before{opacity:0;}
  .group-covers-active .group-cover-recede > .wrap{
    transform-origin:50% 100%;
    scale:calc(1 - var(--cover-depth,0) * .012);
    translate:0 calc(var(--cover-depth,0) * -10px);
  }
  .group-covers-active .group-cover-recede:focus-within > .wrap{scale:1;translate:none}
  /* Outgoing composition moves; the following composition is already there.
     Both use their real DOM, preserving links and the original reading order. */
  .group-covers-active .group-lift-out{position:relative;top:auto;z-index:2;}
  .group-covers-active .group-reveal-under{position:relative;top:auto;z-index:1;translate:0 var(--reveal-shift,0px);}
  .group-covers-active .group-reveal-under:focus-within{translate:0 0;}
  .group-covers-active .group-cover-stage:has(> .group-reveal-under)::before{content:"";position:absolute;left:0;right:0;top:-100vh;bottom:0;background:var(--cream);pointer-events:none;z-index:0;}
  /* Services: each existing category is one sheet. The parent stays in normal
     flow so sticky rows have a single owner, not a second nested pin. */
  .group-covers-active .group-territory-section{position:relative!important;top:auto!important;overflow:visible}
  .group-covers-active .group-territory-stack{position:relative;isolation:isolate}
  .group-covers-active .group-territory-panel{
    position:sticky;top:var(--territory-top,70px);z-index:var(--territory-order,1);
    background:var(--cream);isolation:isolate;
    transform:none!important;translate:none!important;opacity:1!important;transition:none!important}
  .group-covers-active .group-territory-panel:not(:first-child)::before{
    content:"";position:absolute;left:0;right:0;top:0;height:1px;background:var(--gold);opacity:.55;pointer-events:none}
  .group-covers-active .group-territory-panel::after{display:none!important}
  .group-covers-active .group-territory-shade{
    position:absolute;inset:0;z-index:3;background:var(--ink);pointer-events:none;
    opacity:calc(var(--territory-cover,0) * .045)}
  .group-covers-active .group-territory-panel:focus-within .group-territory-shade{opacity:0}
}
.group-territory-shade{display:none}
@media screen and (min-width:1100px) and (prefers-reduced-motion:no-preference){.group-covers-active .group-territory-shade{display:block}}
@media print,(max-width:1099px),(prefers-reduced-motion:reduce){
  .group-cover-stage{height:auto!important;margin-top:0!important;}
  .group-cover-scene{position:relative!important;top:auto!important;}
  .group-reveal-under{translate:none!important;}
  .group-territory-panel{position:relative!important;top:auto!important}
  .group-territory-shade{display:none!important}
}
