/* بلسم — قالب متجر عناية · shared styles */
@font-face{font-family:Reem;src:url(../fonts/ReemKufi.ttf) format('truetype');font-weight:400 700;font-display:block}
:root{--c1:#7cc4ff;--c2:#c9e8ff;--ink:#1b1440;--mute:rgba(27,20,64,.72);--lemon:#ffe95c;--pink:#ff4fa6;--card:#fffdfb}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--c1)}
body{font-family:Reem,system-ui,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased;background:var(--c1);overflow-x:hidden}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}

/* ---------------- hero panel ---------------- */
.panel{position:relative;margin:12px;height:calc(100svh - 24px);min-height:560px;border-radius:34px;overflow:hidden;
  background:radial-gradient(120% 90% at 70% 10%,var(--c2),var(--c1) 70%);
  box-shadow:0 30px 80px -40px rgba(27,20,64,.55),inset 0 0 0 1px rgba(255,255,255,.35)}
.panel::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.22;mix-blend-mode:soft-light;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E")}

nav{position:absolute;z-index:10;top:18px;left:18px;right:18px;display:flex;align-items:center;gap:14px}
.logo{width:96px;height:46px;display:block}
.links{display:flex;gap:4px;padding:5px;border-radius:999px;background:rgba(255,255,255,.35);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)}
.links a{font-size:14px;padding:8px 15px;border-radius:999px;color:var(--mute);transition:background .3s,color .3s}
.links a.on{background:var(--ink);color:#fff}
.sp{flex:1}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font:inherit;font-weight:700;font-size:15px;border:0;cursor:pointer;padding:12px 20px;border-radius:999px;background:var(--lemon);color:var(--ink);
  box-shadow:0 10px 24px -10px rgba(27,20,64,.45),inset 0 -3px 0 rgba(0,0,0,.08),inset 0 2px 0 rgba(255,255,255,.7);transition:transform .2s}
