/* Biroon website, round 2 (2026-10-27): one dark, warm look (the app's advanced appearance from DESIGN.md §2.6), paper type, Peyda display. */
:root{
  --bg:#141210; --bg-2:#0E0D0B; --surface:#1E1B18; --surface-2:#2A2622; --surface-3:#36312B;
  --label:#F3F1EC; --label-2:#B3AAA0; --label-3:#8E867D; --label-4:#5E5750;
  --tint:#F3F1EC; --on-tint:#141210; --fill:rgba(243,241,236,.10); --fill-pressed:rgba(243,241,236,.16);
  --water:#7FA8D6; --water-soft:#13263A; --terra:#B88A74; --terra-ink:#C99A84; --ok:#7FB096; --ok-soft:#1D2B24; --warn:#E08A7B;
  --separator:#38332E; --separator-strong:#4A443D;
  --paper:#F3F1EC; --ink:#1F1D1B; --film-bg:#E2DED6;
  --display:"Peyda","Vazirmatn",Tahoma,system-ui,sans-serif;
  --font:"Vazirmatn",Tahoma,"Segoe UI",system-ui,sans-serif;
  --r:16px; --r-lg:26px; --ease:cubic-bezier(.2,.7,.2,1); --shadow:0 24px 60px rgba(0,0,0,.45);
  color-scheme:dark;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth}
body{margin:0; background:var(--bg); color:var(--label); font-family:var(--font); font-size:17px; line-height:1.75; direction:rtl; overflow-x:hidden}
img,svg,video{display:block; max-width:100%}
a{color:inherit; text-decoration:none}
button{font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer; -webkit-tap-highlight-color:transparent}
h1,h2,h3{font-family:var(--display); font-weight:700; line-height:1.3; margin:0}
h1{font-size:clamp(34px,5.4vw,62px); letter-spacing:-.015em}
h2{font-size:clamp(28px,3.8vw,44px); letter-spacing:-.01em}
h3{font-size:21px}
p{margin:0}
.num,.price{font-family:var(--display); font-variant-numeric:tabular-nums}
.muted{color:var(--label-2)}
.eyebrow{font-family:var(--display); font-weight:600; font-size:14px; letter-spacing:.08em; color:var(--terra-ink); text-transform:uppercase; margin-bottom:12px}
.wrap{width:min(1160px,100% - 32px); margin-inline:auto}
.sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0)}

/* ---- buttons ---- */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:50px; padding:0 24px; border-radius:999px; font-weight:600; font-size:17px;
  background:var(--fill); color:var(--label); transition:background .15s, transform .15s var(--ease), opacity .15s}
.btn:hover{background:var(--fill-pressed)}
.btn:active{transform:scale(.97)}
.btn.primary{background:var(--tint); color:var(--on-tint)}
.btn.primary:hover{background:var(--tint); opacity:.9}
.btn.lg{min-height:56px; padding:0 30px; font-size:18px}
.btn.block{width:100%}
.btn[disabled]{opacity:.5; pointer-events:none}
.btn svg{width:20px; height:20px}
.link{color:var(--label-2); font-weight:500; border-bottom:1px solid var(--separator-strong)}
.link:hover{color:var(--label)}

/* ---- top bar ---- */
.nav{position:sticky; top:0; z-index:20; backdrop-filter:saturate(1.3) blur(18px); -webkit-backdrop-filter:saturate(1.3) blur(18px); background:rgba(20,18,16,.72); border-bottom:1px solid rgba(243,241,236,.06)}
.nav .wrap{display:flex; align-items:center; gap:18px; height:62px}
.nav .logo{height:24px; color:var(--label)} .nav .logo svg{height:100%; width:auto}
.nav nav{display:flex; gap:22px; margin-inline-start:14px; font-weight:500; font-size:15.5px}
.nav nav a{color:var(--label-2)} .nav nav a[aria-current]{color:var(--label)}
.nav .spacer{flex:1}
.nav .btn{min-height:40px; padding:0 18px; font-size:15px}
.cartbtn{position:relative; display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:50%; background:var(--fill)}
.cartbtn svg{width:22px; height:22px}
.cartbtn b{position:absolute; top:-4px; inset-inline-end:-4px; min-width:20px; height:20px; padding:0 6px; border-radius:10px; background:var(--tint); color:var(--on-tint); font-family:var(--display); font-size:12px; line-height:20px; text-align:center}
.cartbtn b:empty{display:none}
.userbtn{display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:50%; background:var(--fill); color:var(--label)}
.userbtn svg{width:21px; height:21px} .userbtn[aria-current]{background:var(--tint); color:var(--on-tint)}
@media (max-width:640px){ .nav nav{display:none} }

