import"./modulepreload-polyfill-B5Qt9EMX.js";const t=document.querySelector("[data-imperial-page]");if(t){const i=t.querySelector("[data-imperial-status]"),h=t.querySelector("[data-imperial-drawer]"),o=t.querySelectorAll("[data-imperial-menu]"),s=t.querySelectorAll("[data-imperial-tab]"),m=t.querySelector("[data-imperial-heading]"),u=t.querySelector("[data-imperial-description]"),v=t.querySelector("[data-imperial-card-index]"),w=t.querySelector("[data-imperial-card-heading]"),b=t.querySelector("[data-imperial-card-description]"),g=t.querySelector("[data-imperial-details]");let c=0,r=0,d=-400,l=-400;const y={features:{heading:"Protect the
creative network",description:"Private handoffs for drawings, models and field work. Keep collaboration deliberate across every device, project room and archive.",index:"01 / PRIVATE RELAY",cardHeading:"Move work
with intent",cardDescription:"Control how project files, previews and research circulate through the people you choose."},relay:{heading:"Make every
handoff visible",description:"Bring files, approvals and conversations into one calm layer between studio, site and client rooms.",index:"02 / HANDOFF MAP",cardHeading:"Know where
work travels",cardDescription:"Turn project movement into a readable chain instead of an invisible stream of attachments."},protocol:{heading:"Set the terms
before sharing",description:"Use clear access rules to decide what can move, what can change and what must remain private.",index:"03 / ACCESS PROTOCOL",cardHeading:"Rules that
stay readable",cardDescription:"Make permission choices visible to every collaborator before material leaves the project room."},archive:{heading:"Keep a record
worth returning to",description:"Preserve the decisions behind a project so future work begins with context, not reconstruction.",index:"04 / PROJECT MEMORY",cardHeading:"Keep the
right trace",cardDescription:"Retain decisive context while keeping experimental drafts and private notes in their intended place."}},f=e=>{window.clearTimeout(c),i.textContent=e,i.classList.add("is-visible"),c=window.setTimeout(()=>i.classList.remove("is-visible"),3e3)},n=e=>{t.classList.toggle("is-menu-open",e),h.setAttribute("aria-hidden",String(!e)),o.forEach(a=>a.setAttribute("aria-expanded",String(e)))},S=e=>{const a=y[e];a&&(m.innerHTML=a.heading,u.textContent=a.description,v.textContent=a.index,w.innerHTML=a.cardHeading,b.textContent=a.cardDescription,s.forEach(p=>p.classList.toggle("is-active",p.dataset.imperialTab===e)),n(!1))},x=()=>{r=0,t.style.setProperty("--imperial-pointer-x",`${d}px`),t.style.setProperty("--imperial-pointer-y",`${l}px`)};window.addEventListener("pointermove",e=>{d=e.clientX,l=e.clientY,r||(r=window.requestAnimationFrame(x))},{passive:!0}),o.forEach(e=>e.addEventListener("click",()=>n(!t.classList.contains("is-menu-open")))),s.forEach(e=>e.addEventListener("click",()=>S(e.dataset.imperialTab))),t.querySelectorAll("[data-imperial-contact]").forEach(e=>{e.addEventListener("click",()=>f("X19 Imperial is a concept page. Contact details can be connected here when the service is ready."))}),t.querySelector("[data-imperial-scroll]")?.addEventListener("click",()=>g.scrollIntoView({behavior:"smooth",block:"start"})),window.addEventListener("keydown",e=>{e.key==="Escape"&&n(!1)})}