/* ==========================================================================
   Dāstān HOME sections under the video hero (index.html, class .home-body + .hs-foot). Loaded after first.css, which holds the tokens (--cream, --green, --coral, --mint, --mc, --nian).
   Language: flat squares and quarter circles, the pixel display face for headings, one colour per band, no shadows except the flat offset of the buttons.
   Rhythm: story (cream) > journey (black) > blends (green + three colour panels) > origins (black + pixel map) > blend it yourself (coral) > cooperation (cream) > footer (mint).
   Motion is time-based only (reveals fire once when a block comes into view, see home-sections.js; nothing follows the scroll position) and switches off with prefers-reduced-motion.
   Sections: 1 base, 2 story, 3 journey, 4 blends, 5 origins, 6 blend it yourself, 7 cooperation, 8 footer, 9 Persian, 10 reveal + reduced motion.
   ========================================================================== */

/* 1. base ------------------------------------------------------------------- */
.home-body{--gut:clamp(16px,5vw,72px);--sec:clamp(72px,10vw,150px);position:relative;z-index:1;background:var(--th-bg);color:var(--th-fg)}
.home-body :focus-visible,.hs-foot :focus-visible{outline:3px solid var(--focus,var(--th-ring));outline-offset:4px}
.hs{position:relative;padding:var(--sec) var(--gut);overflow:hidden}
.hs-in{max-width:1320px;margin:0 auto}
.hs-mc{font-family:var(--mc);font-weight:400;text-transform:uppercase}
.hs-tag{display:flex;align-items:center;gap:12px;margin:0 0 clamp(14px,2vw,24px);font:400 clamp(14px,1.3vw,18px)/1 var(--mc);letter-spacing:.06em;text-transform:uppercase}
.hs-tag:before{content:"";flex:none;width:.8em;height:.8em;background:var(--tag,var(--coral))}
.hs-h{margin:0;font:400 clamp(25px,4.6vw,70px)/1 var(--mc);letter-spacing:.005em;text-transform:uppercase;text-wrap:balance;overflow-wrap:anywhere}
.hs-lead{margin:clamp(14px,1.8vw,24px) 0 0;max-width:34em;font:400 clamp(15px,1.9vw,26px)/1.25 var(--nian)}
.hs-p{margin:clamp(10px,1.4vw,18px) 0 0;max-width:36em;font:400 clamp(14px,1.35vw,19px)/1.33 var(--nian);opacity:.88}
.hs-head{margin-bottom:clamp(36px,5vw,72px)}
.hs-more{display:flex;margin-top:clamp(32px,4vw,56px)}
.hs-ar{flex:none;width:10px;height:12px;background:currentColor;clip-path:polygon(0 0,100% 50%,0 100%);transition:translate .25s ease}
.hs-ar use{display:none}
html[dir=rtl] .hs-ar{scale:-1 1}
/* flat square button, with a hard offset shadow on hover; .hs-link is the quiet text version */
.hs-btn{display:inline-flex;align-items:center;justify-content:center;gap:16px;text-align:center;min-height:60px;margin-top:clamp(26px,3vw,40px);padding:14px 28px;background:#000;color:var(--cream);font:400 clamp(16px,1.4vw,20px)/1.3 var(--mc);letter-spacing:.04em;text-transform:uppercase;transition:box-shadow .2s ease,translate .2s ease}
.hs-btn:hover,.hs-btn:focus-visible{translate:-3px -3px;box-shadow:6px 6px 0 var(--sh,var(--green))}
.hs-btn:hover .hs-ar,.hs-link:hover .hs-ar{translate:5px 0}
html[dir=rtl] .hs-btn:hover .hs-ar,html[dir=rtl] .hs-link:hover .hs-ar{translate:-5px 0}
.hs-link{display:inline-flex;align-items:center;gap:14px;min-height:48px;padding-bottom:3px;border-bottom:2px solid currentColor;font:400 clamp(16px,1.4vw,20px)/1 var(--mc);letter-spacing:.04em;text-transform:uppercase}
.hs-note{margin:18px 0 0;max-width:30em;font-size:14px;line-height:1.3;opacity:.8}

/* 2. story: cream band, big green heading, a mosaic of the brand's squares and quarter circles ----------------- */
.hs-story{background:var(--cream);color:var(--green);--tag:var(--coral);--focus:var(--green)}
.hs-story-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:clamp(32px,6vw,96px);align-items:end}
.hs-story .hs-h{color:var(--green)}
.hs-story .hs-lead{color:#000}
.hs-story .hs-p{color:#000}
.hs-pattern{display:block;width:100%;max-width:560px;height:auto;aspect-ratio:8 / 3;justify-self:end;overflow:visible}
/* home: the pattern is the first three rows of tiles only (the viewBox), anything below them is clipped so no half row shows */
.home-body .hs-pattern{overflow:hidden}
.hs-pattern path{transform-box:fill-box;transform-origin:center}
.hs-mosaic{display:grid;grid-template-columns:repeat(4,1fr);aspect-ratio:1;width:100%;max-width:440px;justify-self:end}
.hs-mosaic i{display:block;aspect-ratio:1;background:var(--c)}
.hs-mosaic .m-g{--c:var(--green)}.hs-mosaic .m-c{--c:var(--coral)}.hs-mosaic .m-m{--c:var(--mint)}.hs-mosaic .m-k{--c:#000}.hs-mosaic .m-e{background:none}
.hs-mosaic .r{border-radius:50%}
.hs-mosaic .q1{border-radius:100% 0 0 0}.hs-mosaic .q2{border-radius:0 100% 0 0}.hs-mosaic .q3{border-radius:0 0 100% 0}.hs-mosaic .q4{border-radius:0 0 0 100%}

/* 3. journey: six stills of the hero film, one flat badge per step ------------------------------------ */
.hs-journey{background:var(--th-bg);--tag:var(--mint)}
.hs-journey .hs-h{color:var(--th-fg)}
.hs-journey .hs-lead{color:rgb(var(--th-fg-rgb) / .82)}
.hj-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(28px,3.4vw,48px) clamp(14px,2vw,28px)}
.hj{min-width:0}
.hj figure{position:relative;margin:0;aspect-ratio:4/3;overflow:hidden;background:var(--green)}
.hj img{display:block;width:100%;height:100%;object-fit:cover}
.hj-n{position:absolute;left:0;bottom:0;display:grid;place-items:center;width:clamp(44px,4.4vw,64px);aspect-ratio:1;background:var(--c);color:#000;font-size:clamp(18px,1.9vw,28px);line-height:1}
html[dir=rtl] .hj-n{left:auto;right:0}
.hj-coral{--c:var(--coral)}.hj-mint{--c:var(--mint)}.hj-cream{--c:var(--cream)}
.hj-t{margin:14px 0 4px;font-size:clamp(15.4px,1.7vw,24px);line-height:1;color:var(--c)}
.hj-p{margin:0;max-width:24em;font-size:clamp(13px,1.2vw,17px);line-height:1.28;color:rgb(var(--th-fg-rgb) / .85)}

/* 3b. shop overview: the latest products in one compact block under the story (home-sections.js builds the cards); same flat tone cards as the origins pouches */
.hs-shop{background:var(--th-bg);padding-block:clamp(20px,3vw,40px) clamp(36px,5vw,72px);--tag:var(--coral)}
.hso-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:clamp(16px,2vw,28px)}
.hso-h{margin:0;font-size:clamp(16px,1.9vw,26px);line-height:1.1;letter-spacing:.02em;color:var(--th-hl)}
.hso-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(8px,1.2vw,16px)}
@media (min-width:900px){.hso-list{grid-template-columns:repeat(6,minmax(0,1fr))}}
.hso a{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:3px;height:100%;padding:clamp(10px,1.2vw,16px);background:var(--c);color:#000;container-type:inline-size}
.hso-coral{--c:var(--coral)}.hso-mint{--c:var(--mint)}.hso-cream{--c:var(--cream);color:var(--green)}
/* the photo lives in its OWN fixed 4:5 box above the text: the image is absolutely positioned inside it (padding 6%, object-fit contain), so its natural size can never stretch the box or cover the name, label and price (accessory photos uploaded from the panel come in any shape) */
.hso-img{position:relative;flex:none;display:block;align-self:stretch;width:100%;aspect-ratio:4/5;min-height:0;margin-bottom:6px;overflow:hidden}
.hso-img img{position:absolute;inset:6%;display:block;width:88%;height:88%;max-width:none;max-height:none;object-fit:contain;object-position:center;transition:translate .35s cubic-bezier(.2,.8,.2,1)}
.hso a:hover .hso-img img{translate:0 -6px}
.hso-name{flex:none;max-width:100%;min-width:0;font-size:clamp(12px,9.5cqw,22px);line-height:1.05;overflow-wrap:anywhere}
.hso-kind,.hso-price{max-width:100%;min-width:0;overflow-wrap:anywhere}
.hso-kind{font:700 clamp(10px,.95vw,13px)/1.15 var(--nian);letter-spacing:.05em;text-transform:uppercase}
.hso-price{margin-top:auto;padding-top:4px;font-size:clamp(10px,.95vw,13px);line-height:1.25;text-transform:none}
.hso-w,.hso-a{white-space:nowrap}
.hso-w{text-transform:uppercase}
@container (max-width:150px){.hso-sep{display:none}.hso-w,.hso-a{display:block}}
.hso.is-sold .hso-img img{opacity:.5;filter:grayscale(.6)}
.hso-sold{position:absolute;top:0;inset-inline-end:0;padding:4px 7px 3px;background:#000;color:var(--cream);font:400 10px/1 var(--mc);letter-spacing:.06em;text-transform:uppercase}
.hso-all{display:flex;flex-wrap:wrap;align-items:center;gap:4px 18px;margin-top:clamp(14px,2vw,24px);font:400 13px/1.2 var(--mc);letter-spacing:.05em;text-transform:uppercase}
.hso-all-l{opacity:.7}
.hso-cat{display:inline-flex;align-items:center;min-height:44px;border-bottom:1px solid currentColor;padding-top:1px;margin-block:0}
.hso-cat:hover{color:var(--th-hl)}
.hso-go{min-height:44px;font-size:clamp(12px,1.2vw,17px);white-space:nowrap}
html[lang=fa] .hso-h,html[lang=fa] .hso-all,html[lang=fa] .hso-sold{font-family:var(--nian);font-weight:900;letter-spacing:0;text-transform:none}
html[lang=fa] .hso-kind{letter-spacing:0}
html[lang=fa] .hso-price{font-family:var(--nian)}
html[data-theme=light] .hs-shop{border-top:2px solid var(--green)}
html[data-theme=light] .hso-h{color:var(--green)}
html[data-theme=light] .hso-cat:hover{color:var(--green)}

/* 4. blends: three colour panels side by side (stacked on phones), the real pouches and the real 1 kg prices ----- */
.hs-blends{background:var(--green);color:var(--cream);padding-bottom:0;--tag:var(--cream)}
.hs-blends .hs-h{color:var(--cream)}
.hs-blends .hs-lead{color:var(--cream)}
.hb-list{list-style:none;margin:0 calc(var(--gut) * -1);padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.hb{position:relative;display:grid;grid-template-rows:auto 1fr auto;gap:clamp(18px,2vw,28px);min-height:clamp(620px,52vw,780px);padding:clamp(28px,3vw,48px);background:var(--c);color:#000}
.hb-coral{--c:var(--coral)}.hb-mint{--c:var(--mint)}.hb-cream{--c:var(--cream);color:var(--green)}
.hb-name{margin:0;font-size:clamp(32px,4.2vw,64px);line-height:.95}
.hb-name a:after{content:"";position:absolute;inset:0;z-index:1}
.hb-ratio{margin:12px 0 0;font-size:clamp(15px,1.5vw,22px);line-height:1.2}
.hb-mood{margin:8px 0 0;max-width:20em;font-size:clamp(14px,1.25vw,18px);line-height:1.25}
.hb-bag{min-width:0;display:block;justify-self:center;align-self:center;width:auto;height:clamp(300px,28vw,420px);max-width:100%;object-fit:contain;transition:translate .35s cubic-bezier(.2,.8,.2,1)}
.hb:hover .hb-bag{translate:0 -10px}
.hb-foot{margin:0;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:18px;border-top:2px solid currentColor;container-type:inline-size}
/* the price line stays on ONE line from 700px up (a manager-set discount adds a struck list price and a label: '250g · 1.130.000 994.400 T 12% OFF'); it only wraps on phones.
   With a discount the size follows the width of the card (cqw = the foot's width) so the longer line still fits the narrow three-column cards. */
.hb-price{font-size:clamp(14px,1.35vw,20px);white-space:nowrap}
@media (min-width:700px){.hb-price:has(.pr-off){font-size:min(clamp(14px,1.35vw,20px),max(11px,4.5cqw))}}
@media (max-width:699px){.hb-price{white-space:normal}}
.hb-go{display:inline-flex;align-items:center;gap:12px;font-size:clamp(14px,1.35vw,20px)}
@media (min-width:900px){.hb-foot{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:8px}}
.hb:hover .hb-go .hs-ar{translate:5px 0}
html[dir=rtl] .hb:hover .hb-go .hs-ar{translate:-5px 0}
.hs-blends .hs-more{margin-top:0;padding:clamp(32px,4vw,56px) 0}

/* 5. origins: the pixel map of the Specialty page (land = one mask, green on black), the seven origins, four real pouches ----- */
.hs-origins{background:var(--th-bg);--tag:var(--coral)}
.hs-origins .hs-h{color:var(--th-hl)}
.hs-origins .hs-lead{color:rgb(var(--th-fg-rgb) / .85)}
.ho-map{position:relative;direction:ltr;width:100%;aspect-ratio:1640/1000;container-type:inline-size}
.ho-land{position:absolute;inset:0;background:var(--green);-webkit-mask:url(assets/home/origins-map.svg) center/100% 100% no-repeat;mask:url(assets/home/origins-map.svg) center/100% 100% no-repeat}
.ho-dot{--d:clamp(9px,1.6vw,22px);position:absolute;left:var(--x);top:var(--y);width:var(--d);height:var(--d);margin:calc(var(--d) / -2) 0 0 calc(var(--d) / -2);border-radius:50%;background:var(--cream);box-shadow:0 0 0 calc(var(--d) * .22) var(--coral);transition:scale .3s cubic-bezier(.3,1.6,.5,1)}
.ho-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.ho-lines path{fill:none;stroke-width:2;vector-effect:non-scaling-stroke}
.ho-tag{--ts:1;--ty:0px;position:absolute;left:var(--l);top:var(--t);min-width:var(--w);height:var(--h);padding:0 1cqw;display:flex;align-items:center;justify-content:center;white-space:nowrap;background:var(--c);color:var(--green);font:400 1.3cqw/1 var(--mc);letter-spacing:.04em;text-transform:uppercase;transform-origin:var(--o);transform:translateY(var(--ty)) scale(var(--ts));transition:scale .2s}
.ho-tag-coral{--c:var(--coral)}.ho-tag-mint{--c:var(--mint)}
.ho-tag:hover,.ho-tag:focus-visible{background:var(--cream)}
.ho-dot:after{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid var(--coral);opacity:0}
.ho-dot.is-on{scale:1.7}
.ho-dot.is-on:after{animation:ho-pulse 1.2s ease-out infinite}
/* the dots take turns to pulse (a slow tour of the origins) */
@media (prefers-reduced-motion:no-preference){
  .ho-dot:after{animation:ho-pulse 7.7s ease-out infinite;animation-delay:calc(var(--i) * 1.1s)}
}
@keyframes ho-pulse{0%{opacity:.9;scale:1}14%,100%{opacity:0;scale:3.4}}
.ho-pouches{list-style:none;margin:clamp(40px,5vw,72px) 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1.4vw,20px)}
.ho-p a{position:relative;display:grid;grid-template-rows:auto auto auto;justify-items:start;gap:4px;height:100%;padding:clamp(16px,2vw,28px);padding-top:clamp(20px,2.4vw,34px);background:var(--c);color:#000}
.ho-coral{--c:var(--coral)}.ho-mint{--c:var(--mint)}.ho-cream{--c:var(--cream);color:var(--green)}
.ho-p img{display:block;justify-self:center;width:min(100%,220px);height:auto;margin-bottom:12px;transition:translate .35s cubic-bezier(.2,.8,.2,1)}
.ho-p a:hover img{translate:0 -8px}
.ho-p a{container-type:inline-size}
.ho-name{order:-2;font-size:clamp(14px,10.4cqw,52px);line-height:1}
.ho-price{order:1;margin-top:6px;font-size:clamp(13px,1.15vw,17px);line-height:1.2}
.ho-price[hidden]{display:none}
.ho-ctry{order:-1;margin-bottom:8px;font:700 clamp(12px,1.2vw,17px)/1.15 var(--nian);letter-spacing:.06em;text-transform:uppercase}
.hs-origins .hs-more{margin-top:clamp(36px,4vw,56px)}

/* 6. blend it yourself: coral band, a decorative copy of the two sliders of /blend --------------------------------------- */
.hs-diy{background:var(--coral);color:#000;--tag:#000;--focus:#000;--sh:var(--cream)}
.hs-diy .hs-h{color:#000}
.hs-diy .hs-h,.hs-coop .hs-h{font-size:clamp(24px,3.8vw,56px)}
.hs-diy-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:clamp(40px,7vw,110px);align-items:center}
.hd-demo{direction:ltr;display:grid;gap:14px;padding-inline:calc(clamp(28px,3vw,40px) / 2)}
.hd-row{display:flex;justify-content:space-between;gap:12px;font-size:clamp(15px,1.7vw,24px);line-height:1.1}
.hd-track{--p:20%;position:relative;touch-action:pan-y;cursor:grab;height:10px;margin:0 0 clamp(24px,3vw,44px);border-radius:5px;background:linear-gradient(90deg,var(--cream),var(--mint))}
.hd-b{background:linear-gradient(90deg,var(--green),var(--mint));--p:75%}
.hd-knob{position:absolute;left:var(--p);top:50%;width:clamp(28px,3vw,40px);aspect-ratio:1;margin:calc(clamp(28px,3vw,40px) / -2) 0 0 calc(clamp(28px,3vw,40px) / -2);border-radius:50%;background:var(--cream);border:3px solid #000}
@media (prefers-reduced-motion:no-preference){
  .hd-knob{animation:hd-drift 9s ease-in-out infinite alternate}
  .hd-b .hd-knob{animation-duration:11s;animation-direction:alternate-reverse}
}
@keyframes hd-drift{from{left:14%}to{left:86%}}
/* the knobs drift on their own for one swing; the first touch hands them over to the visitor */
.hd-track::before{content:"";position:absolute;inset:-18px calc(clamp(28px,3vw,40px) / -2)}
.hd-track.is-live .hd-knob{animation:none;left:var(--p)}
.hd-track:focus-visible{outline:3px solid var(--focus,#000);outline-offset:14px}

/* 7. cooperation: cream band, the three real steps of the cooperation page ---------------------------------------------- */
.hs-coop{background:var(--cream);color:var(--green);--tag:var(--mint);--focus:var(--green)}
.hs-coop .hs-h{color:var(--green)}
.hs-coop .hs-lead,.hs-coop .hs-note{color:#000}
.hs-coop-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(40px,7vw,110px);align-items:center}
.hc-steps{list-style:none;margin:0;padding:0;display:grid;gap:0}
.hc-steps li{display:flex;align-items:center;gap:clamp(16px,2vw,28px);padding:clamp(18px,2vw,28px) 0;border-top:2px solid var(--green);font:700 clamp(14px,1.7vw,24px)/1.2 var(--nian);color:#000}
.hc-steps li:last-child{border-bottom:2px solid var(--green)}
.hc-n{flex:none;display:grid;place-items:center;width:clamp(52px,5vw,72px);aspect-ratio:1;background:var(--c);font-size:clamp(20px,2vw,30px);line-height:1;color:#000}
.hc-coral{--c:var(--coral)}.hc-mint{--c:var(--mint)}.hc-green{--c:var(--green);color:var(--cream)}

/* 8. footer: the vector footer of the Blend pages (mosaic + turning ring + logo), then a visible link row ----------------- */
.hs-foot{container-type:inline-size;overflow-x:clip;position:relative;z-index:1;background:linear-gradient(var(--th-bg,#000) 0 3px,transparent 3px) var(--mint);color:var(--green)}
.hs-foot .pxfoot{--u:calc(100cqw / 1920);position:relative;height:calc(1399 * var(--u));overflow:hidden;background:var(--pf-img,url(assets/bl-footer.svg)) 0 0/100% 100% no-repeat,linear-gradient(var(--th-bg,#000) 0 50%,var(--mint) 50%)}
.hs-foot .pf-art{position:absolute;left:0;top:0;width:100%;height:calc(1399 * var(--u));display:block;max-width:none}
.hs-foot .ring-wrap{position:absolute;left:0;top:0;width:100%;height:calc(1399 * var(--u));pointer-events:none}
.hs-foot .ring{position:absolute;direction:ltr;inset:0;width:100%;height:100%;overflow:visible;transform-origin:calc(1487.985 * 100% / 1920) calc(467.293 * 100% / 1399);animation:hs-ring 40s linear infinite;color:var(--cream)}
.hs-foot .ring text{font:500 94.413px Ubuntu,var(--nian);font-kerning:none;fill:currentColor}
.hs-foot .ring.paused{animation-play-state:paused}
@keyframes hs-ring{to{transform:rotate(360deg)}}
.hs-links{display:flex;flex-wrap:wrap;gap:4px clamp(20px,3vw,44px);padding:clamp(8px,1.4vw,16px) var(--gut, 16px) clamp(20px,3vw,36px);font:700 clamp(15px,1.3vw,19px)/1.2 var(--nian)}
.hs-links a{display:inline-flex;align-items:center;min-height:48px}
.hs-links a:hover{text-decoration:underline;text-underline-offset:5px}
.hs-foot{--gut:clamp(16px,5vw,72px);--focus:var(--green)}
.hs-links{padding-inline:var(--gut)}

/* 9. Persian: the pixel face has no Persian letters, so the "pixel" texts use Nian Black; Latin names (SPARK, ARBEGONA ...) keep the pixel face */
html[lang=fa] .hs-mc:not(.hs-lat),html[lang=fa] .hs-h,html[lang=fa] .hs-tag,html[lang=fa] .hs-btn,html[lang=fa] .hs-link,html[lang=fa] .ho-tag{font-family:var(--nian);font-weight:900;letter-spacing:0;text-transform:none}
html[lang=fa] .hs-h{font-size:clamp(24px,4.3vw,64px);line-height:1.15}
html[lang=fa] .hb-name{font-size:clamp(32px,4.2vw,64px)}
html[lang=fa] .hb-ratio{font-size:clamp(14px,1.5vw,22px);line-height:1.2}
html[lang=fa] .hj-t{line-height:1.15}
html[lang=fa] .ho-ctry{letter-spacing:0}
html[lang=fa] .hs-lead,html[lang=fa] .hs-p,html[lang=fa] .hj-p,html[lang=fa] .hb-mood{line-height:1.43}
html[lang=fa] .hd-row{font-size:clamp(15px,1.5vw,21px)}

/* 10. phones and tablets ------------------------------------------------------------------------------------------------- */
@media (max-width:1100px){
  .hb{min-height:0}
  .hb-bag{height:clamp(260px,30vw,340px)}
}
@media (max-width:899px){
  .hs-story-grid,.hs-diy-grid,.hs-coop-grid{grid-template-columns:minmax(0,1fr)}
  .hs-story-grid{gap:28px}
  .hs-mosaic{justify-self:start;max-width:280px}
  .hs-pattern{justify-self:stretch;max-width:none;width:calc(100% + 2 * var(--gut,16px));margin-inline:calc(var(--gut,16px) * -1)}
  .hj-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hb-list{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:var(--gut);padding-inline:var(--gut);scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  .hb-list::-webkit-scrollbar{display:none}
  .hb{scroll-snap-align:start;min-height:0;gap:10px;padding:14px 10px 12px}
  .hb-name,html[lang=fa] .hb-name{font-size:clamp(17px,5.4vw,40px)}
  .hb-ratio,html[lang=fa] .hb-ratio{margin-top:6px;font-size:clamp(9px,2.5vw,16px)}
  .hb-mood{margin-top:5px;font-size:clamp(10.5px,2.8vw,15px)}
  .hb-bag{height:clamp(120px,34vw,260px)}
  .hb-foot{padding-top:8px;gap:4px;border-top-width:1px}
  .hb-price,.hb-go{font-size:clamp(10px,2.7vw,16px);gap:6px}
  .hb-price{line-height:1.25}
  .hb-sold{padding:5px 7px 4px;font-size:10px}
  .ho-pouches{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ho-dot{--d:clamp(7px,2.4vw,14px)}
  .ho-tag{--ts:1.4}
  .ho-tag[data-c=ethiopia]{--ty:-3px}.ho-tag[data-c=kenya]{--ty:3px}
  .hd-demo{max-width:560px}
}
@media (max-width:520px){
  .home-body{--sec:clamp(48px,13vw,64px)}
  .hs-tag{font-size:12px;gap:8px;margin-bottom:10px}
  .hs-head{margin-bottom:26px}
  .hs-more{margin-top:22px}
  .hs-blends .hs-more{padding:22px 0}
  .hs-btn{min-height:46px;margin-top:20px;padding:10px 20px;font-size:14px;width:100%;justify-content:center}
  .hs-link{min-height:44px;font-size:13px;gap:10px}
  .hj-list{gap:20px 10px}
  .hj-n{width:28px;font-size:12px}
  .hj-t{font-size:14px;margin-top:10px}
  .hj-p{font-size:12.5px}
  .ho-pouches{margin-top:26px;gap:8px}
  .ho-p a{padding:10px 10px 12px}
  .ho-p img{width:min(100%,112px);margin-bottom:6px}
  .hb-go>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .hso-all{font-size:11px;gap:0 14px}
  .hso-all-l{flex-basis:100%}
  .hso-cat{min-height:40px}
  .ho-name{font-size:clamp(13px,8.4cqw,20px)}
  .ho-ctry{font-size:11px;margin-bottom:6px}
  .ho-price{font-size:11px;line-height:1.25}
  .hd-row{font-size:12px}
  .hc-steps li{gap:12px;padding:14px 0}
  .hc-n{width:40px;font-size:15px}
  .hs-note{font-size:12.5px}
}

/* 11. reveal: each block fades up once, a moment after it enters the view (the class is set by home-sections.js; without JS or with reduced motion everything is simply there) */
@media (prefers-reduced-motion:no-preference){
  html.hs-js .hs-rv{opacity:0;translate:0 28px;transition:opacity .8s ease,translate .8s cubic-bezier(.2,.8,.2,1);transition-delay:calc(var(--i,0) * 90ms)}
  html.hs-js .hs-rv.in{opacity:1;translate:0 0}
  html.hs-js .hs-mosaic i{scale:0;transition:scale .5s cubic-bezier(.3,1.6,.5,1);transition-delay:calc(var(--i,0) * 60ms + 200ms)}
  html.hs-js .hs-mosaic.in i{scale:1}
  html.hs-js .hb{opacity:0;translate:0 40px;transition:opacity .8s ease,translate .8s cubic-bezier(.2,.8,.2,1);transition-delay:calc(var(--k,0) * 120ms)}
  html.hs-js .hb.in{opacity:1;translate:0 0}
}
@media (prefers-reduced-motion:reduce){
  .hs-btn,.hs-ar,.hb-bag,.ho-p img,.ho-dot,.ho-tag{transition:none}
  .hs-btn:hover,.hs-btn:focus-visible{translate:none}
  .hs-foot .ring{animation:none}
}

/* footer social links: line icons (Instagram, WhatsApp) instead of text; they follow the footer text colour */
a.soc{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}
a.soc svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
a.soc svg circle:last-child{fill:currentColor}
a.soc:hover svg,a.soc:focus-visible svg{translate:0 -2px}
a.soc:hover{text-decoration:none}
/* blend ratio parts (catalog.js setRatio): each part is one unbroken, bidi-isolated unit */
.rt{white-space:nowrap}

/* the credit line at the very bottom of every page */
.legal{margin:0;padding:0 var(--gut,20px) clamp(18px,2.4vw,28px);font:400 13px/1.5 var(--nf,Nian),Nian,Tahoma,Arial,sans-serif;letter-spacing:.02em;color:currentColor;opacity:.7;text-align:start;direction:ltr}
html[dir=rtl] .legal{text-align:right}
.hs-foot .legal{opacity:1}

/* footer: the two icons sit on the logo's row at the right edge, the text links stay below; the credit is centred on two lines */
.legal{text-align:center!important}
.ls-links,.hs-links{position:relative}
.ls-links .soc,.hs-links .soc{position:absolute;top:calc(-10.55cqw - 22px)}
.ls-links .soc:nth-of-type(1),.hs-links .soc:nth-of-type(1){right:var(--gut,16px)}
.ls-links .soc:nth-of-type(2),.hs-links .soc:nth-of-type(2){right:calc(var(--gut,16px) + 52px)}

/* story pattern: the shapes pop in one after another when it scrolls into view, then they stay still */
@media (prefers-reduced-motion:no-preference){
  html.hs-js .hs-pattern path{scale:0;transition:scale .55s cubic-bezier(.3,1.6,.5,1);transition-delay:calc(var(--i) * 50ms + 150ms)}
  html.hs-js .hs-pattern.in path{scale:1}
  html.hs-js .hs-pattern path[style*="--i:20"]{scale:1;transition:none}
}
a.soc svg path[stroke],a.soc svg circle,a.soc svg rect{vector-effect:non-scaling-stroke;stroke-width:1.7px}
.hb-green{--c:var(--green);color:var(--cream)}
.hb-list{display:flex;flex-wrap:wrap;justify-content:center}
.hb-list>.hb{flex:0 0 33.3333%;min-width:0}
@media (max-width:899px){.hb-list{flex-wrap:nowrap;justify-content:flex-start}.hb-list>.hb{flex:0 0 calc((100vw - 2 * var(--gut) - 2 * 10px) / 3)}}
.hb-sold{position:absolute;z-index:2;top:0;inset-inline-end:0;padding:8px 12px 6px;background:#000;color:var(--cream);font:400 13px/1 var(--mc);letter-spacing:.08em;text-transform:uppercase}
.hb.is-sold .hb-bag{opacity:.5;filter:grayscale(.6)}
html[lang=fa] .hb-sold{font-family:var(--nian);font-weight:900;letter-spacing:0;text-transform:none}

/* LIGHT THEME (tokens: theme.css). Black bands become the cream page; bands that are green, coral or mint keep their colours. Two cream bands that meet are told apart by a green rule. */
html[data-theme=light] .hs-journey{border-top:2px solid var(--green)}
html[data-theme=light] .hj-t{color:var(--green)}
html[data-theme=light] .ho-dot{background:#000}
html[data-theme=light] .ho-tag{color:#000}
html[data-theme=light] .ho-tag:hover,html[data-theme=light] .ho-tag:focus-visible{background:var(--green);color:var(--cream)}
html[data-theme=light] .hs-foot,html[data-theme=light] .hs-foot .legal{color:#000}
html[data-theme=light] .hs-foot .ring{color:var(--green)}
html[data-theme=light] .hs-foot .pxfoot{--pf-img:url(assets/bl-footer-light.svg)}
html[data-theme=light] .hs-foot .pf-art{visibility:hidden}

/* home: the pattern sits right on the shop overview, no empty cream strip between them */
.home-body .hs-story{padding-bottom:0}

/* tidy: no one-word last lines in running text */
.hs-lead,.hs-p,.hs-note,.hj-p,.hb-mood,.ab-cf-t{text-wrap:pretty}

/* dark theme: the story band follows the night page (black, cream text) instead of staying a cream block; the light theme keeps cream */
html[data-theme=dark] .hs-story{background:var(--th-bg);color:var(--th-fg);--focus:var(--th-ring)}
html[data-theme=dark] .hs-story .hs-h{color:var(--mint)}
html[data-theme=dark] .hs-story :is(.hs-lead,.hs-p){color:var(--th-fg)}
/* dark theme: the dark-green tiles would vanish on black, so they take the cream and sit with the mint ones */
html[data-theme=dark] .hs-pattern path[fill^="rgb(16.8"]{fill:var(--cream)}
/* dark theme: the cooperation band is black too (cream text, a cream button), like the story band */
html[data-theme=dark] .hs-coop{background:var(--th-bg);color:var(--th-fg);--focus:var(--th-ring)}
html[data-theme=dark] .hs-coop .hs-h{color:var(--mint)}
html[data-theme=dark] .hs-coop :is(.hs-lead,.hs-note){color:var(--th-fg)}
html[data-theme=dark] .hs-coop .hs-btn{background:var(--cream);color:#000;--sh:var(--mint)}
html[data-theme=dark] .hc-steps li{border-top-color:var(--mint);color:var(--th-fg)}
html[data-theme=dark] .hc-steps li:last-child{border-bottom-color:var(--mint)}
html[data-theme=dark] .hc-green{--c:var(--cream);color:#000}
/* no cream cards on the home page in either theme (a cream card on the cream page got lost, and on black it was a glaring block): coral, or mint on the origins; the cooperation button is mint */
:is(.hso-cream,.hb-cream,.hj-cream){--c:var(--coral);color:#000}
.ho-cream{--c:var(--mint);color:#000}
html[data-theme=dark] .hs-coop .hs-btn{background:var(--mint);color:#000;--sh:var(--cream)}
@media (max-width:699px){.hb-price .hb-sep{display:none}.hb-price .hb-w{display:block}}

/* light theme: the former cream cards of the home page are the brand's dark green with cream text (coral and mint are already used by their neighbours) */
html[data-theme=light] :is(.hso-cream,.hj-cream){--c:var(--green);color:var(--cream)}
html[data-theme=light] .hso-cream a{color:var(--cream)}
html[data-theme=light] .hj-cream .hj-n{color:var(--cream)}