/* ---- hero: film cuts + words ---- */
.hero{position:relative; padding:36px 0 30px; overflow:hidden}
.hero::before{content:""; position:absolute; inset:-20% -10% auto; height:70%; background:radial-gradient(60% 60% at 70% 30%, rgba(184,138,116,.18), transparent 70%); pointer-events:none}
.hero .wrap{position:relative; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.05fr); gap:40px; align-items:center}
.hero .words{max-width:520px}
.hero .words p{font-size:19px; color:var(--label-2); margin-top:18px; max-width:460px}
.hero .cta{display:flex; gap:12px; flex-wrap:wrap; margin-top:28px}
.hero .tiny{display:flex; gap:22px; margin-top:28px; color:var(--label-3); font-size:14px}
.hero .tiny b{display:block; font-family:var(--display); font-size:22px; color:var(--label); font-weight:600; line-height:1.2}
.cuts{position:relative; aspect-ratio:1; border-radius:var(--r-lg); overflow:hidden; background:var(--film-bg); box-shadow:var(--shadow)}
.cuts video,.cuts .poster{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transform:scale(1.04)}
.cuts video{opacity:0; transition:opacity .6s var(--ease)}
.cuts video.on{opacity:1}
.cuts .cap{position:absolute; bottom:16px; inset-inline-start:16px; display:flex; align-items:center; gap:8px; padding:7px 14px; border-radius:999px; background:rgba(20,18,16,.72); color:var(--paper); backdrop-filter:blur(10px); font-size:14.5px; font-weight:600}
.cuts .cap i{width:7px; height:7px; border-radius:50%; background:var(--water)}
.cuts .mark{position:absolute; top:16px; inset-inline-end:16px; color:var(--ink); height:22px; opacity:.85} .cuts .mark svg{height:100%; width:auto}
.cuts .play{position:absolute; inset:0; display:none; place-items:center; background:rgba(31,29,27,.25); color:#fff; font-size:18px; font-weight:600}
.cuts.needs-tap .play{display:grid}
@media (max-width:880px){
  .hero{padding-top:22px}
  .hero .wrap{grid-template-columns:1fr; gap:22px}
  .hero .words{max-width:none; text-align:center}
  .hero .words p{margin-inline:auto}
  .hero .cta{justify-content:center}
  .hero .tiny{justify-content:center}
  .cuts{border-radius:20px}
}

/* ---- sections ---- */
section.block{padding:72px 0}
section.alt{background:var(--bg-2)}
.sechead{max-width:640px; margin-bottom:34px}
.sechead.center{text-align:center; margin-inline:auto}
.sechead p{color:var(--label-2); margin-top:12px; font-size:18px}
hr.rule{border:0; border-top:1px solid var(--separator); margin:0}

/* Bloom section: words + annotated drawing */
.bloom{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:48px; align-items:center}
@media (max-width:880px){ .bloom{grid-template-columns:1fr; gap:32px} }
.bloom .word{height:30px; color:var(--label); margin-bottom:14px} .bloom .word svg{height:100%; width:auto}
.bloom .story{color:var(--label-2); font-size:18px; display:grid; gap:14px}
.bloom .story b{color:var(--label); font-weight:600}
.bloom .cta{margin-top:28px; display:flex; gap:12px; flex-wrap:wrap; align-items:center}
.artwrap{padding-inline:150px}
.art{position:relative; width:min(360px,100%); margin-inline:auto; aspect-ratio:570/1072; max-height:72vh}
.legend{display:none; list-style:none; padding:0; margin:18px 0 0; gap:10px; color:var(--label-2); font-size:15px}
.legend b{color:var(--label); font-weight:600; margin-inline-end:6px}
.art img{position:absolute; inset:0; width:100%; height:100%; object-fit:contain; filter:invert(1) hue-rotate(180deg) brightness(1.05); opacity:.92}
.art .co{position:absolute; display:flex; align-items:center; gap:10px; font-size:14.5px; color:var(--label-2); white-space:nowrap}
.art .co i{width:34px; height:1px; background:var(--terra); position:relative}
.art .co i::after{content:""; position:absolute; inset-inline-end:-4px; top:-3px; width:7px; height:7px; border-radius:50%; background:var(--terra)}
.art .co b{display:block; color:var(--label); font-weight:600; font-size:15.5px}
.art .co span{line-height:1.4}
.art .co.right{flex-direction:row-reverse}
.art .co.right i::after{inset-inline-end:auto; inset-inline-start:-4px}
.art .co.out-r{inset-inline-end:calc(100% - 14%)}
.art .co.out-l{inset-inline-start:calc(100% - 12%)}
@media (max-width:880px){ .artwrap{padding-inline:0} .art .co{display:none} .legend{display:grid} }
.specs{display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:30px}
.specs div{border-top:1px solid var(--separator-strong); padding-top:12px}
.specs b{display:block; font-family:var(--display); font-weight:700; font-size:26px; line-height:1.2}
.specs small{color:var(--label-3); font-size:14px}

/* advanced-mode showcase: phone slides */
.slides{position:relative; margin-top:10px}
.track{display:flex; gap:22px; overflow-x:auto; scroll-snap-type:x mandatory; padding:12px 4px 18px; scrollbar-width:none; -ms-overflow-style:none}
.track::-webkit-scrollbar{display:none}
.slide{flex:0 0 auto; width:min(300px,78vw); scroll-snap-align:center; text-align:center}
.slide .ph{position:relative; border-radius:38px; padding:8px; background:#0a0a0a; box-shadow:0 1px 0 rgba(255,255,255,.08) inset, 0 20px 50px rgba(0,0,0,.5); aspect-ratio:585/1266}
.slide .ph::before{content:""; position:absolute; top:16px; left:50%; width:84px; height:22px; margin-left:-42px; border-radius:12px; background:#000; z-index:2}
.slide .ph img{width:100%; height:100%; object-fit:cover; border-radius:30px}
.slide h3{margin-top:18px; font-size:20px}
.slide p{color:var(--label-2); font-size:15.5px; margin-top:6px; padding:0 8px}
.slide:first-child{margin-inline-start:max(16px, calc((100vw - 1160px)/2))}
.slide:last-child{margin-inline-end:max(16px, calc((100vw - 1160px)/2))}
.dots{display:flex; justify-content:center; gap:8px; margin-top:6px}
.dots button{width:8px; height:8px; border-radius:50%; background:var(--label-4); transition:transform .2s, background .2s}
.dots button[aria-current]{background:var(--label); transform:scale(1.3)}
.arrows{display:none; position:absolute; inset-inline:0; top:42%; justify-content:space-between; pointer-events:none}
.arrows button{pointer-events:auto; width:46px; height:46px; border-radius:50%; background:var(--fill); backdrop-filter:blur(8px); display:grid; place-items:center}
.arrows svg{width:22px; height:22px}
@media (min-width:900px){ .arrows{display:flex} }

/* app section */
.appcta{display:grid; grid-template-columns:1.1fr .9fr; gap:40px; align-items:center}
@media (max-width:880px){ .appcta{grid-template-columns:1fr} }
.appcta .box{background:var(--surface); border-radius:var(--r-lg); padding:28px}
.appcta .box ol{margin:12px 0 0; padding-inline-start:20px; color:var(--label-2); display:grid; gap:6px}
.appcta .box b{color:var(--label)}

/* ---- footer ---- */
footer{padding:40px 0 56px; border-top:1px solid var(--separator); color:var(--label-2); font-size:15px}
footer .wrap{display:flex; flex-wrap:wrap; gap:16px 28px; align-items:center}
footer .logo{height:20px; color:var(--label-2)} footer .logo svg{height:100%; width:auto}
footer a:hover{color:var(--label)}
.wa{display:inline-flex; align-items:center; gap:8px} .wa svg{width:20px; height:20px}

/* ---- Bloom page ---- */
.phero{position:relative; padding:28px 0 10px; overflow:hidden}
.phero .wrap{display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); gap:30px; align-items:center}
.phero .shot{position:relative; aspect-ratio:840/1039; max-height:78vh; margin-inline:auto; width:100%}
.phero .shot::before{content:""; position:absolute; inset:10% -10% -5%; background:radial-gradient(55% 55% at 50% 60%, rgba(184,138,116,.28), rgba(184,138,116,0) 70%); filter:blur(10px)}
.phero .shot img{position:relative; width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 40px 50px rgba(0,0,0,.55))}
.phero .word{height:40px; color:var(--label); margin-bottom:14px} .phero .word svg{height:100%; width:auto}
.phero h1{font-size:clamp(30px,4.2vw,48px)}
.phero .sub{font-size:19px; color:var(--label-2); margin-top:14px; max-width:520px}
.phero .from{margin-top:22px; font-family:var(--display); font-size:20px; color:var(--label-2)}
.phero .from b{font-size:34px; color:var(--label); font-weight:700; margin-inline:6px}
.phero .cta{display:flex; gap:12px; flex-wrap:wrap; margin-top:22px}
@media (max-width:880px){
  .phero .wrap{grid-template-columns:1fr; gap:10px}
  .phero .shot{max-height:58vh; order:-1}
  .phero .word{margin-inline:auto}
  .phero .words{text-align:center} .phero .sub{margin-inline:auto} .phero .cta{justify-content:center}
}

/* choose one of three */
.choose{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.8fr); gap:40px; align-items:start}
@media (max-width:880px){ .choose{grid-template-columns:1fr; gap:28px} }
.opts{display:grid; gap:12px}
.opt{position:relative; display:grid; grid-template-columns:28px 1fr auto; gap:4px 14px; align-items:center; padding:18px 18px 18px 20px; border-radius:var(--r-lg); background:var(--surface); border:2px solid transparent; cursor:pointer; text-align:start; transition:border-color .2s, background .2s}
.opt:hover{background:var(--surface-2)}
.opt[aria-checked="true"]{border-color:var(--label); background:var(--surface-2)}
.opt .radio{grid-row:1/3; width:22px; height:22px; border-radius:50%; border:2px solid var(--label-4); position:relative}
.opt[aria-checked="true"] .radio{border-color:var(--label)}
.opt[aria-checked="true"] .radio::after{content:""; position:absolute; inset:4px; border-radius:50%; background:var(--label)}
.opt h3{font-size:19px}
.opt p{color:var(--label-2); font-size:15px; grid-column:2}
.opt .price{grid-row:1/3; grid-column:3; text-align:center; font-weight:700; font-size:20px; white-space:nowrap}
.opt .price small{display:block; font-weight:400; font-size:12.5px; color:var(--label-3)}
.opt .tag{position:absolute; top:-10px; inset-inline-start:20px; padding:2px 10px; border-radius:999px; background:var(--terra); color:var(--ink); font-size:12.5px; font-weight:600}
.buybar{display:grid; gap:10px; margin-top:16px}
.buybar .sum{display:flex; justify-content:space-between; align-items:baseline; color:var(--label-2)}
.buybar .sum b{font-family:var(--display); font-size:26px; color:var(--label)}
.buybar .fine{color:var(--label-3); font-size:14px}
/* the drawing that follows the choice */
.whatyouget{position:sticky; top:84px}
@media (max-width:880px){ .whatyouget{position:static} }
.whatyouget{container-type:inline-size}
.wyg{position:relative; --h:min(60vh,520px,100cqw / .6); height:var(--h); margin-inline:auto; margin-bottom:34px; transition:height .5s var(--ease)}
.wyg[data-sku="bloom-server"]{--h:min(60vh,460px,100cqw / 1.36)}
.wyg .row{height:100%; display:flex; align-items:flex-end; justify-content:center; direction:rtl}
.wyg .bl{position:relative; height:100%; aspect-ratio:570/1072; flex:none}
.wyg img{display:block; filter:invert(1) hue-rotate(180deg) brightness(1.05)}
.wyg .bl img{position:absolute; inset:0; width:100%; height:100%}
.wyg img.dim{opacity:.14}
.wyg img.lit{opacity:.95; transition:clip-path .5s var(--ease)}
/* full Bloom; the ring alone keeps only the ring and its BLOOM handle, the sleeve on the wood goes grey */
.wyg img.lit{clip-path:polygon(0 0,100% 0,100% 100%,43.5% 100%,43.5% 100%,0 100%)}
.wyg[data-sku="ring"] img.lit{clip-path:polygon(0 0,100% 0,100% 36%,43.5% 36%,43.5% 30.4%,0 30.4%)}
.wyg .plus,.wyg .srv{flex:none; overflow:hidden; max-width:0; opacity:0; transition:max-width .5s var(--ease), opacity .4s var(--ease), margin .5s var(--ease)}
.wyg .plus{align-self:center; font-family:var(--display); font-size:calc(var(--h) * .09); line-height:1; color:var(--terra); font-weight:500}
.wyg .srv{height:39%; aspect-ratio:702/420}
.wyg .srv img{height:100%; width:auto}
.wyg[data-sku="bloom-server"] .plus{max-width:1.2em; opacity:1; margin-inline:calc(var(--h) * .05)}
.wyg[data-sku="bloom-server"] .srv{max-width:calc(var(--h) * .66); opacity:.95}
.wyg .label{position:absolute; inset-inline:0; bottom:-32px; text-align:center; color:var(--label-2); font-size:14.5px}
.wyg .label b{color:var(--label); font-weight:600}
.sticky-buy{position:fixed; inset-inline:0; bottom:0; z-index:15; padding:10px 16px calc(10px + env(safe-area-inset-bottom)); background:rgba(20,18,16,.85); backdrop-filter:blur(14px); border-top:1px solid var(--separator); display:none; align-items:center; gap:12px; transform:translateY(100%); transition:transform .3s var(--ease)}
.sticky-buy.on{transform:none}
.sticky-buy .btn{flex:1}
.sticky-buy .sum{font-family:var(--display); white-space:nowrap} .sticky-buy .sum b{font-size:20px}
@media (max-width:880px){ .sticky-buy{display:flex} }

