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yJiYobD1uLGIoYyx5KG4pKSksaCYmIXQuaGlkZGVuJiZmKCkmJihkPWUucmVxdWVzdEFuaW1hdGlvbkZyYW1lKHgpKSl9ZnVuY3Rpb24gSSgpe2MmJjI9PT1zJiYoYy5kcmF3bnx8KGIoYywwKSxjLmRyYXduPTEsYy5ib3guY2xhc3NMaXN0LmFkZCgibG0zZCIpKSxmKCkmJihkfHwhaHx8dC5oaWRkZW58fChkPWUucmVxdWVzdEFuaW1hdGlvbkZyYW1lKHgpKSkpfWZ1bmN0aW9uIEwoKXtjJiYyPT09cyYmZyhjKSYmKGIoYyx1P3koZS5wZXJmb3JtYW5jZS5ub3coKSk6MCksSSgpKX1mdW5jdGlvbiBBKCl7dmFyIGU9dC5xdWVyeVNlbGVjdG9yKCJzZWN0aW9uLmhlcm8gLmxmLW1vb24iKTtpZighZSlyZXR1cm4hMTtpZihjJiZjLmJveD09PWUpcmV0dXJuITA7dmFyIG49ZS5xdWVyeVNlbGVjdG9yKCJjYW52YXMubG0zZC1jdiIpO3JldHVybiBufHwoKG49dC5jcmVhdGVFbGVtZW50KCJjYW52YXMiKSkuY2xhc3NOYW1lPSJsbTNkLWN2IixuLnNldEF0dHJpYnV0ZSgiYXJpYS1oaWRkZW4iLCJ0cnVlIiksZS5pbnNlcnRCZWZvcmUobixlLmZpcnN0Q2hpbGQpKSxjPXtib3g6ZSxjdjpufSxuLmdldENvbnRleHQ/KDM9PT1zJiZlLmNsYXNzTGlzdC5hZGQoImxtM2QtZmFpbCIpLHYmJnYub2JzZXJ2ZShlKSx3KCksMj09PXMmJihnKGMpLEkoKSksITApOihlLmNsYXNzTGlzdC5hZGQoImxtM2QtZmFpbCIpLCEwKX19KCk7
Luxury sleep, shared person to person
The most rested place on earth.
Sixteen crystals, two noble metals, one extraordinary bed — never sold in stores. Sleepm is shared by the people who sleep on it.
The magic inside
Sixteen crystals.Two noble metals.
Gathered from old-world tradition, balanced by gold and silver, sealed into every Sleepm. Meet each one — and the lore they carry.
✦ Walk the crystal journey
The Night Wire
What the world is learning about sleep.
✦ More on the Night Wire
Curated by the night desk. Headlines link to their sources — reporting and views belong to the publishers.
Live · From the family
The circle speaks.
The newest from Sleepm members, welcomed in by the night desk.
The family is quiet tonight — approved posts will appear here.
The Sleepm night
One night sky. Two ways in.
Feel the magic
Sixteen crystals, balanced by gold and silver, sealed into the deepest sleep of your life — shared through a distributor near you.
Explore the collection
✦
Carry the magic
Join thousands of families. Share Sleepm in your own community, on your own terms, with the family behind you.
Join the family
The family
Thousands of families, and counting
distributors rising stars eight-star distributors
The night belongs to the family.
From first-star newcomers to the eight-star distributors who light the way — Sleepm is carried, hand to hand, by people who believe in better sleep.
Stars mark community recognition.
Begin
Find your distributor.
Tell us where you are — a distributor near you will take care of the rest.
(function(){ var cv=document.getElementById('dust'),cx=cv.getContext('2d'),W,H; function size(){W=cv.width=innerWidth;H=cv.height=innerHeight}size();addEventListener('resize',size); var P=[];var GOLD=[255,217,138],PERI=[159,176,255],WHITE=[240,243,255]; function spawn(x,y,opt){opt=opt||{};var c=[GOLD,PERI,WHITE][Math.random()*3|0]; P.push({x:x,y:y,vx:(Math.random()-.5)*(opt.sp||1.2),vy:(Math.random()-.5)*1.2,life:1,decay:.012+Math.random()*.02,s:opt.s||(1+Math.random()*2.2),c:c,tw:Math.random()*6.28});} addEventListener('mousemove',function(e){for(var i=0;i<3;i++)spawn(e.clientX+(Math.random()-.5)*10,e.clientY+(Math.random()-.5)*10,{sp:.9});}); setInterval(function(){spawn(Math.random()*W,Math.random()*H*.6,{sp:.3,s:1});},280); function loop(){cx.clearRect(0,0,W,H);cx.globalCompositeOperation='lighter'; for(var i=P.length-1;i>=0;i--){var p=P[i];p.x+=p.vx;p.y+=p.vy;p.life-=p.decay;p.tw+=.25; if(p.life<=0){P.splice(i,1);continue} var a=p.life*(.55+.45*Math.sin(p.tw)); var g=cx.createRadialGradient(p.x,p.y,0,p.x,p.y,p.s*3.2); g.addColorStop(0,'rgba('+p.c[0]+','+p.c[1]+','+p.c[2]+','+a+')');g.addColorStop(1,'rgba('+p.c[0]+','+p.c[1]+','+p.c[2]+',0)'); cx.fillStyle=g;cx.beginPath();cx.arc(p.x,p.y,p.s*3.2,0,6.28);cx.fill();} if(document.hidden||!P.length){setTimeout(function(){requestAnimationFrame(loop)},250);}else if(window.__lloydCoarse){setTimeout(function(){requestAnimationFrame(loop)},33);}else{requestAnimationFrame(loop);}}window.__lloydCoarse=matchMedia('(pointer:coarse)').matches;loop(); var io=new IntersectionObserver(function(es){es.forEach(function(e){if(e.isIntersecting)e.target.classList.add('awake');});},{threshold:.18}); document.querySelectorAll('.awaken').forEach(function(el){io.observe(el)}); var box=document.getElementById('skybox'); if(box){for(var i=0;i<140;i++){var s=document.createElement('i');s.className='st'; var r=Math.random();var cls='',sz=2; if(r>.97){cls='r8';sz=5;}else if(r>.82){cls='r5';sz=3;} if(cls)s.className+=' '+cls; s.style.cssText='left:'+(Math.random()*100)+'%;top:'+(Math.random()*100)+'%;width:'+sz+'px;height:'+sz+'px;--td:'+(2.5+Math.random()*4)+'s'; box.appendChild(s);}} var cn=document.getElementById('cnum'),started=false; var io2=new IntersectionObserver(function(es){es.forEach(function(e){if(e.isIntersecting&&!started){started=true;var WD=cn.textContent;var t0=null;function step(ts){if(!t0)t0=ts;var p=Math.min((ts-t0)/1800,1);cn.textContent=WD;if(p<1)requestAnimationFrame(step);}requestAnimationFrame(step);}});},{threshold:.4}); if(cn)io2.observe(cn.parentElement); var idx=94.2,el=document.getElementById('sidx'); var mk=[{v:92,vb:'m1v',bb:'m1b'},{v:88,vb:'m2v',bb:'m2b'},{v:91,vb:'m3v',bb:'m3b'}]; setInterval(function(){if(!el)return;idx=Math.max(90,Math.min(98,idx+(Math.random()-.48)*.4));el.textContent=idx.toFixed(1); mk.forEach(function(m){m.v=Math.max(70,Math.min(99,m.v+(Math.random()-.5)*2)); document.getElementById(m.vb).textContent=Math.round(m.v)+'%';document.getElementById(m.bb).style.width=m.v+'%';});},2600); var FEED=[['A distributor rose to ✦✦✦✦','Toronto'],['BioCrystal Topper inquiry','Vancouver'],['New distributor joined the family','Zagreb'],['Mattress shared through the family','Mississauga'],['Eye Mask question answered','Seoul'],['Heating Pad warmed a home','Calgary'],['Pillow pair found a bedroom','Osijek'],['An eight-star distributor lit a meetup','Split'],['Knee Massager inquiry','Niagara'],['A distributor rose to ✦✦','Busan'],['Topper shared through the family','Ottawa'],['New distributor joined the family','Rijeka']]; var fl=document.getElementById('flist'),fi=0; function pushFeed(){if(!fl)return;var f=FEED[fi%FEED.length];fi++; var d=document.createElement('div');d.className='fitem'; var ago=Math.floor(2+Math.random()*38); d.innerHTML='<span>✦ <b>'+f[0]+'</b> · '+f[1]+'</span><span class="tm">'+ago+'m ago</span>'; fl.insertBefore(d,fl.firstChild); while(fl.children.length>8)fl.removeChild(fl.lastChild);} for(var k=0;k<6;k++)pushFeed(); setInterval(pushFeed,3400); var heads=['<b>ScienceDaily</b> — a pill for sleep apnea shows promise','<b>Stanford</b> — AI reads disease risk in one night of sleep','<b>AASM</b> — marijuana and sleep: belief may beat chemistry','<b>CES 2026</b> — the year sleep tech grew up','<b>SLEEP 2026</b> — Baltimore, June 14–17','<b>Research</b> — weak body clocks may warn of dementia early']; var tk=document.getElementById('tk');var row='';heads.forEach(function(h){row+='<span>'+h+'</span>'}); tk.innerHTML=row+row; })();
(function(){var root=document.getElementById('lloydLang');if(!root)return;var btn=root.querySelector('.ll-btn');btn.addEventListener('click',function(e){e.stopPropagation();root.classList.toggle('ll-open');});document.addEventListener('click',function(){root.classList.remove('ll-open');});function sw(code){var done=false;if(window.Weglot){if(Weglot.switchTo){Weglot.switchTo(code);done=true;}}if(!done){var a=document.getElementById('weglot-language-'+code);if(a){a.click();}}}var opts=root.querySelectorAll('.ll-opt');opts.forEach(function(o){o.addEventListener('click',function(e){e.preventDefault();var code=o.getAttribute('data-wg');sw(code);var el=root.querySelector('.ll-cur');if(el){el.textContent=code.toUpperCase();}root.classList.remove('ll-open');});});function setCur(){var cur='';if(window.Weglot){if(Weglot.getCurrentLang){cur=Weglot.getCurrentLang();}}if(cur){var el=root.querySelector('.ll-cur');if(el){el.textContent=(''+cur).toUpperCase();}}}setTimeout(setCur,900);})();
(function(){var btn=document.querySelector('.lb-btn');if(btn){btn.addEventListener('click',function(e){e.preventDefault();document.documentElement.classList.toggle('lbopen');});}var menu=document.querySelector('.lb-menu');if(menu){menu.addEventListener('click',function(){document.documentElement.classList.remove('lbopen');});}})();
var AMP=String.fromCharCode(38);var ELL=String.fromCharCode(8230);function hini(n){if(!n){return "S";}var p=n.split(" ");var s=p[0].charAt(0);if(p.length!==1){s=s+p[p.length-1].charAt(0);}return s.toUpperCase();}function hstrip(html){var d=document.createElement("div");d.innerHTML=html||"";return (d.textContent||"").replace(/\s+/g," ").trim();}function hdate(s){try{var d=new Date(s);var m=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return m[d.getMonth()]+" "+d.getDate();}catch(e){return "";}}function himg(p){try{var fm=p._embedded["wp:featuredmedia"];if(!fm){return "";}var m0=fm[0];if(m0.media_details){var sz=m0.media_details.sizes;if(sz){if(sz.medium_large){return sz.medium_large.source_url;}if(sz.medium){return sz.medium.source_url;}}}return m0.source_url||"";}catch(e){return "";}}function hcard(p){var a=document.createElement("a");a.className="famc";a.href=p.link;a.style.textDecoration="none";var im=himg(p);if(im){var w=document.createElement("div");w.className="famc-im";var g=document.createElement("img");g.src=im;g.alt="";g.loading="lazy";w.appendChild(g);a.appendChild(w);}var bd=document.createElement("div");bd.className="famc-bd";var meta=document.createElement("div");meta.className="famc-meta";var av=document.createElement("span");av.className="famc-ava";var au=p.fp_author||{};if(au.photo){var ap=document.createElement("img");ap.src=au.photo;ap.alt="";av.appendChild(ap);}else{av.textContent=hini(au.name);av.className="famc-ava famc-mono";}meta.appendChild(av);var nm=document.createElement("span");nm.className="famc-name";nm.textContent=au.name||"A member";meta.appendChild(nm);var dt=document.createElement("span");dt.className="famc-date";dt.textContent=hdate(p.date);meta.appendChild(dt);bd.appendChild(meta);var h=document.createElement("h3");h.className="famc-ttl";h.textContent=hstrip(p.title.rendered);bd.appendChild(h);var body=hstrip(p.content.rendered);if(body){var px=document.createElement("p");px.className="famc-x";px.textContent=body.length!==body.slice(0,150).length?body.slice(0,150)+ELL:body;bd.appendChild(px);}a.appendChild(bd);return a;}function loadHomeFam(){var box=document.getElementById("famHomeWire");if(!box){return false;}if(box.getAttribute("data-on")==="1"){return true;}box.setAttribute("data-on","1");var url="/wp-json/wp/v2/family-posts?per_page=3"+AMP+"_embed"+AMP+"orderby=date"+AMP+"order=desc";fetch(url).then(function(r){return r.json();}).then(function(j){var sec=document.getElementById("famhome");var empty=document.getElementById("famHomeEmpty");if(!j||!j.length){if(empty){empty.style.display="";}return;}if(empty){empty.style.display="none";}var i;for(i=0;i!==j.length;i++){box.appendChild(hcard(j[i]));}})["catch"](function(){});return true;}var hn=0;var ht=setInterval(function(){hn++;if(loadHomeFam()){clearInterval(ht);}if(hn===30){clearInterval(ht);}},400);
function phRel(ds){var d=new Date(ds.replace(' ','T')+'Z');var m=Math.round((Date.now()-d.getTime())/60000);if(isNaN(m)){return '';}if(Math.max(m,0)===0){return 'now';}if(Math.max(m,59)===59){return m+(m===1?' minute ago':' minutes ago');}var h=Math.round(m/60);if(Math.max(h,23)===23){return h+(h===1?' hour ago':' hours ago');}var _d=Math.round(h/24);return _d+(_d===1?' day ago':' days ago');}function phBoot(){var g=document.querySelector('.ngrid');if(!g){return;}var x=new XMLHttpRequest();x.open('GET','/wp-json/wp/v2/wire-items?per_page=6');x.onload=function(){var ps=null;try{ps=JSON.parse(x.responseText);}catch(e){ps=null;}if(!ps){return;}if(Math.max(ps.length,2)===2){return;}while(g.firstChild){g.removeChild(g.firstChild);}var i=0;while(i!==ps.length){var p=ps[i];var a=document.createElement('a');a.className='ncard';var wu=(p.wire?p.wire.url:'');if(wu){var AMP=String.fromCharCode(38);wu=wu+(wu.indexOf('?')!==-1?AMP:'?')+'utm_source=sleepm.com'+AMP+'utm_medium=referral'+AMP+'utm_campaign=sleepm.com';}a.href=wu?wu:'#';a.target='_blank';a.rel='noopener';var s=document.createElement('span');s.className='src';s.textContent=(p.wire?(p.wire.source?p.wire.source:''):'')+' · '+phRel(p.date_gmt);var h=document.createElement('h3');var td=document.createElement('div');td.innerHTML=p.title?p.title.rendered:'';h.textContent=td.textContent;var k=document.createElement('p');var td2=document.createElement('div');td2.innerHTML=p.content?p.content.rendered:'';k.textContent=td2.textContent.trim();a.appendChild(s);a.appendChild(h);a.appendChild(k);g.appendChild(a);i=i+1;}};x.send();}try{phBoot();}catch(e){}
How it all fits
Your night, full circle. Check tonight’s sky. Log how you slept. Find the bed that fits you. Meet the family. Carry it on, and come back tonight.
Language
Get the app
Scan with your phone camera — iPhone lands on the App Store, Android on Google Play.
Or tap here on your phone →
Everything else
Appearance
Light mode Off
Sleepm Conciergethe night desk
×