/* V18 / Tafaseel glass design system. Loaded last; no layout or content replacement. */
:root{--g-red:#d71920;--g-dark:#141418;--g-light:linear-gradient(145deg,rgba(255,255,255,.84),rgba(255,255,255,.50));--g-edge:rgba(255,255,255,.88);--g-shadow:0 12px 36px #17171b0d,inset 0 1px 0 #ffffffd9;--g-dark-glass:linear-gradient(135deg,#ffffff16,#ffffff06);--g-hover:0 8px 24px #d7192026,0 0 0 1px #d7192040;--g-ease:cubic-bezier(.22,.75,.25,1)}
body{background:#f6f5f5;background-image:radial-gradient(ellipse at 5% 12%,#d719200a,transparent 32%),radial-gradient(ellipse at 92% 45%,#17171b09,transparent 35%)}
/* Large surfaces use translucent washes over ambient gradients, not full-screen filters. */
main .section:not(.sonic),.reference-home .hp-section:not(.hp-stats),.reference-home .hp-testimonial,.reference-home .hp-cta,.ab-section:not(.ab-dark):not(.ab-cta),.cv-section,.cv-hero,.team-page .team-intro,.team-section{background:radial-gradient(ellipse at 100% 0%,#d7192009,transparent 55%),linear-gradient(125deg,#ffffffb3,#f1efefb3);border-top:1px solid #ffffffb3}
main .section.soft,.reference-home .hp-about,.reference-home .hp-global,.ab-section.ab-soft,.cv-section.cv-soft,.team-section.team-regional{background:radial-gradient(ellipse at 0% 100%,#d719200c,transparent 60%),linear-gradient(125deg,#eae8e8b3,#ffffffb3)}
.ab-page,.cv-page{background:transparent}
/* Navigation and section tabs */
body>header{background:rgba(255,255,255,.76);backdrop-filter:blur(24px) saturate(135%);-webkit-backdrop-filter:blur(24px) saturate(135%);border-bottom:1px solid #ffffffc9;box-shadow:0 8px 32px #14141812,inset 0 1px 0 #ffffffd9}
.header .dropdown{background:rgba(255,255,255,.92);backdrop-filter:blur(24px) saturate(140%);-webkit-backdrop-filter:blur(24px) saturate(140%);box-shadow:0 18px 55px #14141823,inset 0 1px 0 #fff;border:1px solid #fff;border-top:2px solid var(--g-red)}
.svc-nav,.ab-jump{background:#ffffffb8;backdrop-filter:blur(18px) saturate(125%);-webkit-backdrop-filter:blur(18px) saturate(125%);box-shadow:0 4px 20px #14141809;border-bottom:1px solid #fff}
.header nav>a,.header .navitem summary{border-radius:9px}
/* Glass content surfaces: backgrounds remain legible even without filter support. */
main :is(.directory-card,.detail-panel,.enquiry,.process,.portrait,.award,.story,.stat,.svc-cap,.svc-tile,.team-profile,.ab-leader,.ab-stats,.ab-purpose article,.ab-timeline,.ab-brands div,.ab-iso article,.ab-entities article,.cv-values article,.cv-stories article,.cv-social,.cv-carousel,.hp-service-card,.hp-story-card,.hp-quote-card,.hp-world-map,.location-grid a){background:var(--g-light);border:1px solid var(--g-edge);box-shadow:var(--g-shadow);backdrop-filter:blur(12px) saturate(120%);-webkit-backdrop-filter:blur(12px) saturate(120%)}
main :is(.directory-card,.detail-panel,.enquiry,.process,.portrait,.award,.story,.svc-cap,.svc-tile,.team-profile,.ab-leader,.ab-purpose article,.ab-iso article,.ab-entities article,.cv-values article,.cv-stories article,.cv-social,.hp-story-card,.hp-quote-card){border-radius:20px}
main :is(.directory-card,.svc-cap,.svc-tile,.team-profile,.ab-leader,.ab-values article,.cv-values article,.cv-stories article,.hp-story-card,.process,.award,.portrait,.ab-iso article,.ab-entities article,.ab-purpose article,.ab-brands div){transition:box-shadow .35s var(--g-ease),border-color .35s,background-color .35s,color .25s,transform .35s var(--g-ease)}
#services.restored-solutions .service:not(:nth-child(2)){color:#17171b;background:var(--g-light);border:1px solid #ffffffd9;box-shadow:var(--g-shadow);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
#services.restored-solutions .service:not(:nth-child(2)) .service-links a{color:#17171b;border-color:#17171b15}#services.restored-solutions .service:not(:nth-child(2)) :is(.num,.symbol){color:#b91020}
#services.restored-solutions .service:nth-child(2){color:white;background:radial-gradient(ellipse at 95% 0%,#d719202c,transparent 62%),linear-gradient(145deg,#303035ed,#151518ed);border:1px solid #ffffff35;box-shadow:0 16px 36px #14141820,inset 0 1px 0 #ffffff22;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
#services.restored-solutions .service:nth-child(2) .service-links a{color:#f6f6f7;border-color:#ffffff24}#services.restored-solutions .service:nth-child(2) :is(.num,.symbol){color:#ff737a}
/* Dark glass and photographic hero treatments retain their original imagery. */
.reference-home .hp-stats,.ab-dark,.ab-cta,.team-connect,.svc .svc-cta,.sonic,.footer{background:radial-gradient(ellipse at 95% 0%,#a50e272b,transparent 58%),linear-gradient(125deg,#151518,#28282d);color:#fff}
.reference-home .hp-stats-grid,.ab-dark .ab-values article,.reference-home .hp-cta-panel,.cv-action{background:radial-gradient(ellipse at 100% 0%,#d719202a,transparent 60%),linear-gradient(140deg,#35353bd9,#17171be8);border:1px solid #ffffff30;box-shadow:0 20px 48px #14141825,inset 0 1px 0 #ffffff20;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.reference-home .hp-hero .hp-visual-card{background:linear-gradient(145deg,#ffffff20,#16101680);border:1px solid #ffffff45;box-shadow:0 25px 65px #0005,inset 0 1px 0 #ffffff35;backdrop-filter:blur(22px) saturate(140%);-webkit-backdrop-filter:blur(22px) saturate(140%)}
.reference-home :is(.hp-float-pill,.hp-map-pin,.hp-country,.hp-map-center),.ab-chips span,.team-pills a:not(.btn),.svc-photo figcaption,.cv-controls,.ab-hero-tag{background:#ffffffe0;border:1px solid #fff;box-shadow:0 7px 22px #14141812;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.ab-hero-tag{background:#b71020d9;color:#fff;border-color:#ffffff45}.reference-home .hp-world-map{background:radial-gradient(ellipse at 50% 50%,#d7192013,transparent 65%),linear-gradient(145deg,#ffffffb3,#e6e4e4b3)}
.photo-masthead .inner-grid>div:first-child{padding:clamp(20px,3vw,40px);border-radius:24px;background:linear-gradient(135deg,#15151885,#14141830);border:1px solid #ffffff26;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);box-shadow:0 14px 45px #0002}
.photo-masthead .inner-grid{max-width:850px}.photo-masthead .inner-grid p{color:#f0f0f2}
.reference-home .hp-about-art-copy,.service-visual-copy{backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid #ffffff24;background:#15151870;border-radius:16px;padding:18px}
#main-content .industry-grid > a .industry-card-copy{background:#ffffffd9;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:1px solid #ffffffb3;color:#17171b}
#main-content .industry-grid > a:hover .industry-card-copy,#main-content .industry-grid > a:focus-visible .industry-card-copy{background:#ad1020;color:white}
/* Forms, dialog, controls */
.directory-tools input,.enquiry input:not([type=checkbox]),.enquiry textarea,dialog input{background:#ffffffc9;border:1px solid #17171b22;box-shadow:inset 0 1px 5px #14141807;transition:box-shadow .3s,border-color .3s}
.directory-tools input:focus,.enquiry input:focus,.enquiry textarea:focus,dialog input:focus{border-color:var(--g-red);box-shadow:0 0 0 3px #d719201c,0 0 18px #d719201a}
dialog{background:#fffffff0;border:1px solid #fff;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:0 24px 80px #0004}dialog::backdrop{background:#14141890;backdrop-filter:blur(8px)}
/* Glow on every link/button/summary, with distinct text vs control treatment. */
:where(a,button,summary,[role=button]){transition:color .25s var(--g-ease),background-color .3s var(--g-ease),box-shadow .35s var(--g-ease),border-color .3s,text-shadow .3s,transform .3s var(--g-ease)}
:where(a,button,summary,[role=button]):focus-visible{outline:2px solid #d71920;outline-offset:4px;box-shadow:0 0 0 4px #d7192020}
@media(hover:hover) and (pointer:fine){
body a:hover,body summary:hover{text-shadow:0 0 12px #d7192040}
body :is(.btn,.hp-btn,.ab-button,.cv-linkedin,.cv-instagram,button,summary,.header nav>a,.hp-country,.team-pills a,.svc-nav a,.ab-jump a):hover{box-shadow:var(--g-hover);text-shadow:none}
body :is(.btn,.hp-btn,.ab-button,.cv-linkedin,.cv-instagram):hover{transform:translateY(-2px)}
main :is(.directory-card,.svc-cap,.team-profile,.ab-leader,.ab-values article,.cv-values article,.cv-stories article,.hp-story-card,.process,.award,.portrait,.ab-iso article,.ab-entities article,.ab-purpose article,.ab-brands div):hover,#services.restored-solutions .service:hover,#main-content .industry-grid>a:hover{box-shadow:var(--g-hover);border-color:#d7192050}
main .svc-tile:hover{background:linear-gradient(145deg,#3b272c,#17171b);color:#fff;box-shadow:var(--g-hover);border-color:#d7192060}main .svc-tile:hover span{color:#ff838a}
#services.restored-solutions .service .service-links a:hover{color:#b91020;text-shadow:0 0 10px #d7192030}#services.restored-solutions .service:nth-child(2) .service-links a:hover{color:#ff8c92}
.header .dropdown a:hover{background:#d719200b;color:#ad1020;box-shadow:inset 3px 0 #d71920,0 0 15px #d7192010}
.footer a:hover{color:#ff9298;text-shadow:0 0 12px #ff5b6766}.footer .logo:hover{box-shadow:var(--g-hover)}
}
@media(max-width:1050px){.header nav.open{background:#ffffffef;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}.header .dropdown{border-top:0;border-left:2px solid var(--g-red)}}
@media(max-width:600px){.photo-masthead .inner-grid>div:first-child{padding:20px;border-radius:16px}.reference-home .hp-hero .hp-visual-card{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}main :is(.directory-card,.process,.svc-cap,.svc-tile,.team-profile,.ab-leader,.cv-values article,.cv-stories article){backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){body>header,.header .dropdown,.header nav.open,dialog{background:#fff}main :is(.directory-card,.detail-panel,.enquiry,.process,.svc-cap,.team-profile,.ab-leader,.cv-values article,.cv-stories article){background:#fafafa}.photo-masthead .inner-grid>div:first-child{background:#17171bd9}}
@media(prefers-reduced-motion:reduce){body :is(a,button,summary),main :is(.directory-card,.svc-tile,.svc-cap,.team-profile,.ab-leader,.cv-values article){transition:none!important}body :is(.btn,.hp-btn,.ab-button):hover{transform:none!important}}
.motion-off :is(a,button,summary){transition:none!important}

/* Finishing details for full-site consistency. */
.top{background:linear-gradient(110deg,#121216,#24242a);border-bottom:1px solid #ffffff18}
.cta{background:radial-gradient(ellipse at 100% 0%,#ffffff24,transparent 55%),linear-gradient(115deg,#9d0a25,#c8102e 65%,#a40a27)}
.footer .foot-grid>div:not(:first-child){border-top:1px solid #ffffff20;padding-top:14px}
.footer .foot-bottom{border-top-color:#ffffff26}
.footer .logo{background:#fffffff0;border:1px solid #fff;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.header .searchbtn,.header .global-motion,.header .mobile{background:linear-gradient(145deg,#ffffffd9,#f3f2f2a8);border-color:#17171b14;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.reference-home .hp-btn-outline,.photo-masthead .btn.outline{background:#ffffff0e;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
@media(hover:hover) and (pointer:fine){.reference-home .hp-btn-outline:hover,.photo-masthead .btn.outline:hover{background:#ffffff20;color:#fff;border-color:#ffffff80}.cv-controls button:hover{box-shadow:0 0 15px #d7192040}}