.btn:active{transform:scale(.97)}
.btn.ghost{background:rgba(255,255,255,.55);box-shadow:inset 0 0 0 1px rgba(255,255,255,.7)}
.btn.dark{background:var(--ink);color:#fff;box-shadow:0 10px 24px -10px rgba(27,20,64,.6)}
.cart{position:relative;width:46px;height:46px;padding:0}
.cart i{position:absolute;top:-4px;left:-4px;min-width:20px;height:20px;border-radius:10px;background:var(--pink);color:#fff;font-size:11px;font-style:normal;display:grid;place-items:center;padding:0 5px}
.cart i:empty{display:none}

/* giant inflated word */
.word{position:absolute;z-index:1;left:2%;right:2%;top:8%;height:31%;display:flex;justify-content:center;pointer-events:none}
.word svg{height:100%;width:100%;overflow:visible;transition:opacity .4s,transform .6s cubic-bezier(.2,1.6,.4,1)}
.word.swap svg{opacity:0;transform:scale(.8)}

/* stage with the 3D film */
.stage{position:absolute;z-index:3;left:50%;top:33%;height:min(64%,760px);aspect-ratio:9/16;transform:translate(-50%,0) rotate(-3deg);
  border-radius:30px;overflow:hidden;background:#efe9df;box-shadow:0 50px 90px -40px rgba(27,20,64,.7),0 0 0 6px rgba(255,255,255,.6)}
.stage canvas,.stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

.fan{position:absolute;z-index:2;width:clamp(120px,13vw,200px);aspect-ratio:3/4;border-radius:22px;overflow:hidden;
  box-shadow:0 30px 50px -26px rgba(27,20,64,.6),0 0 0 4px rgba(255,255,255,.55);animation:bob 6s ease-in-out infinite}
.fan img{width:100%;height:100%;object-fit:cover}
.f1{left:calc(50% - 25vw);top:46%;rotate:-11deg}
.f2{left:calc(50% - 16vw);top:60%;rotate:7deg;animation-delay:-2s}
.f3{right:calc(50% - 26vw);top:42%;rotate:9deg;animation-delay:-4s}
@keyframes bob{50%{translate:0 -12px}}
.sticker{position:absolute;z-index:4;right:calc(50% - 21vw);top:62%;width:clamp(130px,12vw,190px);aspect-ratio:1;border-radius:26px;background:var(--lemon);
  rotate:-8deg;display:grid;place-items:center;text-align:center;padding:14px;box-shadow:0 26px 40px -22px rgba(27,20,64,.55),inset 0 -6px 0 rgba(0,0,0,.06)}
.sticker b{display:block;font-size:clamp(22px,2.2vw,32px);line-height:1.1}
.sticker span{font-size:13px;opacity:.75}

.copy{position:absolute;z-index:5;right:4%;bottom:7%;width:min(330px,28vw);transition:opacity .4s,transform .5s}
.copy small{display:inline-block;font-size:12px;padding:5px 12px;border-radius:999px;background:rgba(255,255,255,.55);margin-bottom:10px}
.copy h1{font-size:clamp(24px,2.4vw,34px);line-height:1.3}
.copy p{margin:8px 0 16px;line-height:1.8;font-size:15px;color:var(--mute)}
.row{display:flex;gap:8px;flex-wrap:wrap}
.swap .copy,.copy.swap{opacity:0;transform:translateY(14px)}
.side{position:absolute;z-index:5;left:4%;bottom:7%;width:min(280px,24vw)}
.mail{display:flex;align-items:center;gap:6px;padding:6px;border-radius:999px;background:rgba(255,255,255,.75)}
.mail input{flex:1;min-width:0;border:0;background:none;font:inherit;font-size:14px;padding:0 12px;color:var(--ink);outline:none}
.mail button{width:40px;height:40px;border-radius:50%;border:0;background:var(--ink);color:#fff;font-size:18px;cursor:pointer}
.side p{font-size:13px;margin:0 6px 8px;opacity:.75}
.next{position:absolute;z-index:6;left:50%;bottom:16px;transform:translateX(-50%);font-size:13px;padding:9px 16px;border-radius:999px;background:rgba(255,255,255,.6);box-shadow:inset 0 0 0 1px rgba(255,255,255,.8);white-space:nowrap}
.next:empty{display:none}
.busy .next,.busy .copy,.busy .side{pointer-events:none}

/* ---------------- content below the hero ---------------- */
main{max-width:1180px;margin:0 auto;padding:30px 20px 10px}
.sec{padding:60px 0 20px}
.sec-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:24px;flex-wrap:wrap}
.sec-head h2{font-size:clamp(28px,4vw,44px);line-height:1.2}
.sec-head p{color:var(--mute);max-width:520px;line-height:1.8}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}
.pcard{position:relative;border-radius:26px;background:var(--card);overflow:hidden;box-shadow:0 24px 50px -34px rgba(27,20,64,.55);display:flex;flex-direction:column;transition:transform .35s}
.pcard:hover{transform:translateY(-4px) rotate(-.6deg)}
.pcard .ph{aspect-ratio:4/5;background:#efe9df;overflow:hidden}
.pcard .ph img{width:100%;height:100%;object-fit:cover;transition:transform .6s}
.pcard:hover .ph img{transform:scale(1.04)}
.pcard .tag{position:absolute;top:12px;right:12px;background:var(--lemon);font-size:12px;padding:4px 10px;border-radius:999px}
.pcard .bd{padding:14px 16px 16px;display:flex;flex-direction:column;gap:6px;flex:1}
.pcard h3{font-size:18px}
.pcard p{font-size:13.5px;color:var(--mute);line-height:1.7;flex:1}
.pcard .pr{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px}
.pcard .pr b{font-size:18px}
.pcard .add{padding:9px 14px;font-size:13px}
.slot{border-radius:26px;border:2.5px dashed rgba(27,20,64,.28);background:rgba(255,255,255,.28);min-height:320px;display:grid;place-items:center;text-align:center;padding:20px;color:var(--mute)}
.slot b{display:grid;place-items:center;width:56px;height:56px;margin:0 auto 10px;border-radius:50%;background:rgba(255,255,255,.7);font-size:28px;color:var(--ink)}
.slot small{display:block;font-size:12px;margin-top:6px;opacity:.8}

.detail{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:center}
.detail .ph{border-radius:30px;overflow:hidden;box-shadow:0 30px 60px -36px rgba(27,20,64,.6)}
.detail h2{font-size:clamp(30px,4vw,46px)}
.detail .price{font-size:28px;margin:6px 0 14px}
.detail p{color:var(--mute);line-height:1.9}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 22px}
.chips span{font-size:13px;padding:7px 13px;border-radius:999px;background:rgba(255,255,255,.65)}
.qty{display:inline-flex;align-items:center;border-radius:999px;background:rgba(255,255,255,.7);padding:4px}
.qty button{width:38px;height:38px;border:0;border-radius:50%;background:#fff;font:inherit;font-size:18px;cursor:pointer}
.qty span{min-width:36px;text-align:center}

.cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.box{padding:24px;border-radius:24px;background:rgba(255,255,255,.55)}
.box h3{font-size:20px;margin-bottom:6px}.box p{color:var(--mute);line-height:1.8}
.box .ico{font-size:26px;margin-bottom:10px}

footer{text-align:center;padding:40px 20px calc(30px + env(safe-area-inset-bottom));color:var(--mute);font-size:13px}
footer .row{justify-content:center;margin-bottom:12px}

.toast{position:fixed;z-index:99;left:50%;bottom:24px;transform:translate(-50%,120px);background:var(--ink);color:#fff;padding:12px 20px;border-radius:999px;font-size:14px;transition:transform .5s cubic-bezier(.2,1.4,.4,1)}
.toast.on{transform:translate(-50%,0)}

@media (max-width:820px){
  .panel{margin:8px;height:calc(100svh - 16px);border-radius:26px}
  nav{top:12px;left:12px;right:12px;gap:8px}.links{display:none}.logo{width:80px;height:40px}
  .word{top:9%;height:17%;left:3%;right:3%}
  .stage{height:auto;width:min(56vw,300px);top:25%}
  .fan,.side{display:none}
  .sticker{right:auto;left:5%;top:27%;width:92px;border-radius:18px;padding:8px}.sticker b{font-size:17px}.sticker span{font-size:10px}
  .copy{left:6%;right:6%;width:auto;bottom:calc(52px + env(safe-area-inset-bottom));text-align:center}
  .copy small{display:none}.copy h1{font-size:22px}.copy p{font-size:14px;margin:6px 0 12px}.copy .row{justify-content:center}
  .next{bottom:12px}
  .detail{grid-template-columns:1fr}
  .grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .pcard .bd{padding:10px 12px 12px}.pcard h3{font-size:15px}.pcard p{display:none}.pcard .pr{flex-direction:column;align-items:stretch}.pcard .add{width:100%}
  .slot{min-height:240px}
}
@media (max-width:820px) and (max-height:700px){.word{height:14%}.stage{width:min(48vw,240px);top:23%}.copy p{display:none}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ================= landing (collection page, BE layout) ================= */
.panel{transition:background .6s}
.stage{transition:top .9s cubic-bezier(.2,.9,.2,1),height .9s cubic-bezier(.2,.9,.2,1),opacity .6s,transform .9s cubic-bezier(.2,.9,.2,1)}
.home .stage,.landing .stage{opacity:0;pointer-events:none;transform:translate(-50%,0) rotate(-3deg) scale(.6);top:30%}
.home.launch .stage,.landing.launch .stage{opacity:1;transform:translate(-50%,0) rotate(0) scale(1);top:6%;height:88%}
.landing .word,.landing .sticker,.landing .copy,.home .word,.home .sticker,.home .copy{display:none}

.landing-in{position:absolute;inset:0;padding:clamp(80px,12vh,120px) clamp(20px,7vw,120px) 70px;display:flex;flex-direction:column;justify-content:center;gap:clamp(18px,3vh,34px);transition:opacity .5s,transform .7s}
.landing.launch .landing-in{opacity:0;transform:scale(.96)}
.home.launch #extra{opacity:0;transition:opacity .5s}
.tagline{display:flex;align-items:center;gap:12px;font-size:14px;color:var(--mute);align-self:flex-start}
.tagline i{display:block;width:clamp(50px,9vw,130px);height:1.5px;background:var(--ink)}
.headline{font-size:clamp(24px,3.3vw,50px);line-height:1.25;font-weight:700;max-width:1100px}
.headline em{font-style:normal}.pk{color:var(--pink)}.bl{color:#4aa6ff}
.pw{display:inline-block;vertical-align:-.28em;height:2.1em;width:3.6em;margin-left:.15em}
.pw svg{height:100%;width:100%;overflow:visible}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(10px,1.6vw,22px)}
.ncard{position:relative;display:block;aspect-ratio:4/5;border-radius:24px;overflow:hidden;background:#efe9df;box-shadow:0 26px 50px -34px rgba(27,20,64,.55);transition:transform .45s cubic-bezier(.2,1.4,.4,1)}
.ncard:hover{transform:translateY(-6px) rotate(-1deg)}
.ncard img{width:100%;height:100%;object-fit:cover}
/* notched label: page-coloured tab with inverted rounded corners */
.ncard .lab{position:absolute;right:0;background:var(--c1);padding:10px 16px 12px;font-size:clamp(14px,1.3vw,20px);line-height:1.25;color:var(--ink)}
.ncard .lab b{display:block;font-size:.8em;color:var(--pink)}
.ncard.t .lab{top:0;border-bottom-left-radius:22px}
.ncard.b .lab{bottom:0;border-top-left-radius:22px}
.ncard .lab::before,.ncard .lab::after{content:"";position:absolute;width:22px;height:22px;pointer-events:none}
.ncard.t .lab::before{top:0;left:-22px;background:radial-gradient(circle at 0 100%,transparent 21.5px,var(--c1) 22px)}
.ncard.t .lab::after{bottom:-22px;right:0;background:radial-gradient(circle at 0 100%,transparent 21.5px,var(--c1) 22px)}
.ncard.b .lab::before{bottom:0;left:-22px;background:radial-gradient(circle at 0 0,transparent 21.5px,var(--c1) 22px)}
.ncard.b .lab::after{top:-22px;right:0;background:radial-gradient(circle at 0 0,transparent 21.5px,var(--c1) 22px)}
.next.go{background:var(--ink);color:#fff;font-size:15px;padding:12px 22px;box-shadow:0 12px 30px -12px rgba(27,20,64,.6)}
@media (max-width:820px){
  .landing-in{padding:76px 16px 70px;justify-content:flex-start;gap:14px;overflow-y:auto}
  .headline{font-size:clamp(20px,5.6vw,28px)}
  .cards{grid-template-columns:repeat(2,1fr);gap:10px}
  .ncard{border-radius:18px}.ncard .lab{padding:7px 11px 9px;font-size:13px}
  .home.launch .stage,.landing.launch .stage{top:8%;height:auto;width:min(80vw,420px)}
}
@media (max-width:820px) and (max-height:760px){.cards .ncard:nth-child(n+3){display:none}}

/* ================= home (PERSONAL layout) ================= */
.home .links{display:none}
.home nav .btn:not(.cart){display:none}
.vlinks{position:absolute;z-index:6;top:76px;right:clamp(130px,16vw,260px);list-style:none;border-right:2px solid var(--ink);padding-right:12px;display:grid;gap:4px}
.home .vlinks{top:22px}
.vlinks a{font-size:14px;font-weight:700;color:var(--ink);opacity:.82}.vlinks a:hover{opacity:1}
.topleft{position:absolute;z-index:6;top:22px;left:clamp(70px,6vw,110px);width:min(380px,30vw);display:grid;gap:12px}
.tri{display:flex;gap:10px;height:44px}.tri span{flex:1;display:block}.tri svg{width:100%;height:100%;overflow:visible}
.pinkmail{background:#fff;padding:7px}.pinkmail button{background:var(--pink)}
.lead{position:absolute;z-index:5;right:5%;top:36%;width:min(470px,34vw)}
.lead .big{display:block;height:clamp(80px,13vh,140px);width:100%}.lead .big svg{width:100%;height:100%;overflow:visible}
.lead p{font-size:15px;line-height:1.8;max-width:300px;margin:6px 0 14px}
.thumbs{display:flex;gap:8px}.thumbs a{width:clamp(80px,8vw,130px);aspect-ratio:4/3;border-radius:12px;overflow:hidden;box-shadow:0 12px 24px -14px rgba(27,20,64,.6)}
.thumbs img{width:100%;height:100%;object-fit:cover}
.pick{position:absolute;z-index:6;left:5%;top:34%;width:clamp(150px,14vw,230px);display:block}
.pick .ph{position:relative;display:block;aspect-ratio:4/5;border-radius:16px;overflow:hidden;box-shadow:0 20px 40px -22px rgba(27,20,64,.6)}
.pick img{width:100%;height:100%;object-fit:cover}
.explore{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:58%;aspect-ratio:1;border-radius:50%;border:1.5px solid #fff;display:grid;place-items:center;color:#fff;font-size:15px;backdrop-filter:blur(2px);background:rgba(255,255,255,.08);transition:transform .4s}
.pick:hover .explore{transform:translate(-50%,-50%) scale(1.08)}
.pick small{display:block;font-size:12px;margin-top:8px;opacity:.7}.pick b{font-size:17px}
.hero-obj{position:absolute;z-index:4;left:50%;bottom:0;transform:translateX(-50%);height:86%;aspect-ratio:9/16;border-radius:32px 32px 0 0;overflow:hidden;box-shadow:0 0 0 6px rgba(255,255,255,.55),0 40px 90px -30px rgba(27,20,64,.6)}
.hero-obj img{width:100%;height:100%;object-fit:cover}
.bigword{position:absolute;z-index:3;left:1%;right:1%;bottom:-3%;height:44%}
.bigword svg{width:100%;height:100%;overflow:visible}
.home .bigword{z-index:3}
@media (max-width:820px){
  .vlinks,.topleft .tri{display:none}
  .topleft{top:auto;bottom:16px;left:5%;right:5%;width:auto;z-index:7}
  .lead{right:5%;left:5%;top:70px;width:auto;text-align:center}.lead .big{height:72px}.lead p{margin:4px auto 8px;font-size:13.5px}.thumbs{justify-content:center}.thumbs a{width:74px}
  .pick{left:4%;top:auto;bottom:70px;width:96px;z-index:7}.pick small,.pick b{display:none}.explore{font-size:11px}
  .hero-obj{height:52%;bottom:80px;border-radius:24px}
  .bigword{bottom:60px;height:20%}
  .topleft{display:none}
}

/* ================= best sellers (bento) ================= */
.bento .word,.bento .sticker,.bento .copy{display:none}
.bento .stage{opacity:0;pointer-events:none;transform:translate(-50%,0) rotate(-3deg) scale(.6);top:30%}
.bento.launch .stage{opacity:1;transform:translate(-50%,0) rotate(0) scale(1);top:6%;height:88%}
.bento.launch .bento-in{opacity:0;transform:scale(.96)}
.bento .links{background:rgba(255,255,255,.1);box-shadow:inset 0 0 0 1px rgba(255,255,255,.15)}
.bento .links a{color:rgba(255,255,255,.7)}.bento .links a.on{background:#fff;color:var(--ink)}
.bento .next{background:rgba(255,255,255,.12);color:#fff}.bento .next.go{background:var(--pink)}
.bento-in{position:absolute;inset:0;padding:78px clamp(12px,1.4vw,22px) 64px;display:flex;flex-direction:column;gap:12px;transition:opacity .5s,transform .7s}
.bhead{display:flex;align-items:center;gap:clamp(10px,2vw,28px);flex-wrap:wrap;padding:0 8px}
.bt{height:clamp(44px,6.5vh,70px);width:clamp(200px,22vw,330px);display:block}.bt svg{width:100%;height:100%;overflow:visible}
.cats{display:flex;flex-wrap:wrap;gap:6px 0;color:#fff;font-size:14px;font-weight:700}
.cats a{opacity:.9}.cats a::before{content:"/";margin:0 12px;opacity:.6}
.bgrid{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 3.6fr;gap:10px}
.tall{position:relative;border-radius:18px;overflow:hidden}
.tall img{width:100%;height:100%;object-fit:cover;filter:saturate(1.1)}
.vword{position:absolute;left:50%;top:50%;width:330%;height:34%;transform:translate(-50%,-50%) rotate(-90deg);opacity:.92}
.vword svg{width:100%;height:100%;overflow:visible}
.tiles{display:grid;grid-template-columns:repeat(6,1fr);grid-template-rows:1fr 1fr;gap:10px;min-height:0}
.tile{position:relative;border-radius:18px;overflow:hidden;background:#efe9df;grid-column:span 2;min-height:0}
.tile:nth-child(4){grid-column:span 3}.tile:nth-child(5){grid-column:span 2}.tile:nth-child(6){grid-column:span 1}
.tile img{width:100%;height:100%;object-fit:cover;transition:transform .7s}
.tile:hover img{transform:scale(1.05)}
.tile .chip{position:absolute;right:10px;bottom:10px;left:10px;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;border-radius:14px;background:rgba(255,255,255,.82);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);font-size:13px}
.tile .chip b{color:var(--pink)}
.tile.slot{display:grid;place-items:center;background:rgba(255,255,255,.06);border:2px dashed rgba(255,255,255,.3);color:rgba(255,255,255,.7);min-height:0;font-size:13px;text-align:center}
body[data-page="2"] footer{color:rgba(255,255,255,.6)}
@media (max-width:820px){
  .bento-in{padding:70px 10px 60px;overflow-y:auto}
  .cats{font-size:12px}.cats a::before{margin:0 7px}
  .bgrid{grid-template-columns:1fr;flex:none}
  .tall{height:120px}.vword{width:90%;height:70%;transform:translate(-50%,-50%)}
  .tiles{grid-template-columns:repeat(2,1fr);grid-template-rows:none;grid-auto-rows:170px}
  .tile,.tile:nth-child(n){grid-column:span 1}.tile:nth-child(3n+1){grid-column:span 2}
}
/* home fixes: huge word visible on both sides of the object */
.bigword{bottom:-9%;height:58%}
.hero-obj{height:80%}
@media (max-width:820px){.hero-obj{height:44%;bottom:96px}.bigword{z-index:5;bottom:64px;height:17%}.pick{bottom:120px}}
@media (max-width:820px){
  .home.launch .stage,.landing.launch .stage,.bento.launch .stage{height:auto;width:min(78vw,400px);top:9%}
  .home .bigword{bottom:52px;height:15%;z-index:6}.hero-obj{height:46%;bottom:110px}.pick{bottom:140px;width:84px}
}
/* ---- living home ---- */
.hero-obj video{width:100%;height:100%;object-fit:cover;display:block}
.home .bigword svg{animation:inflate 1.4s cubic-bezier(.2,1.7,.35,1) .35s both}
.home .lead .big svg{animation:inflate 1.2s cubic-bezier(.2,1.7,.35,1) .15s both}
.home .tri span:nth-child(1) svg{animation:inflate 1s cubic-bezier(.2,1.7,.35,1) .5s both}
.home .tri span:nth-child(2) svg{animation:inflate 1s cubic-bezier(.2,1.7,.35,1) .6s both}
.home .tri span:nth-child(3) svg{animation:inflate 1s cubic-bezier(.2,1.7,.35,1) .7s both}
@keyframes inflate{0%{transform:scale(.2,.05);opacity:0}55%{transform:scale(1.08,1.12);opacity:1}75%{transform:scale(.97,.95)}100%{transform:none}}
.home .bigword svg,.home .lead .big svg,.tri svg{transform-origin:50% 80%}
.home .pick .ph,.home .thumbs a{animation:bob 5s ease-in-out infinite}
.home .thumbs a:nth-child(2){animation-delay:-1.6s}
.home .hero-obj{animation:rise 1.2s cubic-bezier(.2,.9,.2,1) both}
@keyframes rise{from{transform:translate(-50%,40px);opacity:0}to{transform:translateX(-50%);opacity:1}}
.landing .ncard{animation:cardIn .9s cubic-bezier(.2,1.2,.3,1) both}
.landing .ncard:nth-child(2){animation-delay:.08s}.landing .ncard:nth-child(3){animation-delay:.16s}.landing .ncard:nth-child(4){animation-delay:.24s}
@keyframes cardIn{from{transform:translateY(40px) scale(.94);opacity:0}to{transform:none;opacity:1}}
.landing .pw svg{animation:inflate 1.2s cubic-bezier(.2,1.7,.35,1) .2s both}
.bento .tile{animation:cardIn .8s cubic-bezier(.2,1.2,.3,1) both}
.bento .tile:nth-child(2){animation-delay:.06s}.bento .tile:nth-child(3){animation-delay:.12s}.bento .tile:nth-child(4){animation-delay:.18s}.bento .tile:nth-child(5){animation-delay:.24s}.bento .tile:nth-child(6){animation-delay:.3s}
/* balloon wipe between pages */
#wipe{position:fixed;inset:0;z-index:200;pointer-events:none;display:none;clip-path:circle(0 at 50% 50%)}
#wipe.on{display:grid;place-items:center}
#wipe .ww{width:min(70vw,720px);height:min(30vh,260px)}
#wipe .ww svg{width:100%;height:100%;overflow:visible}
#autoBtn{position:fixed;z-index:150;left:18px;bottom:calc(18px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:8px;font:inherit;font-size:12px;border:0;cursor:pointer;
  padding:8px 13px;border-radius:999px;background:rgba(27,20,64,.78);color:#fff;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
#autoBtn i{font-style:normal;font-size:10px;color:var(--lemon)}
@media (max-width:820px){#autoBtn{left:14px;bottom:calc(14px + env(safe-area-inset-bottom));padding:7px 11px;font-size:11px}}

/* ---------- View Transitions: a product photo flies into its page; real page loads cross-fade too ---------- */
@view-transition { navigation: auto; }
::view-transition-group(pimg) { animation-duration: 1.1s; animation-timing-function: cubic-bezier(.7,0,.2,1); z-index: 90; }
::view-transition-old(pimg), ::view-transition-new(pimg) { height: 100%; object-fit: cover; }
::view-transition-old(root) { animation: b-vt-out .65s cubic-bezier(.6,0,.4,1) both; }
::view-transition-new(root) { animation: b-vt-in .85s cubic-bezier(.2,.7,.2,1) .2s both; }
@keyframes b-vt-out { to { opacity: 0; filter: blur(10px); transform: scale(.97); } }
@keyframes b-vt-in { from { opacity: 0; filter: blur(10px); transform: scale(1.03); } }

/* ---------- scroll-driven animations (run by the compositor) ---------- */
.bprog { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; background: linear-gradient(90deg, #ffd84d, #ff4fa6); transform-origin: right; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: view()) {
  .bprog { animation: b-grow linear both; animation-timeline: scroll(root); }
  @keyframes b-grow { to { transform: scaleX(1); } }
  /* cards and tiles rise and settle as they enter */
  .pcard, .tile, .slot, .detail > * { animation: b-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 75%; }
  @keyframes b-rise { from { opacity: 0; translate: 0 80px; scale: .94; rotate: 2deg; } to { opacity: 1; translate: 0 0; scale: 1; rotate: 0deg; } }
  /* the hero panel tilts back into the page as you scroll past it */
  header.panel { animation: b-panel linear both; animation-timeline: scroll(root); animation-range: 0 85vh; transform-origin: 50% 0; }
  @keyframes b-panel { to { scale: .92; opacity: .55; filter: saturate(.8); } }
}
@media (prefers-reduced-motion: reduce) { .pcard, .tile, .slot, .detail > *, header.panel { animation: none !important; } }

/* ---------- living scenes: the product photos move (looping clips that start when the card is on screen) ---------- */
.ncard video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.ncard video.on { opacity: 1; }
.ncard .lab { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .ncard video { display: none; } }
