/* One control surface follows the visitor through the studio and case study. */
:root{--dock-tone:#292b28;--edge:rgba(224,228,212,.26);--glint:#eee9da;--dock-accent:#f9b481}
body{padding-bottom:calc(88px + env(safe-area-inset-bottom));overflow-x:clip}
body:has(#sculpt){background:radial-gradient(ellipse at 72% 14%,#30312b 0%,#131512 43%,#10120f 76%) fixed}
body:has(#sculpt)>header{height:70px;border:0}
body:has(.booking)>header{background:#111411}
nav.dock{position:fixed;z-index:8;inset:auto auto max(12px,env(safe-area-inset-bottom)) 50%;transform:translateX(-50%);display:flex;align-items:stretch;gap:3px;padding:5px;width:max-content;max-width:calc(100vw - 20px);background:linear-gradient(#333630f7,#1b1d1afc);border:1px solid #64665b;border-radius:23px;box-shadow:inset 0 1px 1px #ffffff4a,0 7px 26px #0007;color:#d9d9cd;view-transition-name:studio-dock}
.dock a{position:relative;display:grid;justify-items:center;align-content:center;gap:5px;padding:7px 13px;min-height:46px;min-width:52px;color:inherit;border:1px solid transparent;border-radius:17px;font:10px/1.2 ui-monospace,monospace;letter-spacing:.02em;transition:background-color .18s,transform .18s,color .18s}
.dock a[aria-current],.dock a:hover{background:#44473e;color:#fff5e7;border-color:#717467;box-shadow:inset 0 1px 1px #ffffff22}
.dock a[aria-current] .glyph{color:var(--dock-accent)}.dock a:active,.galleryBar button:active{transform:scale(.95)}
.glyph{width:17px;height:17px;display:block;position:relative;color:currentColor}
.glyph:before,.glyph:after{content:'';position:absolute}
.g-home:before{inset:2px;border:1.6px solid;border-radius:50%}.g-home:after{inset:6px;border-radius:50%;background:currentColor}
.g-work:before{inset:2px 3px 5px 0;border:1.4px solid;border-radius:2px}.g-work:after{inset:6px 0 1px 5px;border-right:1.4px solid;border-bottom:1.4px solid;border-radius:2px}
.g-studio:before{inset:1px 4px;border:1.5px solid;border-radius:50%;transform:rotate(40deg)}.g-studio:after{inset:1px 4px;border:1.5px solid;border-radius:50%;transform:rotate(-40deg)}
.g-services:before,.g-book:before{inset:2px 1px;border-block:1.5px solid}.g-services:after,.g-book:after{inset:8px 1px auto;border-top:1.5px solid}
.g-contact:before{inset:3px 1px;border:1.5px solid;border-radius:3px}.g-contact:after{inset:2px 5px 7px;border-inline-end:1.5px solid;border-bottom:1.5px solid;transform:rotate(45deg)}
.g-discover:before{inset:2px 3px;background:currentColor;clip-path:polygon(0 0,100% 50%,0 100%)}
.g-enter:before{inset:1px 3px;border:1.4px solid;border-radius:3px}.g-enter:after{inset:8px 5px auto auto;width:3px;height:2px;background:currentColor}
:lang(ar) .dock a{font-family:StudioArabic,Arial,sans-serif;font-size:11px}
.hero:has(#sculpt){border:1px solid var(--edge);background:radial-gradient(ellipse at 85% 110%,#6a605040,transparent 64%),linear-gradient(128deg,#282b25,#171915 70%);border-radius:clamp(24px,3vw,45px);padding:clamp(22px,4.5vw,72px);box-shadow:inset 0 1px 1px #ffffff21,0 14px 40px #0003;gap:5%}
body:has(#sculpt) #work{padding-top:clamp(38px,4.5vw,68px)}
.grid>.card{border:1px solid #626459;border-radius:24px;background:linear-gradient(145deg,#393c34,#20221f 85%);padding:7px 7px 17px;box-shadow:inset 0 1px 1px #ffffff42,0 7px 20px #0003;transition:transform .22s,border-color .22s;position:relative;isolation:isolate;overflow:hidden}
.grid .card .art{border-radius:17px;aspect-ratio:1.35}
.grid .card .meta,.grid .card>small{margin-inline:10px}.grid .card>small{display:block}
.grid .card .meta span{display:grid;place-items:center;width:31px;height:31px;border:1px solid #65695a;border-radius:50%;background:#3c4037}
@media(hover:hover){.grid>.card:hover{transform:translateY(-4px);border-color:#b6ad96}}
.grid>.card:active{transform:scale(.986)}
.galleryBar{display:none}
#detail{background:linear-gradient(145deg,#34372f,#181b17);border:1px solid #75776b;box-shadow:inset 0 1px 1px #ffffff50,0 20px 60px #0008}
#services details{border:1px solid var(--edge);border-radius:16px;margin-block:8px;padding:15px 19px;background:linear-gradient(120deg,#292c26,#1d201b)}
.booking .stepbar,.filters{background:linear-gradient(#45483e,#30342b);color:#e6e8dd;border:1px solid #63665b}
.booking .stepbar button,.filters button{color:inherit}
.booking .stepbar [aria-pressed=true],.filters [aria-pressed=true]{background:#dfdfcc;color:#1b2018}
body:has(.booking) .entry{border-block:1px solid var(--edge)}
.equ,.hero:has(.cover) .cover{view-transition-name:equ-cover}
html:has(dialog[open]) .dock{visibility:hidden}
@media(max-width:720px){
 body:has(#sculpt)>header{height:auto;padding-block:10px;display:flex}
 .hero:has(#sculpt){padding:22px 17px;gap:8px}
 #sculpt{margin:5px 0 0}
 .grid{display:flex;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;gap:12px;padding:4px 1px 12px;scrollbar-width:none}
 .grid::-webkit-scrollbar{display:none}
 .grid>.card{flex:0 0 min(88%,430px);scroll-snap-align:start}
 .grid>.card:only-child{flex-basis:min(100%,430px)}
 .galleryBar:not([hidden]){display:flex;align-items:center;justify-content:flex-end;gap:7px}
 .galleryBar output{margin-inline-end:auto;color:#b4b6a9;font:12px monospace;direction:ltr}
 .galleryBar button{height:44px;width:44px;border:1px solid #666b5b;border-radius:50%;background:linear-gradient(#40433b,#262923);font-size:25px;line-height:1}
 .galleryBar button:disabled{opacity:.37}.galleryBar button:dir(rtl){rotate:180deg}
 nav.dock{gap:0;bottom:max(8px,env(safe-area-inset-bottom))}
 .dock a{min-width:48px;padding:6px 9px}
 #detail{margin:auto auto 0;width:min(100%,560px);max-width:100%;border-radius:24px 24px 0 0;padding-bottom:max(24px,env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:no-preference){
 .hero:has(.cover) .cover{animation:enter-project .48s cubic-bezier(.2,.65,.28,1) both}
 @keyframes enter-project{from{opacity:.6;transform:scale(1.025)}to{opacity:1;transform:scale(1)}}
 .grid>.card:nth-child(2){animation-delay:35ms}.grid>.card:nth-child(3){animation-delay:70ms}
 dialog[open]{animation:sheet-in .24s cubic-bezier(.2,.7,.3,1)}
 @keyframes sheet-in{from{opacity:0;translate:0 15px}to{opacity:1;translate:0 0}}
}
nav.dock a:last-child{display:grid}