.inbox-list{list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:12px}
.inbox-list li{background:var(--surface); border-radius:var(--r); padding:16px 18px}
.inbox-list b{display:block; font-family:var(--display); font-weight:600}
.inbox-list span{color:var(--label-2); font-size:15px}
.faq details{border-top:1px solid var(--separator); padding:16px 0}
.faq details:last-child{border-bottom:1px solid var(--separator)}
.faq summary{cursor:pointer; font-weight:600; list-style:none; display:flex; justify-content:space-between; align-items:center; font-size:17px}
.faq summary::after{content:"+"; font-family:var(--display); font-size:24px; color:var(--label-3)}
.faq details[open] summary::after{content:"−"}
.faq details p{margin-top:8px; color:var(--label-2)}

/* ---- cart drawer & checkout sheet ---- */
.scrim{position:fixed; inset:0; background:rgba(0,0,0,.5); opacity:0; pointer-events:none; transition:opacity .25s; z-index:40}
.scrim.on{opacity:1; pointer-events:auto}
.sheet{position:fixed; z-index:41; background:var(--surface); color:var(--label); box-shadow:var(--shadow); display:flex; flex-direction:column;
  inset-block:0; inset-inline-start:0; width:min(420px,100%); transform:translateX(100%); transition:transform .32s var(--ease)}
