/* Readable navigation and supporting type, without changing the carved wall. */
:root{--ui-ink:#36291c;--ui-navy:#173b50;--ui-paper:#fff4df}
.masthead{mix-blend-mode:multiply;background:none;gap:30px}
.masthead .brand{mix-blend-mode:normal}
.masthead nav{gap:clamp(22px,2.4vw,42px);font-size:clamp(16px,1.05vw,18px);color:var(--ui-ink)}
.masthead .text-action{font-size:inherit;line-height:1.4;min-height:44px;padding:10px 0;color:var(--ui-ink)}
.masthead .language{display:inline-flex;align-items:center;min-height:44px;font-size:17px;color:var(--ui-ink);border-bottom-color:#695036}
.masthead .contact-button{display:flex;align-items:center;justify-content:center;gap:22px;min-height:50px;padding:12px 23px;font-size:16px;line-height:1.35;color:var(--ui-paper);background:var(--ui-navy);border:1px solid #a98c56;box-shadow:0 3px 12px #39271112;transition:background .25s,border-color .25s}
.masthead .contact-button span{font:21px/1 Arial;color:#dfc18a}
.masthead .contact-button:hover{background:#24566c;border-color:#dfc18a}
.masthead .contact-button:focus-visible{outline:2px solid #173b50;outline-offset:4px}
.decoder-heading{top:21%;color:var(--ui-ink)}
.decoder-heading h2{font-size:16px;line-height:1.4;letter-spacing:.18em;color:var(--ui-ink)}
#decoder-status{font-size:15px;line-height:1.5;color:#493521;margin-top:5px}
html[data-view=services] .room-sculpture{top:14%}
.room-footer{color:var(--ui-ink);font-size:14px}
.place{font-size:13px;line-height:1.5;letter-spacing:.07em;gap:3px}
.place>span:first-child{font-size:14px;letter-spacing:.16em}
.motion-toggle{font-size:13px;line-height:1.4;min-height:44px;color:var(--ui-ink)}
.motion-toggle:before{font-size:16px}
.discover-next{font-size:14px;min-height:44px;color:var(--ui-ink)}
.decoder-toolbar{gap:38px}
.decoder-toolbar button{font-size:14px;line-height:1.4;min-height:44px;color:var(--ui-ink)}
.decoder-toolbar span{font-size:20px}
.wall-pan button{font-size:14px;width:44px;height:44px;color:#59432b}
.wall-pan button[aria-pressed=true]{color:#2e2115;border-bottom-width:2px}
html[data-wall-pan=true] .wall-pan-hint{font-size:13px;line-height:1.4;color:#493521;top:calc(76% + 51px)}
.sculpture-hint{font-size:13px;line-height:1.4;color:#493521;opacity:1}
.chapter-nav button,.chapter-name{font-size:12px;color:#57422c}
.chapter-copy .text-action{font-size:14px;min-height:44px;color:#36291c}
.chapter-copy .eyebrow{font-size:13px;color:#493521}
html:lang(ar) .masthead nav,html:lang(ar) .masthead .text-action,html:lang(ar) .masthead .contact-button{font-size:20px}
html:lang(ar) .decoder-heading h2{font-size:22px;letter-spacing:0;line-height:1.3}
html:lang(ar) #decoder-status{font-size:18px;line-height:1.4}
html:lang(ar) .decoder-toolbar button{font-size:18px}
html:lang(ar) .motion-toggle,html:lang(ar) .discover-next,html:lang(ar) .sculpture-hint{font-size:17px}
html:lang(ar) .place{font-size:16px;letter-spacing:0}
html:lang(ar) .place>span:first-child{font:14px/1.5 'IBM Plex Mono',monospace;letter-spacing:.16em}
html:lang(ar) .wall-pan-hint{font-size:17px}
@media(max-width:1000px) and (min-width:761px){
 .masthead{gap:20px;padding-inline:32px}.masthead nav{gap:20px}
 .masthead .contact-button{padding-inline:16px;gap:14px}
}
@media(max-width:760px){
 .masthead{height:auto;min-height:120px;padding:14px 24px 9px;gap:8px;flex-wrap:wrap;align-content:start}
 .masthead nav{width:100%;justify-content:space-between;gap:12px;align-items:center;font-size:14px}
 .masthead nav>.text-action{display:inline-flex;font-size:14px;min-height:44px;padding:8px 0}
 .masthead .language{font-size:15px;min-height:44px;padding:5px 0}
 .masthead .contact-button{font-size:14px;min-height:44px;padding:9px 12px;gap:10px}
 .masthead .contact-button span{font-size:17px}
 .decoder-heading{top:22%;width:calc(100% - 32px)}
 .decoder-heading h2{font-size:15px}
 #decoder-status{font-size:14px;line-height:1.4;margin-top:4px}
 html[data-view=services] .room-sculpture{top:17%;width:62px;height:62px}
 .room-footer{bottom:18px;align-items:center}
 .place{font-size:11px;line-height:1.5;letter-spacing:.035em;gap:2px}
 .place>span:first-child{font-size:13px}
 .motion-toggle{font-size:12px;min-height:44px}
 .discover-next{font-size:12px;bottom:38px}
 .decoder-toolbar{bottom:7%;gap:24px;width:calc(100% - 40px)}
 .decoder-toolbar button{font-size:13px;gap:10px;min-height:44px}
 .decoder-toolbar span{font-size:18px}
 .sculpture-hint{font-size:12px}
 .chapter-copy .text-action{font-size:14px;min-height:40px}
 html:lang(ar) .masthead nav,html:lang(ar) .masthead nav>.text-action,html:lang(ar) .masthead .contact-button{font-size:17px}
 html:lang(ar) .decoder-heading h2{font-size:20px}
 html:lang(ar) #decoder-status{font-size:16px;line-height:1.4}
 html:lang(ar) .decoder-toolbar button{font-size:16px}
 html:lang(ar) .place{font-size:14px}
 html:lang(ar) .motion-toggle,html:lang(ar) .discover-next{font-size:15px}
}
@media(max-width:380px){
 .masthead{padding-inline:16px}.masthead nav{gap:10px}
 .masthead nav>.text-action:not(.services-trigger){display:none}
 .masthead .contact-button{padding-inline:13px}
 .decoder-toolbar{gap:16px;width:calc(100% - 28px)}
 .decoder-toolbar button{font-size:12px;gap:8px}
}
@media(max-width:760px) and (max-height:740px){
 .room-sculpture{top:40%;width:min(68vw,46svh);height:min(68vw,46svh)}
 .sculpture-hint{display:none}
 html[data-view=services] .room-sculpture{top:154px;left:46px;width:48px;height:48px}
 .decoder-heading{top:132px;left:82px;width:calc(100% - 104px);transform:none;text-align:start}
 .decoder-heading h2{font-size:14px}
 #decoder-status{font-size:13px;line-height:1.35;margin-top:3px}
 html:lang(ar) .decoder-heading h2{font-size:18px}
 html:lang(ar) #decoder-status{font-size:15px}
 html[data-wall-pan=true] .wall-pan{top:auto;bottom:21%}
 html[data-wall-pan=true] .wall-pan-hint{display:none}
 .decoder-toolbar{bottom:12%}
 .room-footer{bottom:10px}
 .chapter-copy[data-chapter="0"] .text-action{font-size:13px;min-height:36px}
}
@media(max-height:550px) and (min-width:761px){
 .masthead{height:76px}.masthead .contact-button{min-height:44px}
 html[data-view=services] .room-sculpture{top:17%;left:calc(50% - 180px);width:48px;height:48px}
 .decoder-heading{top:13%;left:50%;width:290px;transform:translateX(-50%)}
 .decoder-heading h2{font-size:14px}#decoder-status{font-size:13px}
 .decoder-toolbar{bottom:12%}.place{font-size:11px}.place>span:first-child{font-size:12px}.motion-toggle{font-size:12px}
}

.masthead nav>.text-action,.masthead .contact-button{white-space:nowrap}
@media(max-width:760px){
 .masthead nav{gap:8px}
 .masthead .contact-button span{display:none}
}
/* Service instructions remain available to assistive technology only. */
.decoder-heading{position:absolute;left:0;top:0;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;transform:none}
html[data-view=services] .room-sculpture{left:50%}
/* Clearly visible controls; the light animation belongs to the wall lettering. */
.decoder-toolbar{gap:16px}
.decoder-toolbar button{position:relative;isolation:isolate;overflow:hidden;justify-content:center;min-height:52px;padding:13px 22px;gap:14px;font-size:15px;line-height:1.4;border:1px solid #87633b;border-radius:3px;background:#f5e5c9;color:#352617;box-shadow:0 3px 12px #4a311514;transition:background .25s,border-color .25s,transform .25s}
.decoder-toolbar .decoder-replay{background:#173b50;border-color:#9d8252;color:#fff4df}
.decoder-toolbar button:hover{background:#fff0d3;border-color:#50391f;transform:translateY(-1px);color:#352617}
.decoder-toolbar .decoder-replay:hover{background:#24566c;color:#fff4df;border-color:#dfc18a}
.decoder-toolbar button:focus-visible{outline:2px solid #173b50;outline-offset:5px}
@media(max-width:760px){
 .decoder-toolbar{gap:12px;width:calc(100% - 32px)}
 .decoder-toolbar button{font-family:var(--body);font-size:14px;min-height:48px;padding:11px 12px;gap:8px}
 .decoder-toolbar span{font-size:18px}
 html:lang(ar) .decoder-toolbar button{font-size:16px}
}
@media(max-width:380px){
 .decoder-toolbar{gap:10px;width:calc(100% - 24px)}
 .decoder-toolbar button{font-size:13px;min-height:46px;padding:10px;gap:7px}
 html:lang(ar) .decoder-toolbar button{font-size:15px}
}

/* Light is clipped to the existing carved pixels and shares their camera. */
.wall-letter-light{opacity:0;transition:opacity 800ms ease;pointer-events:none}
html[data-view=services][data-decoding=complete] .wall-letter-light{opacity:.68}
.wall-light-streak{transform:translateX(var(--light-from,-420px));animation:engraving-light 6s linear infinite;animation-play-state:paused}
html[data-view=services][data-decoding=complete] .wall-light-streak{animation-play-state:running}
html[data-view=services][data-motion-paused=true] .wall-light-streak{animation-play-state:paused}
html[data-wall-pan=true] .wall-light-streak{animation-duration:3.8s}
@keyframes engraving-light{from{transform:translateX(var(--light-from,-420px))}to{transform:translateX(var(--light-to,1672px))}}
@media(max-width:760px) and (min-height:741px){.decoder-toolbar{bottom:max(7%,72px)}}
@media(prefers-reduced-motion:reduce){.wall-letter-light{display:none}.wall-light-streak{animation:none}}

/* Direct WhatsApp access on the main experience, with no third-party widget. */
.whatsapp-front{position:fixed;z-index:14;inset-inline-end:var(--edge);bottom:96px;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:12px 18px;border:1px solid #54886d;border-radius:5px;background:#1c5c43;color:#fff9e9;font:15px/1.3 var(--body);box-shadow:0 5px 22px #183e2926;transition:background .25s,transform .25s,opacity .35s,visibility .35s}
.whatsapp-front svg{width:26px;height:26px;flex-shrink:0}
.whatsapp-front:hover{background:#24794f;transform:translateY(-2px)}
.whatsapp-front:focus-visible{outline:2px solid #173b50;outline-offset:5px}
html:lang(ar) .whatsapp-front{font-size:20px}
html[data-view=services] .whatsapp-front{opacity:0;visibility:hidden;pointer-events:none}
@media(max-width:760px){
 .whatsapp-front{top:9px;bottom:auto;inset-inline-end:24px;min-height:40px;gap:7px;padding:8px 12px;font-size:14px;border-radius:4px;box-shadow:none}
 .whatsapp-front svg{width:23px;height:23px}
 html:lang(ar) .whatsapp-front{font-size:18px;line-height:1.2}
}
@media(max-width:380px){.whatsapp-front{inset-inline-end:16px}}
@media(max-width:760px){.masthead{row-gap:16px}}
