:root{--bg:#f3f2ed;--ink:#1d2c24;--muted:#7a847a;--line:#d6dad1;--accent:#66836a;--hub-height:100vh;--hub-height:100svh;color-scheme:light;font-family:'DM Sans','Noto Sans Arabic',sans-serif;background:var(--bg);color:var(--ink)}
:root[data-theme=dark]{--bg:#0e1b16;--ink:#f4f4e9;--muted:#aab6ac;--line:#304338;--accent:#bbceb2;color-scheme:dark}
*{box-sizing:border-box}body{margin:0}button,a,select{-webkit-tap-highlight-color:transparent}button,select{font:inherit}button{color:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button:disabled{opacity:.5;cursor:wait}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.icon{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.hub-shell{height:var(--hub-height);max-width:1640px;margin:0 auto;padding:max(12px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));display:flex;flex-direction:column;gap:18px;min-height:0}
.site-header{height:62px;flex:0 0 62px;display:flex;justify-content:space-between;align-items:center;gap:12px;direction:ltr}.wordmark{font-family:Georgia,'Times New Roman',serif;font-size:44px;letter-spacing:-2.6px;line-height:1}.wordmark span{color:var(--accent)}.header-actions,.layer-actions{display:flex;align-items:center;gap:12px;direction:ltr}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid transparent;border-radius:50%;background:transparent;flex:none}.icon-button:hover{border-color:var(--line)}.language-control{position:relative;display:flex;align-items:center;gap:7px;min-width:44px;min-height:44px;cursor:pointer;font-size:13px;font-weight:500}.language-control .icon{width:20px;height:20px}.language-control select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.language-control:focus-within{outline:2px solid var(--accent);outline-offset:3px;border-radius:8px}.account-button{position:relative}.account-dot{position:absolute;inset-inline-end:4px;top:5px;width:7px;height:7px;border-radius:50%;background:#81aa80}.account-dot[hidden]{display:none}
#project-layer{padding:0;border:1px solid var(--line);background:var(--bg);color:var(--ink);width:calc(100% - 40px);max-width:1540px;height:calc(var(--hub-height) - 32px);max-height:none;border-radius:22px;overflow:hidden;box-shadow:0 25px 120px #0005;margin:auto}#project-layer[open]{display:flex;flex-direction:column;animation:layer-in .26s cubic-bezier(.2,.7,.2,1)}#project-layer::backdrop{background:#06110cb0;backdrop-filter:blur(10px)}.layer-toolbar{height:60px;flex:none;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;padding:0 12px;direction:ltr}.layer-toolbar h2{font-size:16px;font-weight:500;margin:0;flex:1}.layer-actions{gap:10px}.project-content{position:relative;flex:1;min-height:0;display:flex}.project-content iframe{border:0;width:100%;height:100%;flex:1;min-height:0;background:var(--bg)}#layer-status{position:absolute;z-index:2;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:var(--bg);font-size:15px}#layer-status[hidden]{display:none}#retry-project{border:1px solid var(--line);border-radius:30px;padding:10px 22px;background:transparent;color:inherit}#retry-project[hidden]{display:none}
@keyframes layer-in{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:none}}
/* One persistent masthead, outside the project layer and its scrolling surface. */
:root{--header-height:86px}
[hidden]{display:none!important}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.hub-shell{padding-top:calc(var(--header-height) + 10px)}
.site-header{position:fixed;inset:0 0 auto;z-index:40;height:auto;display:block;padding:env(safe-area-inset-top) max(14px,env(safe-area-inset-right)) 0 max(14px,env(safe-area-inset-left));background:var(--bg);border-bottom:1px solid transparent}
html[data-project-open] .site-header{border-bottom-color:var(--line)}
.header-inner{max-width:1540px;margin:auto}.header-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;height:78px;direction:ltr}
.header-start,.header-actions{display:flex;align-items:center;gap:7px}.header-actions{justify-content:flex-end}.icon-button{width:44px;height:44px;padding:10px}.round-button{background:color-mix(in srgb,var(--ink) 4%,var(--bg));border-color:var(--line)}.round-button:hover{background:color-mix(in srgb,var(--ink) 9%,var(--bg))}.market-button{font-size:24px;padding:5px}.back-button{width:34px;padding:7px}.wordmark{font-size:46px;letter-spacing:-2.5px;padding-bottom:3px}.wordmark .brand-i{color:inherit;position:relative}.brand-i:before{content:"";position:absolute;top:.19em;left:50%;width:.09em;height:.09em;border-radius:50%;background:#e9a372;transform:translateX(-50%)}
.header-search{display:flex;align-items:center;gap:2px;max-width:820px;margin:0 auto 12px;padding:5px 6px 5px 16px;border:1px solid var(--line);border-radius:28px;background:color-mix(in srgb,var(--ink) 5%,var(--bg));direction:ltr;transition:border-color .2s,box-shadow .2s}.header-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent)}.header-search input{min-width:0;flex:1;width:100%;height:42px;background:none;border:0;outline:0!important;font:inherit;font-size:16px;color:var(--ink);padding:0 6px;box-shadow:none}.header-search input::placeholder{color:var(--muted)}html[dir=rtl] .header-search{direction:rtl;padding:5px 16px 5px 6px}.search-divider{height:24px;width:1px;background:var(--line);margin:0 6px}.camera-button{background:#cf762f;color:#fffdf5;border:1px solid #bd6726;box-shadow:inset 0 1px 0 #ffffff55;transition:transform .2s,background .2s}.camera-button:not(:disabled):hover{background:#bd6726;transform:scale(1.04)}.camera-button:not(:disabled):active{transform:scale(.94)}
#project-layer{position:fixed;inset:var(--header-height) 0 auto;width:100%;max-width:none;height:calc(var(--hub-height) - var(--header-height));max-height:none;margin:0;border:0;border-radius:0;box-shadow:none;z-index:30;padding:0}#project-layer[open]{animation:layer-in .24s ease-out}.project-content{padding-bottom:env(safe-area-inset-bottom)}html[data-project-open] body{overflow:hidden}
.hub-sheet{width:min(420px,calc(100% - 24px));max-height:calc(var(--hub-height) - 32px);margin:auto;padding:20px;border:1px solid var(--line);border-radius:26px;background:var(--bg);color:var(--ink);box-shadow:0 20px 80px #0004;overflow:auto}.hub-sheet[open]{animation:layer-in .2s ease-out}.hub-sheet::backdrop{background:#06110c80;backdrop-filter:blur(7px)}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}.sheet-head h2{margin:0;font-size:20px;font-weight:500}.project-nav{display:grid;gap:3px}.project-nav button,.menu-bottom button,.camera-choices button{font:inherit;color:inherit;border:0;background:none;padding:14px 12px;min-height:48px;text-align:start;border-radius:12px}.project-nav button{display:flex;justify-content:space-between;align-items:center;gap:16px}.project-nav small{font-size:12px;color:var(--muted)}.project-nav button:hover,.menu-bottom button:hover{background:color-mix(in srgb,var(--ink) 6%,var(--bg))}.menu-bottom{border-top:1px solid var(--line);margin-top:14px;padding-top:8px;display:flex;flex-wrap:wrap;gap:6px}.menu-bottom button{font-size:13px}.preference-fields{display:grid;gap:20px;padding:10px 0}.preference-fields label{display:grid;gap:8px;font-size:14px}.preference-fields select{min-height:48px;max-width:100%;border:1px solid var(--line);border-radius:12px;padding:10px;color:var(--ink);background:var(--bg)}.camera-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-top:6px}.camera-choices button{text-align:center;border:1px solid var(--line);background:color-mix(in srgb,var(--ink) 5%,var(--bg))}#header-notice{position:fixed;z-index:60;top:calc(var(--header-height) + 12px);left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 28px);border:1px solid var(--line);border-radius:16px;padding:12px 18px;background:var(--bg);box-shadow:0 5px 25px #0002;font-size:14px;text-align:center}
@media(max-width:720px){:root{--header-height:72px}.header-row{height:68px;gap:4px}.wordmark{font-size:38px;letter-spacing:-2px}.header-start,.header-actions{gap:3px}.back-button{width:27px;padding:4px}.round-button{width:40px;height:40px;padding:8px}.market-button{font-size:22px;padding:5px}.header-search{margin-bottom:10px}.hub-shell{padding-top:calc(var(--header-height) + 7px)}.hub-sheet{padding:16px}.project-nav button{padding-inline:8px}}
@media(max-width:360px){.header-row{gap:2px}.wordmark{font-size:34px}.round-button{width:36px;height:40px;padding:7px}.header-actions,.header-start{gap:1px}}
@media(max-height:450px){.header-row{height:54px}.header-search{margin-bottom:6px;padding-block:2px}.header-search input{height:34px}.header-search .icon-button{width:38px;height:38px}.hub-shell{padding-top:calc(var(--header-height) + 4px)}}

/* One calm room. Three direct, accessible entrances. */
.hub-shell{max-width:1440px;height:var(--hub-height);min-height:560px;padding-inline:max(24px,env(safe-area-inset-left)) max(24px,env(safe-area-inset-right));padding-top:calc(var(--header-height) + 6px);padding-bottom:max(24px,env(safe-area-inset-bottom));gap:0}
main{display:flex;flex:1;min-height:0}
.home-hero{position:relative;display:flex;align-items:flex-end;flex:1;min-width:0;min-height:430px;isolation:isolate;overflow:hidden;border-radius:32px;background:#09100d;color:#fffdf5;box-shadow:0 8px 32px #17251c0b;animation:none}
.home-image{position:absolute;inset:0;z-index:-2;overflow:hidden}
.home-image img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 59%;animation:none}
.home-hero:after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,transparent 25%,#02070506 42%,#02070538 59%,#020705bc 78%,#020705f5 100%)}
.home-content{width:100%;max-width:620px;margin-inline:auto;padding:80px 38px 30px;text-align:center}
.home-content h1{margin:0 0 24px;font-size:clamp(30px,3.4vw,46px);font-weight:500;line-height:1.3;letter-spacing:-1.1px;text-wrap:balance;color:#fffdf5;text-shadow:0 2px 24px #0002}
html[dir=rtl] .home-content h1{letter-spacing:0;font-size:clamp(30px,3.4vw,44px);line-height:1.55}
.home-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:440px;margin:0 auto}
.home-action{display:flex;align-items:center;justify-content:flex-start;flex-direction:column;gap:11px;min-width:0;min-height:104px;padding:7px 5px 10px;border-radius:22px;font-size:15px;font-weight:500;line-height:1.4;color:#f9faf5;transition:background .22s ease,transform .22s ease}
.home-action>span:not(.home-action-icon):not(.sr-only){overflow-wrap:anywhere;text-wrap:balance}
.home-action-icon{display:grid;place-items:center;width:58px;height:58px;flex:none;border:1px solid #ffffff36;border-radius:20px;background:#ffffff0d;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:inset 0 1px 0 #ffffff0d;transition:transform .25s ease,background .25s ease,border-color .25s ease}
.home-action-icon .icon{width:27px;height:27px;stroke-width:1.5}
.design-action .home-action-icon{background:#244f3f;color:#fffdf5;border-color:#386b55;box-shadow:0 3px 18px #00000012}
.home-action:focus-visible{outline:2px solid #f6f8ee;outline-offset:3px;background:#ffffff10}
.home-action:active .home-action-icon{transform:scale(.95)}
@media(hover:hover) and (pointer:fine){.home-action:hover{background:#ffffff08}.home-action:hover .home-action-icon{transform:translateY(-3px);background:#ffffff1c;border-color:#ffffff70}.design-action:hover .home-action-icon{background:#315e4c;border-color:#47765e}}
@keyframes home-arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes home-settle{from{transform:scale(1.025)}to{transform:scale(1)}}
/* The shared header composer still belongs only to the open section. */
@media(max-width:720px){
 .hub-shell{min-height:530px;padding-top:calc(var(--header-height) + 4px);padding-inline:max(14px,env(safe-area-inset-left)) max(14px,env(safe-area-inset-right));padding-bottom:max(14px,env(safe-area-inset-bottom))}
 .home-hero{border-radius:26px;min-height:430px}
 .home-image{bottom:76px}.home-image img{object-position:50% 55%}
 .home-hero:after{background:linear-gradient(180deg,transparent 25%,#02070500 38%,#02070520 53%,#020705b8 70%,#09100dfc 88%,#09100d 100%)}
 .home-content{padding:70px 18px 23px}
 .home-content h1{font-size:clamp(27px,7.1vw,36px);letter-spacing:-.65px;margin-bottom:18px}
 html[dir=rtl] .home-content h1{font-size:clamp(28px,7.6vw,37px);letter-spacing:0;line-height:1.5}
 .home-actions{gap:5px;max-width:380px}.home-action{font-size:14px;gap:10px;min-height:94px;padding:6px 2px 8px;border-radius:19px}
 .home-action-icon{width:53px;height:53px;border-radius:18px}.home-action-icon .icon{width:25px;height:25px}
}
@media(min-width:721px) and (max-aspect-ratio:1/1){.home-image{bottom:75px}.home-image img{object-position:50% 50%}.home-hero:after{background:linear-gradient(180deg,transparent 25%,#02070500 40%,#02070550 64%,#09100dfc 88%,#09100d 100%)}}
@media(max-height:570px){.hub-shell{min-height:450px}.home-hero{min-height:350px}.home-content{padding-top:50px;padding-bottom:16px}.home-content h1{font-size:28px;margin-bottom:12px}.home-action{min-height:87px;gap:8px}.home-action-icon{width:48px;height:48px;border-radius:16px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* The room becomes a workspace inside the same rounded surface. */
html[data-project-open] .site-header{border-bottom-color:transparent}
#project-layer{inset:calc(var(--header-height) + 6px) 24px auto;width:calc(100% - 48px);max-width:1392px;margin-inline:auto;height:calc(var(--hub-height) - var(--header-height) - 30px);border-radius:32px;background:var(--bg);box-shadow:0 8px 32px #17251c0b}
#project-layer[open]{animation:experience-open .42s cubic-bezier(.2,.7,.3,1)}
.project-content{padding:0;isolation:isolate}.project-content iframe{display:block;min-width:0}.project-content iframe[hidden]{display:none!important}
#layer-status{color:#fffdf5;background:linear-gradient(180deg,#09100d00 35%,#09100d 100%),url('/assets/home-calm.d3a18bbfc490580f.webp') center 55%/cover;justify-content:flex-end;padding:32px;text-shadow:0 1px 8px #0008}
.experience-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px max(16px,calc((100% - 520px)/2)) 13px;background:#09100d;color:#fffdf5;flex:none;direction:inherit}
.experience-nav button{min-height:53px;min-width:0;padding:8px 6px;border:1px solid transparent;background:transparent;border-radius:17px;color:#c5cdc4;display:flex;align-items:center;justify-content:center;gap:10px;font:inherit;font-size:14px;transition:background .2s,color .2s}
.experience-nav button[aria-current=true]{background:#244f3f;color:#fffdf5;border-color:#386b55}
.experience-nav button:focus-visible{outline:2px solid #fffdf5;outline-offset:2px}.experience-nav button:not([aria-current=true]):hover{background:#ffffff12;color:#fff}
@keyframes experience-open{from{opacity:0}to{opacity:1}}
@media(max-width:720px){#project-layer{inset:calc(var(--header-height) + 4px) 14px auto;width:calc(100% - 28px);height:calc(var(--hub-height) - var(--header-height) - 18px);border-radius:26px}.experience-nav{padding:9px 12px 11px;gap:5px}.experience-nav button{flex-direction:column;gap:5px;font-size:12px;line-height:1.3;min-height:62px;padding:7px 2px;border-radius:16px}.experience-nav .icon{width:22px;height:22px}}
@media(max-height:450px){.experience-nav{padding-block:4px}.experience-nav button{min-height:40px;flex-direction:row}}
@media(prefers-reduced-motion:reduce){#project-layer[open]{animation:none}.experience-nav button{transition:none}}

/* Quiet focus: the existing composer expands and the room recedes. */
.header-search{transition:max-width .38s cubic-bezier(.2,.75,.25,1),padding .38s cubic-bezier(.2,.75,.25,1),border-color .3s,box-shadow .3s}
html[data-query-focus] .header-search{max-width:960px;border-color:var(--accent);box-shadow:0 8px 28px #0000000b}
.header-search input{transition:height .38s cubic-bezier(.2,.75,.25,1)}
html[data-query-focus] .header-search input{height:42px}
.header-search .camera-button,.header-search .search-divider{transition:opacity .25s,transform .3s,width .3s,margin .3s,padding .3s}
html[data-query-focus] .header-search .camera-button{width:0;padding:0;border-width:0;opacity:0;transform:scale(.7);pointer-events:none;visibility:hidden}
html[data-query-focus] .header-search .search-divider{width:0;margin:0;opacity:0}
.search-dismiss{position:fixed;inset:var(--header-height) 0 0;z-index:36;border:0;border-radius:0;padding:0;background:#09100d29;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .3s,visibility .3s;cursor:default}
html[data-query-focus] .search-dismiss{opacity:1;visibility:visible;pointer-events:auto;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
.experience-nav{max-height:110px;overflow:hidden;transition:max-height .32s cubic-bezier(.2,.75,.25,1),padding .32s,opacity .24s,transform .32s}
html[data-text-entry] .experience-nav{max-height:0;padding-block:0;opacity:0;transform:translateY(10px);pointer-events:none;visibility:hidden}
.experience-nav button{transform:scale(.94);opacity:.65;transition:transform .4s cubic-bezier(.2,.75,.25,1),opacity .3s,background .3s,color .3s}
.experience-nav button[aria-current=true]{transform:scale(1);opacity:1;box-shadow:0 3px 14px #00000012}
.experience-nav button:active{transform:scale(.94)}
.home-action{transition:opacity .3s,transform .35s,background .3s}
.home-actions:has(.home-action:active) .home-action:not(:active){opacity:.55;transform:scale(.96)}
.home-action:active{transform:scale(1.025)}
#project-layer{transition:none}
@keyframes search-focus-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.header-search,.header-search input,.header-search .camera-button,.header-search .search-divider,.experience-nav,.experience-nav button,#project-layer,.home-action{transition:none!important}.search-dismiss{animation:none!important}}

.hub-sheet [data-dismiss]{width:44px;height:44px;padding:13px;border:0;border-radius:8px;background:transparent;opacity:.65;box-shadow:none}
.hub-sheet [data-dismiss] .icon{width:18px;height:18px;stroke-width:1.5}
.hub-sheet [data-dismiss]:focus-visible{outline:1px solid var(--muted);outline-offset:-7px}

/* Dock at rest. Focus uses one transform animation into a larger central field.
   The scene keeps its original height while the native keyboard opens/closes. */
html[data-project-open] .header-search{position:fixed;z-index:41;top:calc(var(--hub-height) - max(38px,env(safe-area-inset-bottom)));left:50%;width:min(602px,calc(100% - 96px));max-width:602px;margin:0;transform:translate(-50%,-100%);transform-origin:center;background:#f3f2edf0;color:#1d2c24;border-color:#ffffff70;box-shadow:0 8px 30px #00000018;--ink:#1d2c24;--muted:#7a847a;--line:#d6dad1;--accent:#66836a;transition:box-shadow .3s,background .3s}
html[data-project-open][data-query-focus] .header-search{top:var(--search-center-y,50%);width:min(760px,calc(100% - 32px));max-width:760px;min-height:76px;padding-block:10px;border-radius:32px;transform:translate(-50%,-50%);background:#f3f2ed;box-shadow:0 12px 40px #00000026;transition:top .24s cubic-bezier(.2,.75,.25,1),box-shadow .3s,background .3s}
html[data-project-open][data-search-opening] .header-search{transition:none;will-change:transform}
html[data-project-open] .header-search input,html[data-project-open] .header-search .camera-button,html[data-project-open] .header-search .search-divider{transition:none}
html[data-project-open][data-query-focus] .header-search input{height:54px;font-size:18px}
html[data-project-open][data-search-opening] .header-search input{caret-color:transparent}
/* Results reserve scroll space inside the frame without resizing it. */
html[data-query-focus] .header-row{filter:blur(5px);opacity:.45;pointer-events:none}
.header-row{transition:filter .26s,opacity .26s}
@media(max-width:720px){html[data-project-open] .header-search{width:calc(100% - 76px)}html[data-project-open][data-query-focus] .header-search{width:calc(100% - 32px)}}
@media(max-width:380px){html[data-project-open] .header-search{width:calc(100% - 52px)}html[data-project-open][data-query-focus] .header-search{width:calc(100% - 24px)}}
@media(prefers-reduced-motion:reduce){html[data-project-open] .header-search,.header-row{transition:none}}

/* Safari can pan the visual viewport independently from the layout viewport. */

html[data-query-focus] .search-dismiss{inset:var(--hub-viewport-top,0px) 0 auto;height:var(--hub-viewport-height,var(--hub-height))}
#project-layer:focus{outline:none}

/* One room behind every section. Foreground panels never lay it out again. */
body{overflow:hidden}
.hub-shell{position:fixed;inset:0;width:100%;min-height:0}
.home-hero{min-height:0}
html[data-project-open] .home-content{visibility:hidden;pointer-events:none}
#project-layer,.project-content iframe{background:transparent}
.project-content{padding-bottom:0}
#layer-status{background:transparent;color:var(--ink)}
.header-row{height:78px}
@media(max-width:720px){.header-row{height:68px}}