.sheet.on{transform:none}
.sheet .grab{display:none}
@media (max-width:640px){
  .sheet{inset:auto 0 0 0; width:auto; max-height:92vh; border-radius:22px 22px 0 0; transform:translateY(100%)}
  .sheet .grab{display:block; width:38px; height:5px; border-radius:3px; background:var(--separator-strong); margin:10px auto 0}
}
.sheet header{display:flex; align-items:center; padding:18px 20px 12px}
.sheet header h2{font-size:22px}
.sheet header .x{margin-inline-start:auto; width:36px; height:36px; border-radius:50%; background:var(--fill); display:grid; place-items:center; font-size:18px}
.sheet .body{flex:1; overflow:auto; padding:0 20px 20px}
.sheet .foot{padding:14px 20px calc(16px + env(safe-area-inset-bottom)); border-top:1px solid var(--separator); display:grid; gap:10px}
.line{display:grid; grid-template-columns:1fr auto; gap:4px 12px; padding:14px 0; border-bottom:1px solid var(--separator)}
.line h4{margin:0; font-size:17px; font-weight:600}
.line .price{color:var(--label-2); font-size:15px}
.line .qty{grid-row:1/3; display:flex; align-items:center; gap:4px; background:var(--fill); border-radius:999px; padding:3px}
.line .qty button{width:32px; height:32px; border-radius:50%; font-family:var(--display); font-size:18px}
.line .qty button:hover{background:var(--fill-pressed)}
.line .qty b{min-width:24px; text-align:center; font-family:var(--display)}
.total{display:flex; justify-content:space-between; font-size:17px}
.total b{font-family:var(--display); font-size:22px}
.total.sub{font-size:15px; color:var(--label-2); margin-bottom:4px}
.total.off .price{color:var(--ok, #2f8f5b)}
.refmsg{font-size:14px; min-height:1.4em; margin-top:4px; color:var(--label-2)}
.refmsg.ok{color:var(--ok, #2f8f5b)} .refmsg.bad{color:var(--warn)}
.empty{padding:40px 0; text-align:center; color:var(--label-2)}
.field{display:grid; gap:4px; margin-top:12px}
.field label{font-size:14px; color:var(--label-2)}
.field input,.field textarea{font:inherit; color:var(--label); background:var(--surface-2); border:0; border-radius:12px; padding:12px 14px; width:100%}
.field input:focus,.field textarea:focus{outline:2px solid var(--tint)}
.field textarea{min-height:84px; resize:vertical}
.err{color:var(--warn); font-size:14px; min-height:1.4em}
.thanks{text-align:center; padding:30px 0}
.thanks .big{font-family:var(--display); font-size:48px}
.toast{position:fixed; bottom:24px; left:50%; transform:translate(-50%,20px); background:var(--tint); color:var(--on-tint); padding:12px 20px; border-radius:999px; font-weight:600; opacity:0; transition:.3s var(--ease); z-index:50; pointer-events:none}
.toast.on{opacity:1; transform:translate(-50%,0)}
@media (max-width:880px){ .toast{bottom:88px} }

/* ---- light pages (Bloom, About): the app's simple appearance, DESIGN.md §2 ---- */
body.light{
  --bg:#F3F1EC; --bg-2:#EAE6DF; --surface:#FBFAF7; --surface-2:#EFEBE4; --surface-3:#E4DFD7;
  --label:#1F1D1B; --label-2:#645D57; --label-3:#6F6861; --label-4:#A39B92;
  --tint:#1F1D1B; --on-tint:#FBFAF7; --fill:rgba(31,29,27,.07); --fill-pressed:rgba(31,29,27,.13);
  --water:#0F4C81; --terra:#A47864; --terra-ink:#85594A; --warn:#A5473A; --ok:#2E7A55;
  --separator:#DEDAD2; --separator-strong:#C9C2B8; --shadow:0 20px 50px rgba(31,29,27,.12);
  color-scheme:light;
}
body.light .nav{background:rgba(243,241,236,.78); border-bottom-color:var(--separator)}
body.light .art img, body.light .wyg img{filter:none}
body.light .wyg img.dim{opacity:.12}
body.light .wyg img.lit{opacity:.9}
body.light .opt{box-shadow:0 1px 0 var(--separator)}
body.light .opt .tag{color:#FBFAF7}
body.light .phero .shot::before{background:radial-gradient(55% 55% at 50% 62%, rgba(164,120,100,.22), rgba(164,120,100,0) 70%)}
body.light .phero .shot img{filter:drop-shadow(0 34px 34px rgba(31,29,27,.22))}
body.light .sticky-buy{background:rgba(243,241,236,.9)}
body.light .inbox-list li{box-shadow:0 1px 0 var(--separator)}
body.light .scrim{background:rgba(31,29,27,.35)}

/* app slides: the picture keeps its own shape */
.slide .ph{aspect-ratio:auto}
.slide .ph img{height:auto; aspect-ratio:600/1298}

/* ---- About page ---- */
.ahero{position:relative; padding:56px 0 40px; overflow:hidden}
.ahero .wrap{display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); gap:40px; align-items:end}
.ahero h1{font-size:clamp(36px,6vw,72px); line-height:1.15}
.ahero .lede{font-size:20px; color:var(--label-2); margin-top:20px; max-width:600px}
.ahero .arc{color:var(--label); opacity:.9; width:min(340px,80%); margin-inline:auto}
.ahero .arc svg{width:100%; height:auto}
@media (max-width:880px){ .ahero .wrap{grid-template-columns:1fr} .ahero .arc{display:none} }
.quote{font-family:var(--display); font-size:clamp(24px,3.2vw,36px); line-height:1.5; max-width:880px}
.quote em{font-style:normal; color:var(--terra-ink)}
.cols{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px}
@media (max-width:880px){ .cols{grid-template-columns:1fr} }
.card{background:var(--surface); border-radius:var(--r-lg); padding:26px 24px; box-shadow:0 1px 0 var(--separator); display:flex; flex-direction:column; gap:10px}
.card .k{font-family:var(--display); font-size:15px; color:var(--terra-ink); font-weight:600}
.card h3{font-size:22px}
.card p{color:var(--label-2); font-size:16px}
.card a.link{margin-top:auto; align-self:flex-start}
.card .pic{height:210px; display:flex; justify-content:center; align-items:flex-end; margin-bottom:6px; overflow:hidden}
.card .pic img{height:210px; width:auto; max-width:none; object-fit:contain}
.rules{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 48px}
@media (max-width:760px){ .rules{grid-template-columns:1fr} }
.rules div{padding:20px 0; border-top:1px solid var(--separator)}
.rules b{display:block; font-family:var(--display); font-size:19px; font-weight:600}
.rules p{color:var(--label-2); margin-top:4px}
.contact{display:grid; grid-template-columns:minmax(0,1fr) auto; gap:24px; align-items:center; background:var(--card,#23201D); color:#F3F1EC; border-radius:var(--r-lg); padding:34px 32px}
.contact p{color:#BDB5AC; margin-top:8px}
.contact .btn{background:#F3F1EC; color:#1F1D1B}
.contact .btn.ghost{background:rgba(243,241,236,.12); color:#F3F1EC}
@media (max-width:760px){ .contact{grid-template-columns:1fr} }

/* ---- Bloom page hero: drawing only, like a sheet of drafting paper (hamid, round 4) ---- */
.phero.bp{padding:36px 0 30px;
  background:
    linear-gradient(var(--bg) 0 0) padding-box,
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(31,29,27,.045) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(31,29,27,.045) 31px 32px);
  background-blend-mode:multiply}
body.light .phero.bp{background-color:var(--bg)}
.blueprint{position:relative; padding:20px 200px 70px 190px}
.bp-draw{position:relative; width:min(330px,100%); margin-inline:auto; aspect-ratio:570/1072; max-height:70vh}
.bp-draw img{position:absolute; inset:0; width:100%; height:100%; object-fit:contain; animation:bpIn 1.4s var(--ease) both}
@keyframes bpIn{from{clip-path:inset(0 0 100% 0); opacity:.4} to{clip-path:inset(0 0 0 0); opacity:1}}
.bp-draw .dim{position:absolute; inset:0; width:100%; height:100%; overflow:visible; stroke:var(--terra); stroke-width:1; vector-effect:non-scaling-stroke; fill:none}
.bp-draw .dim path{vector-effect:non-scaling-stroke}
.bp-draw .dim-l{position:absolute; top:50%; left:110%; transform:translate(-50%,-50%) rotate(-90deg); transform-origin:center; white-space:nowrap; font-family:var(--display); font-size:14px; color:var(--terra-ink); background:var(--bg); padding:0 6px}
.bp-draw .co{position:absolute; display:flex; align-items:center; gap:10px; font-size:14.5px; color:var(--label-2); white-space:nowrap; animation:coIn .6s var(--ease) both}
.bp-draw .co:nth-of-type(1){animation-delay:1.1s} .bp-draw .co:nth-of-type(2){animation-delay:1.3s} .bp-draw .co:nth-of-type(3){animation-delay:1.5s}
@keyframes coIn{from{opacity:0; transform:translateY(6px)} to{opacity:1; transform:none}}
.bp-draw .co i{width:34px; height:1px; background:var(--terra); position:relative}
.bp-draw .co i::after{content:""; position:absolute; inset-inline-end:-4px; top:-3px; width:7px; height:7px; border-radius:50%; background:var(--terra)}
.bp-draw .co.at-r{left:calc(100% + 6px); flex-direction:row-reverse; transform:translateY(-50%)}
.bp-draw .co.at-l{right:calc(100% + 6px); transform:translateY(-50%)}
.bp-draw .co.at-l i::after{inset-inline-end:auto; inset-inline-start:-4px}
.bp-draw .co b{display:block; color:var(--label); font-weight:600; font-size:15.5px}
.bp-draw .co span{line-height:1.4}
@keyframes coIn{from{opacity:0} to{opacity:1}}
.bp-legend{display:none; list-style:none; padding:0; margin:14px auto 0; max-width:300px; gap:6px; font-size:15px; color:var(--label-2)}
.bp-legend b{color:var(--label); font-weight:600; margin-inline-end:8px}
.bp-legend li{display:flex; justify-content:space-between; border-bottom:1px solid var(--separator); padding:6px 0}
.bp-stamp{position:absolute; bottom:0; inset-inline-start:0; display:grid; gap:2px; padding:10px 14px; border:1px solid var(--separator-strong); border-radius:4px; font-size:12.5px; color:var(--label-2); background:var(--bg)}
.bp-stamp b{font-family:var(--display); letter-spacing:.3em; font-size:14px; color:var(--label)}
@media (max-width:880px){
  .blueprint{padding:10px 0 70px}
  .bp-draw{width:min(160px,42vw)}
  .bp-draw .co,.bp-draw .dim,.bp-draw .dim-l{display:none}
  .bp-legend{display:grid}
  .bp-stamp{position:static; width:max-content; margin:14px auto 0}
  .blueprint{padding-bottom:10px}
  .phero .blueprint{order:-1}
}
@media (prefers-reduced-motion:reduce){ .bp-draw img,.bp-draw .co{animation:none} }

.appcta ol{list-style:persian}

/* hero: the four steps under the film, the current one fills as it plays */
.cuts .steps{position:absolute; inset-inline:12px; bottom:12px; margin:0; padding:10px 12px 9px; list-style:none; display:grid; grid-template-columns:repeat(4,1fr); gap:10px; border-radius:16px; background:rgba(20,18,16,.62); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); counter-reset:st}
.cuts .steps li{--p:0; counter-increment:st; display:grid; gap:6px; color:rgba(251,250,247,.55); font-size:13px; font-weight:500; line-height:1.3; transition:color .3s}
.cuts .steps li::before{content:""; height:3px; border-radius:2px; background:linear-gradient(to left, var(--paper) calc(var(--p) * 100%), rgba(251,250,247,.25) 0)}
.cuts .steps li span::before{content:counter(st, persian) " "; font-variant-numeric:tabular-nums}
.cuts .steps li.on{color:var(--paper); font-weight:700}
.cuts .steps li.done{color:rgba(251,250,247,.8)}
@media (max-width:480px){ .cuts .steps{gap:7px; padding:9px 10px 8px} .cuts .steps li{font-size:11.5px} }
