/* Compact experience band; four columns become two without shrinking the text. */
#home-experience.xs-experience{padding:22px 0 16px;background:linear-gradient(108deg,#0b352b,#1d5b48 54%,#0b352b);color:#fff9e9;isolation:isolate}
#home-experience.xs-experience .hg-container{display:block}
.xs-experience .xs-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;padding:0;list-style:none}
.xs-experience .xs-stats li{display:flex;align-items:center;justify-content:center;gap:16px;min-width:0;padding:8px 20px;border-inline-start:1px solid #edd38a36}
.xs-experience .xs-stats li:first-child{border-inline-start:0}
.xs-experience .xs-stats svg{width:29px;height:29px;flex:none;color:#efd48b}
.xs-experience .xs-stats strong{display:block;color:#efd48b;font-family:var(--font-serif,Georgia,serif);font-size:clamp(27px,2.5vw,37px);line-height:1.2;font-weight:600;font-variant-numeric:tabular-nums;min-width:3ch}
.xs-experience .xs-stats span{display:block;color:#fff9e9;font-size:12px;line-height:1.7;margin-top:3px}
.xs-experience .xs-line{text-align:center;font-size:13px;line-height:1.8;color:#f4eddb;margin:13px 0 0}
html[lang=ur] .xs-experience .xs-stats span,html[lang=ar] .xs-experience .xs-stats span{font-size:15px;line-height:1.9}
html[lang=ur] .xs-experience .xs-line,html[lang=ar] .xs-experience .xs-line{font-size:16px}
/* Shared service surface. Layout and card copy remain governed by the existing grids. */
body :is(.svc-card,#services .svc-card){position:relative;isolation:isolate;overflow:hidden;translate:none;border:1px solid rgba(182,149,73,.30);background:linear-gradient(145deg,rgba(255,255,255,.95),rgba(248,245,232,.88));box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 #b39b5524,0 12px 28px #062f2310,0 2px 5px #062f2308;transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease;transform-origin:center center}
body :is(.svc-card,#services .svc-card)::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;border-radius:inherit;background:linear-gradient(125deg,#ffffff4d 0%,#ffffff08 30%,transparent 44%,#e9ce8e14 100%);opacity:.6;transition:opacity .28s ease}
body :is(.svc-card,#services .svc-card) .svc-card-media{position:relative;overflow:hidden;border-bottom:1px solid #c7ae6b35}
body :is(.svc-card,#services .svc-card) .svc-card-media img{transition:transform .45s cubic-bezier(.2,.7,.2,1);backface-visibility:hidden}
body :is(.svc-card,#services .svc-card) .svc-card-content{background:transparent;position:relative;z-index:3}
body :is(.svc-card,#services .svc-card) .svc-card-index{border:1px solid #f3d58c66;box-shadow:inset 0 1px 0 #ffffff30,0 5px 14px #07291e26;background:#0d392be8;color:#fff6de}
body :is(.svc-card,#services .svc-card) .svc-details{background:linear-gradient(135deg,#ffffffb3,#e9dfc559);border:1px solid #b18b3b80;box-shadow:inset 0 1px 0 #fff9,0 3px 8px #0b38280a;transition:background .2s ease,box-shadow .2s ease}
body :is(.svc-card,#services .svc-card) .svc-details:hover{background:linear-gradient(135deg,#f5e8c4,#edcf82);box-shadow:0 5px 16px #ab822523}
body :is(.svc-card,#services .svc-card):focus-within{border-color:#b58b32;box-shadow:0 0 0 2px #c39a4952,0 18px 40px #062f2320}
body :is(.svc-card,#services .svc-card) a:focus-visible{outline:2px solid #b1872e;outline-offset:4px}
html[data-theme=dark] :is(.svc-card,#services .svc-card){background:linear-gradient(140deg,#194c3eea,#092d24f5);border-color:#d8bc6a45;box-shadow:inset 0 1px 0 #ffffff1a,inset 0 -1px 0 #0003,0 12px 30px #0003}
html[data-theme=dark] :is(.svc-card,#services .svc-card)::after{background:linear-gradient(125deg,#ffffff12,transparent 42%,#e9ce8e0c)}
html[data-theme=dark] :is(.svc-card,#services .svc-card) .svc-details{background:linear-gradient(135deg,#ffffff0d,#ecd28b0d);border-color:#d0ae5a80;box-shadow:inset 0 1px 0 #ffffff12;color:#f6e9c5}
html[data-theme=dark] :is(.svc-card,#services .svc-card) .svc-details:hover{background:#225b48;color:#fff5d8}
@supports(backdrop-filter:blur(6px)){body :is(.svc-card,#services .svc-card) .svc-card-index{backdrop-filter:blur(6px)}}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 body :is(.svc-card,#services .svc-card):hover{transform:perspective(1100px) translateY(-7px) rotateX(var(--glass-x,1.5deg)) rotateY(var(--glass-y,-1.5deg));border-color:#bc963e9c;box-shadow:inset 0 1px 0 #ffffff85,0 22px 38px #092e2429,0 7px 13px #092e2412}
 body :is(.svc-card,#services .svc-card):hover::after{opacity:1}
 body :is(.svc-card,#services .svc-card):hover .svc-card-media img{transform:scale(1.035)}
}
@media(max-width:640px){
 #home-experience.xs-experience{padding:17px 0 14px}
 .xs-experience .xs-stats{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:16px}
 .xs-experience .xs-stats li{justify-content:flex-start;gap:10px;padding:5px 12px}
 .xs-experience .xs-stats li:nth-child(3){border-inline-start:0}
 .xs-experience .xs-stats svg{width:24px;height:24px}
 .xs-experience .xs-stats span{font-size:11px}
 .xs-experience .xs-line{margin-top:16px;padding-inline:10px}
}
@media(prefers-reduced-motion:reduce){body :is(.svc-card,#services .svc-card),body :is(.svc-card,#services .svc-card)::after,body :is(.svc-card,#services .svc-card) .svc-card-media img{transition:none;animation:none}body :is(.svc-card,#services .svc-card):hover,body :is(.svc-card,#services .svc-card):hover .svc-card-media img{transform:none}}
body :is(.svc-card,#services .svc-card):hover{translate:none}
@media(hover:none),(pointer:coarse){body :is(.svc-card,#services .svc-card):hover,body :is(.svc-card,#services .svc-card):hover img{transform:none}}
.xs-experience .xs-stats li>div{min-width:0}
.xs-experience .xs-stats strong[data-long-count]{font-size:clamp(20px,2.1vw,31px);letter-spacing:-.035em}
@media(max-width:380px){.xs-experience .xs-stats li{flex-direction:column;gap:5px;text-align:center;justify-content:center}}
/* Home previews match the compact catalogue: full copy stays on the detail page. */
html body[data-page="home"] #services .svc-card-content{min-width:0}
html body[data-page="home"] #services .svc-card-content > :is(h3,.card-description){
 display:block;flex-shrink:0;min-width:0;max-width:100%;width:100%;
 min-height:0;max-height:none;height:auto;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
 overflow-wrap:normal;-webkit-line-clamp:unset;line-clamp:unset;
}
