/* Actual product photography, composed in space. No repainting of the products. */
.hero-stage--real{border-radius:8px 8px 64px 8px;background:radial-gradient(ellipse at 20% 20%,#2f5e4f,transparent 75%),#142f27}
.hero-stage--real .stage-heading{min-height:62px;padding-block:12px}
.motion-toggle{display:flex;align-items:center;gap:9px;min-height:38px;padding:7px 10px;border:1px solid #cce2d83d;border-radius:4px;background:#183b30;color:#deece5;font-size:11px}
.motion-toggle:hover{background:#2e5246}.motion-toggle:focus-visible{outline-color:var(--mint)}.motion-toggle:disabled{opacity:.55}
.motion-toggle>span{width:16px;text-align:center;font:14px var(--mono)}
.real-art{height:410px;perspective:1100px}
.real-stack{position:absolute;width:80%;aspect-ratio:16/10;left:10%;top:23%;transform:rotateX(var(--rx)) rotateY(var(--ry));transform-style:preserve-3d;transition:transform 650ms var(--ease)}
.real-plane{position:absolute;inset:0;background:#10251f;border:1px solid #7fa696;border-radius:7px;box-shadow:0 18px 26px #081d1940;overflow:hidden;transition:transform 850ms var(--spring),opacity 500ms;transform-origin:50% 80%;pointer-events:none}
.real-plane img{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#0e1615;pointer-events:none}
.real-plane>span{display:flex;justify-content:space-between;padding:10px 13px;color:#bdcdc6;font:10px var(--mono)}
.real-plane i{font-style:normal;color:#cde6d7}
.real-plane--pos{z-index:3;transform:translate3d(-1%,8%,45px) rotate(-6deg);pointer-events:auto}
.real-plane--restaurant{z-index:2;transform:translate3d(7%,-9%,-10px) rotate(9deg);opacity:.75}
.real-plane--games{z-index:1;transform:translate3d(-7%,-25%,-60px) rotate(-10deg);opacity:.45}
.hero-stage[data-flow="1"] .real-plane--pos{transform:translate3d(-8%,-26%,-60px) rotate(-12deg);opacity:.45;z-index:1;pointer-events:none}
.hero-stage[data-flow="1"] .real-plane--restaurant{transform:translate3d(-1%,8%,45px) rotate(-5deg);opacity:1;z-index:3;pointer-events:auto}
.hero-stage[data-flow="1"] .real-plane--games{transform:translate3d(7%,-9%,-10px) rotate(10deg);opacity:.75;z-index:2}
.hero-stage[data-flow="2"] .real-plane--pos{transform:translate3d(7%,-9%,-10px) rotate(9deg);opacity:.75;z-index:2;pointer-events:none}
.hero-stage[data-flow="2"] .real-plane--restaurant{transform:translate3d(-8%,-26%,-60px) rotate(-12deg);opacity:.45;z-index:1;pointer-events:none}
.hero-stage[data-flow="2"] .real-plane--games{transform:translate3d(-1%,8%,45px) rotate(-5deg);opacity:1;z-index:3;pointer-events:auto}
.real-plane:focus-visible{outline:3px solid #c3e8d3;outline-offset:2px}
.hero-stage--real .local-tag{bottom:24px;left:26px}
.hero-stage--real .art-word{font-size:160px;top:150px}
.product-capture{display:block;padding:24px 20px 16px;background:#d6dfda;overflow:hidden;perspective:700px}
.product-capture img{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;box-shadow:0 9px 20px #20332c20;transform:rotate(-3deg);transition:transform 650ms var(--ease);border:1px solid #59736a;border-radius:4px}
.product-capture>span{display:flex;justify-content:space-between;margin-top:22px;font:10px var(--mono);color:#334f45}
.product-capture i{font-style:normal}.prod:nth-child(2) .product-capture{background:#eae2cf}.prod:nth-child(3) .product-capture{background:#dfdfe8}
.product-capture:hover img,.product-capture:focus-visible img{transform:rotate(0) translateY(-3px)}
.onboarding-capture{position:relative;padding:26px 20px;background:#dce4df;border:1px solid var(--line);border-radius:8px}
.onboarding-capture a{display:block;transform:perspective(1200px) rotateY(-6deg) rotate(2deg);transition:transform 600ms var(--ease);box-shadow:8px 12px 28px #17382e22}
.onboarding-capture:hover a,.onboarding-capture:focus-within a{transform:none}
.onboarding-capture img{width:100%;border-radius:5px}.onboarding-capture figcaption{font-size:11px;line-height:1.9;color:var(--muted);margin-top:28px}
/* An editorial archive: control rail and content remain separate at every size. */
.real-experience{background:#e0e7e3;border-block:1px solid #c8d3cd}
.real-gallery{border:1px solid #a6bdb2;border-radius:9px;overflow:hidden;background:#f4f9f6;box-shadow:0 20px 50px #153c2e10}
.gallery-toolbar{padding:18px 24px;display:flex;justify-content:space-between;align-items:center;gap:20px;background:#243f36;color:#cee1d7}
.gallery-toolbar p{font-size:11px}.gallery-toolbar .mono{font-size:10px}
.gallery-tabs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-bottom:1px solid var(--line);background:#e7efea}
.gallery-tabs button{min-height:89px;text-align:start;padding:14px 12px;font-size:12px;line-height:1.7;border-inline-end:1px solid #ced7d2;background:transparent;position:relative;transition:background 200ms,color 200ms}
.gallery-tabs button:last-child{border:0}.gallery-tabs button>span{display:block;font:10px var(--mono);margin-bottom:7px;color:#4b6257;direction:ltr;text-align:start}
.gallery-tabs button:hover{background:#d5e1da}.gallery-tabs button[aria-pressed=true]{background:#c2dece;color:#153e30;box-shadow:inset 0 -3px #277359}
.gallery-tabs button:focus-visible{outline-offset:-4px}
.gallery-frame{padding:24px;background:#dae3de;min-width:0}
.gallery-frame>a{display:block;position:relative;background:#0e1317;border-radius:4px;overflow:hidden;border:1px solid #53645e;aspect-ratio:16/9}
.gallery-frame img{display:block;width:100%;height:100%;object-fit:contain;transition:opacity 180ms}
.zoom-hint{position:absolute;inset-inline-end:16px;bottom:16px;padding:9px 14px;font-size:11px;line-height:1.7;border:1px solid #789b8e99;border-radius:4px;background:#152b25;color:#deede5;box-shadow:0 4px 16px #07151038}
.gallery-frame[data-state=loading] img{opacity:.35}.gallery-frame[data-state=error] img{visibility:hidden}
.gallery-frame[data-state=error] .zoom-hint{color:#fee2d2;border-color:#bb8263}
.gallery-caption{display:flex;justify-content:space-between;gap:32px;align-items:start;padding:27px 32px;border-top:1px solid #c8d3cd}
.gallery-caption small{display:block;font:10px var(--mono);color:var(--brand);margin-bottom:9px;direction:ltr;text-align:start}
.gallery-caption h3{font-size:28px}.gallery-caption p{font-size:13px;color:var(--muted);margin-top:8px;max-width:660px}
.gallery-counter{border:1px solid var(--line);padding:10px 12px;border-radius:3px;white-space:nowrap;flex:none}
.media-disclosure{max-width:880px;font-size:11px;line-height:1.9;color:var(--muted);margin-top:22px}

.detail-index{display:grid;grid-template-columns:repeat(3,1fr);border-block:1px solid var(--line)}
.detail-index article{padding:30px 28px 34px;border-inline-end:1px solid var(--line);border-bottom:1px solid var(--line);transition:background .3s}
.detail-index article:nth-child(3n){border-inline-end:0}.detail-index article:nth-child(n+4){border-bottom:0}.detail-index article:hover{background:#dfe8e3}
.detail-index .mono{display:block;margin-bottom:26px;color:#537363}.detail-index h3{font-size:26px}.detail-index p{font-size:13px;margin-top:15px;color:var(--muted)}
/* Diagrams deliberately look like diagrams, not counterfeit software screens. */
.owner-diagram{min-height:450px;border:1px solid #b2c3bb;border-radius:8px;background:radial-gradient(ellipse at 50% 35%,#cce4d6,transparent 62%),#dee7e2;position:relative;padding:28px 30px 32px;text-align:center;overflow:hidden}
.owner-diagram>.mono{display:block;text-align:start;color:#466858;font-size:10px}.owner-orbit{position:relative;height:220px;display:grid;place-items:center;perspective:600px}
.owner-orbit i{position:absolute;width:210px;height:150px;border:1px solid #66937b;border-radius:50%;transform:rotate(-25deg)}
.owner-orbit i:nth-child(2){transform:rotate(30deg);width:150px;height:210px;border-color:#91b9a4}
.owner-orbit b{font:800 46px var(--display);letter-spacing:-.04em;background:#245041;color:#c6e4d3;border-radius:17px;padding:20px;box-shadow:12px 16px 0 #92bda5;transform:rotate(-8deg)}
.owner-endpoints{display:flex;justify-content:center;gap:9px;direction:ltr}.owner-endpoints span{font:10px var(--mono);padding:9px 14px;background:#eaf3ee;border:1px solid #afc3b8;border-radius:3px}
.owner-diagram p{font-size:22px;font-weight:600;margin-top:23px;line-height:1.6}.owner-diagram>small{display:block;font-size:10px;line-height:1.9;color:#4e675a;max-width:370px;margin:18px auto 0}
.restaurant-capture{margin-top:40px;padding:25px;border:1px solid #cbbf9e;background:#e8e1d0;border-radius:8px}
.restaurant-capture a{display:block;position:relative}.restaurant-capture img{width:100%;border-radius:4px;box-shadow:0 10px 24px #5c493d14}.restaurant-capture figcaption{font-size:12px;line-height:1.9;margin-top:23px;color:#6d644e}
/* Engineering: a dimensional core, readable documentation next to the spectacle. */
.engineering-section{background:#152e26;color:#e2ece6;overflow:hidden}
.engineering-section .eyebrow{color:#aacdba}.engineering-section .lede,.engineering-section .media-disclosure{color:#b4c1bc}
.engineering-core{display:grid;grid-template-columns:1fr 1.3fr 1fr;align-items:center;gap:40px;min-height:280px;position:relative;border-block:1px solid #97c3ad38;margin-bottom:40px;direction:ltr}
.core-orbits{position:relative;display:grid;place-items:center;height:270px;perspective:700px;transform-style:preserve-3d}
.core-orbits i{position:absolute;width:205px;height:205px;border:1px solid #81bf9e;border-radius:50%;transform:rotateX(68deg) rotateY(-25deg);box-shadow:0 0 0 12px #77c69c08;animation:orbit-turn 18s linear infinite paused}
.core-orbits i:nth-child(2){transform:rotateX(25deg) rotateY(68deg);border-color:#789c8e;animation-name:orbit-cross;animation-duration:23s}
.core-orbits i:nth-child(3){width:150px;height:150px;border-color:#b6dec7;transform:rotateX(-40deg) rotateY(40deg);animation-name:orbit-inner;animation-duration:15s}
.core-orbits b{font:800 36px var(--display);letter-spacing:-.04em;z-index:1;color:#c7e2d2;background:#173a2e;padding:13px 17px;border:1px solid #5c8771;border-radius:7px;transform:rotate(-7deg);box-shadow:6px 8px 0 #0e201a}
.core-caption{direction:rtl;text-align:start}.core-caption .mono{color:#98c8ae;font-size:10px}.core-caption p{font-family:var(--display);font-size:35px;line-height:1.5;margin-top:18px;font-weight:800}
[dir=ltr] .core-caption{direction:ltr}.core-stack{display:grid;gap:10px;direction:rtl}
.core-stack>span{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:15px 18px;border:1px solid #89b8a235;border-radius:4px;background:#1b382f;font-size:11px;transform:perspective(600px) rotateY(-9deg) rotate(-2deg);transition:transform .5s var(--ease)}
.core-stack>span:nth-child(2){transform:perspective(600px) rotateY(-9deg) rotate(0)}.core-stack>span:nth-child(3){transform:perspective(600px) rotateY(-9deg) rotate(2deg)}
.core-stack:hover>span{transform:none}.core-stack b{font:11px var(--mono);color:#b0cebd;direction:ltr}
.engineering-item{border-bottom:1px solid #97c3ad38}.engineering-item summary{list-style:none;display:grid;grid-template-columns:190px 1fr 32px;gap:26px;align-items:center;padding:28px 0;cursor:pointer}
.engineering-item summary::-webkit-details-marker{display:none}.engineering-item summary>.mono{color:#92c1a9;font-size:10px;text-align:start}
.engineering-item h3{font-size:27px}.engineering-item summary>i{font:26px var(--mono);font-style:normal;font-weight:400;transition:transform .3s var(--ease)}
.engineering-item[open] summary>i{transform:rotate(45deg)}.engineering-item[open] h3{color:#b8d8c6}.engineering-item summary:hover{color:#b8d8c6}
.engineering-item>div{display:grid;grid-template-columns:1.4fr 1fr;gap:50px;padding:0 216px 28px 0;align-items:start}
[dir=ltr] .engineering-item>div{padding:0 0 28px 216px}
.engineering-item p{font-size:14px;color:#b8c7c1}.engineering-item code{font:10px/1.8 var(--mono);color:#b3d2c0;direction:ltr;display:block;border:1px solid #6a988255;border-radius:4px;padding:13px;overflow-wrap:anywhere}
.engineering-section :focus-visible{outline-color:#98d5b3}
/* The large-image viewer is a real dialog; no fake controls or forced zoom. */
.screen-dialog{padding:0;border:1px solid #6b907e;border-radius:8px;max-width:calc(100vw - 48px);width:1400px;max-height:calc(100dvh - 40px);color:#dfe9e3;background:#142620;box-shadow:0 25px 100px #0006;overflow:auto}
.screen-dialog::backdrop{background:#071410eb}.screen-dialog__bar{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:10px 18px;background:#1e382f;color:#bfd1c7;border-bottom:1px solid #5a866f55}
.screen-dialog__bar>span{font-size:12px}.screen-dialog__bar button{width:44px;height:44px;border:1px solid #68937d66;background:#243f36;color:#dfede5;font-size:25px;border-radius:4px}
.screen-dialog__bar button:hover{background:#3c5b4e}.screen-dialog :focus-visible{outline-color:#b8dac6}
.screen-dialog__canvas{max-height:calc(100dvh - 180px);overflow:auto;direction:ltr;overscroll-behavior:contain}
.screen-dialog__canvas>img{display:block;width:100%;height:auto;min-height:120px;object-fit:contain}
.screen-dialog[data-zoom=true] .screen-dialog__canvas>img{width:auto;min-width:100%;max-width:none}
.screen-dialog__bar>div{display:flex;gap:8px;align-items:center}.screen-dialog__bar [data-zoom-viewer]{font:11px var(--mono);width:auto;padding-inline:13px}.screen-dialog__bar [data-zoom-viewer][aria-pressed=true]{background:#aed0bd;color:#15382b}
.screen-dialog__caption{padding:14px 22px;font-size:12px;line-height:1.8}.screen-dialog[data-state=loading] .screen-dialog__canvas>img{opacity:.25}.screen-dialog[data-state=error]>.screen-dialog__caption{color:#ffc0a3}
html:has(.screen-dialog[open]){overflow:hidden}
/* Only compositor properties animate. Scene visibility + user preference gate them. */
@keyframes orbit-turn{to{transform:rotateX(68deg) rotateY(-25deg) rotateZ(360deg)}}
@keyframes orbit-cross{to{transform:rotateX(25deg) rotateY(68deg) rotateZ(-360deg)}}
@keyframes orbit-inner{to{transform:rotateX(-40deg) rotateY(40deg) rotateZ(360deg)}}
@keyframes product-float{0%,100%{translate:0 0}50%{translate:0 -12px}}
@keyframes owner-float{0%,100%{transform:rotate(-8deg) translateY(0)}50%{transform:rotate(-3deg) translateY(-9px)}}
.real-stack{animation:product-float 7s ease-in-out infinite paused}.owner-orbit b{animation:owner-float 7s ease-in-out infinite paused}
html[data-motion=on] .hero-stage[data-visible=true] .real-stack,html[data-motion=on] .owner-diagram[data-visible=true] .owner-orbit b,html[data-motion=on] .engineering-core[data-visible=true] .core-orbits i{animation-play-state:running}
html[data-motion=paused] .real-stack{--rx:0deg;--ry:0deg}
/* Keep the document useful without JS: show links, do not expose dead switches. */
html:not([data-motion]) .flow-switch,html:not([data-motion]) .motion-toggle,html:not([data-motion]) .gallery-tabs{display:none}
.hero-stage--real .motion-toggle,.hero-stage--real .flow-switch button{min-height:44px}
@media(min-width:1600px){.real-art{height:465px}.real-stack{top:25%;width:81%}}
@media(max-width:1150px){.real-art{height:350px}.gallery-tabs{grid-template-columns:repeat(5,1fr)}.gallery-tabs button{min-height:74px;border-bottom:1px solid var(--line)}.engineering-core{gap:25px;grid-template-columns:1fr 1.1fr}.core-stack{display:none}.engineering-item>div{padding-inline-start:0;gap:24px}[dir=ltr] .engineering-item>div{padding-inline-start:0}.engineering-item summary{grid-template-columns:165px 1fr 28px}}
@media(max-width:820px){.real-art{height:430px}.real-stack{max-width:475px;left:50%;margin-left:-237px;top:25%}.prod{display:flex!important}.product-capture{padding:22px}.gallery-caption{padding:24px}.detail-index{grid-template-columns:repeat(2,1fr)}.detail-index article{border-inline-end:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important}.detail-index article:nth-child(2n){border-inline-end:0!important}.detail-index article:nth-last-child(-n+2){border-bottom:0!important}.engineering-item summary{gap:18px;grid-template-columns:130px 1fr 25px}.engineering-item h3{font-size:24px}.engineering-item>div{grid-template-columns:1fr;padding:0 0 25px!important;gap:15px}.engineering-item code{width:fit-content}.engineering-core{grid-template-columns:1fr 1.2fr;gap:25px}.core-caption p{font-size:30px}.owner-diagram{min-height:430px}.restaurant-capture{padding:17px}.screen-dialog{max-width:calc(100vw - 24px)}.real-experience .section-head{gap:24px}}
@media(max-width:540px){.hero-stage--real{border-bottom-left-radius:40px}.real-art{height:290px}.real-stack{width:81%;max-width:none;left:9.5%;margin-left:0;top:25%}.real-plane>span{font-size:10px;padding:8px}.hero-stage--real .local-tag{bottom:13px;left:19px;font-size:10px}.hero-stage--real .art-word{font-size:143px;top:130px}.motion-toggle{font-size:10px;min-height:36px;padding:7px 8px}.hero-stage--real .stage-heading{padding:10px 16px;min-height:58px}.gallery-toolbar{padding:15px;display:block}.gallery-toolbar .mono{font-size:10px}.gallery-toolbar p{font-size:10px;margin-top:8px}.gallery-tabs{display:flex;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:#6c9c83 #e2ebe6}.gallery-tabs button{flex:0 0 130px;min-height:82px;font-size:12px;padding-inline:15px}.gallery-tabs button>span{font-size:10px}.gallery-frame{padding:9px}.zoom-hint{font-size:10px;padding:5px 8px;inset-inline-end:9px;bottom:9px;max-width:80%}.gallery-caption{padding:22px 19px;gap:14px}.gallery-caption h3{font-size:24px}.gallery-caption p{font-size:12px}.gallery-counter{font-size:10px;padding:8px}.media-disclosure{font-size:10px;margin-top:18px}.onboarding-capture{padding:20px 12px}.onboarding-capture figcaption{font-size:10px;margin-top:20px}.product-capture{padding:22px 20px 16px}.product-capture>span{font-size:10px}.detail-index{grid-template-columns:1fr}.detail-index article{padding:23px 4px;border-inline-end:0!important;display:grid;grid-template-columns:30px 1fr;gap:0 13px}.detail-index article:nth-last-child(2){border-bottom:1px solid var(--line)!important}.detail-index .mono{grid-row:1/3;padding-top:8px;margin:0;font-size:10px}.detail-index h3{font-size:24px}.detail-index p{font-size:12px;margin-top:8px}.owner-diagram{padding:23px 18px;min-height:430px}.owner-diagram p{font-size:22px}.owner-diagram>small{font-size:10px}.owner-endpoints span{font-size:10px;padding:8px 12px}.restaurant-capture{padding:10px;margin-top:28px}.restaurant-capture figcaption{font-size:10px;margin:17px 8px 7px}.engineering-core{display:flex;flex-direction:column;gap:0;padding-bottom:35px;margin-bottom:15px;min-height:0}.core-orbits{width:100%;height:260px}.core-caption{text-align:center}.core-caption .mono{font-size:10px}.core-caption p{font-size:30px;margin-top:15px}.engineering-item summary{grid-template-columns:1fr 26px;gap:12px;padding:23px 0}.engineering-item summary>.mono{grid-column:1/-1;font-size:10px}.engineering-item h3{font-size:23px;line-height:1.5}.engineering-item p{font-size:12px;line-height:1.95}.engineering-item code{font-size:10px}.screen-dialog{max-width:calc(100vw - 14px);max-height:calc(100dvh - 20px)}.screen-dialog__bar{padding:8px 10px;gap:10px}.screen-dialog__bar>span{font-size:10px}.screen-dialog__caption{padding:12px;font-size:11px}}
@media(max-width:360px){.real-art{height:260px}.gallery-caption{gap:10px;padding-inline:14px}.gallery-caption h3{font-size:23px}.stage-heading>span:first-child{font-size:10px}}
@media(hover:none){.real-stack{--rx:0deg;--ry:0deg}.product-capture:hover img{transform:rotate(-3deg)}.prod:hover{transform:none}}
@media(prefers-reduced-motion:reduce){.real-stack,.owner-orbit b,.core-orbits i{animation:none!important}.real-stack{transform:none}.real-plane,.product-capture img,.onboarding-capture a{transition:none}.screen-dialog::backdrop{animation:none}}

/* اللقطةُ المعروضةُ عنصرٌ مشترك: تبديلُها يتقاطع في مكانه، وفتحُها يطير إلى العارض ويعود. */
.gallery-frame img{view-transition-name:capture}
::view-transition-old(capture),::view-transition-new(capture){animation-duration:.55s;mix-blend-mode:normal}

/* الصدرُ على الهاتف يُكتب هنا لا في site.css: هذه الورقةُ تُحمَّل بعدها فتغلبها بالتساوي في الخصوصيّة. */
/* ── مشهدُ الصدر على الهاتف: لوحٌ واحدٌ قائمٌ يُقرأ، والآخران ظلّان خلفه — لا ثلاثُ صورٍ مائلةٍ لا تُقرأ ── */
@media(max-width:540px){.real-art{height:250px;perspective:none}.real-stack{width:90%;left:5%;top:6%;transform:none!important}.real-plane{transition:transform 600ms var(--ease),opacity 400ms}.real-plane--pos,.real-plane--restaurant,.real-plane--games{transform:translate3d(0,0,0) rotate(0);opacity:1;z-index:3}.hero-stage[data-flow="0"] .real-plane--restaurant,.hero-stage[data-flow="1"] .real-plane--games,.hero-stage[data-flow="2"] .real-plane--pos{transform:translate3d(-4%,-9%,0) rotate(0);opacity:.35;z-index:2}.hero-stage[data-flow="0"] .real-plane--games,.hero-stage[data-flow="1"] .real-plane--pos,.hero-stage[data-flow="2"] .real-plane--restaurant{transform:translate3d(4%,-18%,0) rotate(0);opacity:.18;z-index:1}.real-plane>span{font-size:10px;padding:8px 10px}.hero-stage--real .art-word{display:none}.motion-toggle{display:none}.hero-stage--real .stage-heading{min-height:48px}}
@media(max-width:540px){.real-plane>span{display:none}}
