/* v33 prototype · «بس تربّح؟» · Golden Hour Sadu as an instrument */
/* v38: the front page's own cuts (tools: fontTools subset): Kufi = Arabic + basic Latin, weights 400–800; Archivo = digits, Latin, punctuation, widths 80–100% */
@font-face{font-family:"Noto Kufi Arabic";src:url("../fonts/kufi-p1.woff2") format("woff2");font-weight:400 800;font-display:swap}
@font-face{font-family:"Archivo";src:url("../fonts/archivo-p1.woff2") format("woff2");font-weight:400 800;font-stretch:80% 100%;font-display:swap}

:root{color-scheme:only light}
:root{
  --haze:#FBF4F1; --paper:#FFFFFF; --ink:#231C2E; --ink-2:#4A3F52; --mute:#6B5F6E; --line:#EADCD8;
  --sun:#FFB21C; --sunwash:#FFE7AE; --sun-deep:#8A5A00;
  --sadu:#D3283E; --sadu-ink:#B81F33;
  --lift:0 1px 0 rgba(35,28,46,.06),0 8px 20px -10px rgba(120,60,60,.4);
  --lift-hi:0 24px 40px -24px rgba(120,60,60,.35);
  --ease-out:cubic-bezier(.23,1,.32,1);
  --ease-drawer:cubic-bezier(.32,.72,0,1);
  --bar:44px; --head:192px; --ctl:168px; --stub:calc(58px + env(safe-area-inset-bottom));
  --col:min(100vw - 32px, 560px);
  --ar:"Noto Kufi Arabic",system-ui,sans-serif;
  --num:"Archivo","Noto Kufi Arabic",system-ui,sans-serif;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
html{scroll-padding-bottom:calc(var(--stub) + 16px)} /* scroll mode: «كمّل» never hides under the stub */
body{background:var(--haze);color:var(--ink);font-family:var(--ar);overflow:hidden;overscroll-behavior:none;-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased}
:lang(ar){letter-spacing:0}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;touch-action:manipulation}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:10px}
.num,[data-num]{font-family:var(--num);font-variant-numeric:tabular-nums}

.app{position:fixed;inset:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:var(--bar) var(--head) 1fr minmax(var(--ctl),auto) var(--stub);height:100svh;user-select:none;-webkit-user-select:none}
.sky{position:absolute;inset:0 0 var(--stub) 0;width:100%;height:calc(100% - var(--stub));display:block;z-index:0}
.bar,.head,.stage,.ctl,.stub{position:relative;z-index:1}

/* bar: his name from 0 s */
.bar{display:flex;align-items:center;justify-content:space-between;width:var(--col);margin-inline:auto}
.nm{font-size:15px;font-weight:700}
.bar-end{display:flex;gap:18px;align-items:center}
.linkish{font-size:14px;font-weight:600;color:var(--ink-2);padding:10px 2px;text-decoration:underline;text-decoration-color:rgba(35,28,46,.25);text-underline-offset:5px}
.linkish.en{font-family:var(--num);text-decoration:none;padding-inline:10px;margin-inline:-10px}

/* head: credential + the question, fixed height so the stage never jumps */
.head{width:var(--col);margin-inline:auto;padding-top:8px}
/* the chapter: one line of his career, in his voice, opens every beat (v38: ink; only the year chip stays sadu red) */
.cred{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:13.5px;line-height:1.55;font-weight:600;color:var(--ink);text-wrap:pretty}
.cred .me{flex:none;width:24px;height:24px;border-radius:50%;object-fit:cover;object-position:50% 30%;box-shadow:0 0 0 1.5px #fff,0 4px 10px -4px rgba(120,60,60,.55)}
.cred .yr{color:var(--sadu-ink);font-family:var(--num);font-variant-numeric:tabular-nums;font-weight:700;margin-inline-end:7px;padding-inline-end:7px;border-inline-end:1px solid rgba(184,31,51,.3)}
.cred.big{gap:12px;font-size:16px;color:var(--ink-2)}
.cred.big b{color:var(--ink)}
.cred.big .me{width:44px;height:44px;box-shadow:0 0 0 2px #fff,0 8px 18px -8px rgba(120,60,60,.6)}
.q{margin:0;font-weight:700;line-height:1.25;text-wrap:balance}
.q .l1{display:block;font-size:36px}
.q .l2{display:block;font-size:50px;line-height:1.2}
.q.ask-q{font-size:27px;line-height:1.35}
.q.ask-q.long{font-size:23px;line-height:1.4}
.q .loss{color:var(--sadu-ink)}
.pull{position:relative;display:inline-block}
.pull-line{position:absolute;inset-inline:0;bottom:-.2em;height:4px;border-radius:2px;background:var(--sadu);transform:scaleX(0);transform-origin:100% 50%}
html[dir=ltr] .pull-line{transform-origin:0 50%}
.sub{margin:8px 0 0;font-size:15px;font-weight:600;color:var(--ink-2);min-height:1.6em}

/* stage */
.stage{touch-action:pan-y;cursor:grab} /* a drag starts only on the sun or the sand (prototype.js); the rest of the sky lets the page scroll */
.stage[data-beat="5"]{touch-action:none} /* the sand can be grabbed near its line */
.stage[data-beat="4"] .sunlbl{pointer-events:auto;cursor:text} /* tap the number to type it */
.stage.dragging{cursor:grabbing}
.ax,.pin,.sunlbl,.exlbl,.tag,.finger,.handle,.golden,.ticks span,.ghostlbl,.badge{position:absolute;top:0;left:0;will-change:transform;pointer-events:none}
.ax{font-size:13px;font-weight:700;color:var(--ink);opacity:0;white-space:nowrap}
.ax-dn{color:var(--sadu-ink)}
.pin{transition:opacity .25s var(--ease-out);display:flex;align-items:center;gap:6px;font-size:13px;font-weight:700;white-space:nowrap}
.pin i{width:10px;height:10px;border-radius:50%;background:var(--sun);box-shadow:0 0 0 3px rgba(255,178,28,.25)}
.pin[hidden]{display:none}
.pin b{background:var(--sunwash);padding:1px 7px;border-radius:6px}
.sunhit{position:absolute;top:0;left:0;border-radius:50%;touch-action:none;will-change:transform}
.sunlbl{transition:opacity .2s var(--ease-out);font-family:var(--num);font-variant-numeric:tabular-nums;font-weight:700;font-size:15px;white-space:nowrap;opacity:0;background:rgba(255,255,255,.72);padding:3px 10px;border-radius:999px;box-shadow:var(--lift)}
.sunlbl.big{font-size:26px;padding:2px 12px;letter-spacing:-.01em}
.sunlbl small{font-family:var(--ar);font-weight:600;font-size:13px;color:var(--ink-2)}
.sunlbl.hint{font-family:var(--ar);font-size:14px;background:rgba(255,255,255,.85)}
.exlbl{font-size:13px;font-weight:700;color:var(--ink-2);opacity:0}
/* B1: the sun is named «إعلاناتك» (the outer span is placed by prototype.js, the inner one pops in) */
.sunname{position:absolute;top:0;left:0;will-change:transform;pointer-events:none;opacity:0}
.sunname b{display:block;font-size:13px;font-weight:700;color:var(--ink);white-space:nowrap}
/* the coin labels itself: one tag per band, beside the sun */
.tag{font-size:13px;font-weight:700;color:var(--ink-2);opacity:0;white-space:nowrap;display:flex;align-items:center;gap:5px;transition:opacity .25s var(--ease-out)}
.tag::before{content:"";width:10px;height:10px;border-radius:3px;flex:none;background:#F2D5BE;box-shadow:inset 0 0 0 1px rgba(150,100,70,.35)}
#tagA::before{background:#F2B8B5;box-shadow:none}
.tag-y{color:var(--ink)}
.tag-y::before{background:var(--sun);box-shadow:none}
.tag-y.neg{color:var(--sadu-ink)}
.tag-y.neg::before{background:none;box-shadow:inset 0 0 0 1.5px var(--sadu);border-radius:50%}
/* the ghost finger: shows each physical control once */
.finger i{display:block;width:46px;height:46px;border-radius:50%;opacity:0;background:radial-gradient(circle at 50% 42%,rgba(255,255,255,.96),rgba(255,255,255,.6) 58%,rgba(255,255,255,.15) 74%);box-shadow:0 0 0 1.5px rgba(35,28,46,.16),0 12px 24px -10px rgba(80,30,40,.5)}
.ticks span{font-family:var(--num);font-size:12px;font-weight:600;color:var(--ink-2);opacity:0;transition:opacity .25s var(--ease-out)}
.ticks span::after{content:"";display:inline-block;width:10px;height:1px;background:currentColor;vertical-align:middle;margin-inline-start:5px;opacity:.6}
.ticks.on span{opacity:.85}
.handle{pointer-events:auto;display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-items:center;padding-block:7px;padding-inline:10px 12px;border-radius:14px;background:var(--paper);box-shadow:var(--lift);cursor:ns-resize;touch-action:none}
.handle .grip{width:18px;height:22px;background:repeating-linear-gradient(180deg,var(--sadu) 0 3px,transparent 3px 6px);border-radius:3px}
.handle .h1{font-size:13.5px;font-weight:700;white-space:nowrap}
.handle .h1 .num{font-size:17px}
.handle[hidden]{display:none}
/* B6: each platform says «لي!» about the same sale; the ghost is what their dashboards claim */
.badges{position:absolute;inset:0;pointer-events:none}
.badge{display:flex;align-items:center;gap:4px;padding-block:2px;padding-inline:5px 8px;border-radius:999px;background:var(--paper);box-shadow:var(--lift);font-size:12px;font-weight:700;white-space:nowrap}
.badge img{width:14px;height:14px;display:block}
.ghostlbl{font-size:12px;font-weight:700;color:var(--ink-2);opacity:0;white-space:nowrap;transition:opacity .25s var(--ease-out)}
.stage-lbl{position:absolute;top:0;left:0;will-change:transform;pointer-events:none;font-size:11px;font-weight:700;line-height:1.5;color:var(--ink);background:var(--paper);padding:1px 8px;border-radius:999px;box-shadow:var(--lift);white-space:nowrap;opacity:0;transition:opacity .25s var(--ease-out)} /* his stage, riding the dye front (B2–B7) */
.golden{font-size:15px;font-weight:700;color:var(--sun-deep);opacity:0;white-space:nowrap}

/* controls in the thumb zone */
.ctl{width:var(--col);margin-inline:auto;display:grid}
.panel{grid-area:1/1;display:none;flex-direction:column;justify-content:flex-start;gap:12px;padding-top:8px}
.panel.on{display:flex}
/* B1: the question you read is the button you press */
.row.gut .pill{flex:1 1 0;min-width:0;padding:0 12px;white-space:nowrap}
.row.gut .ghost{flex:none;height:48px;padding:0 14px}
.hint{margin:0;font-size:13px;font-weight:600;color:var(--ink-2)}
/* «كمّل»: skips a result moment's wait */
.nx{position:relative;align-self:flex-start;height:32px;padding:0 16px;font-size:14px}
.nx::after{content:"";position:absolute;inset:-6px -4px}
.nx[hidden]{display:none}
/* S2: the proposed spend (− ✓ +), the typed numbers, «خلاص، بس هذي» */
.prop{gap:8px}
.prop[hidden],.field[hidden]{display:none}
.prop .pill{flex:1 1 auto;min-width:0;padding:0 16px}
.prop .step{flex:none;min-width:48px;font-size:20px;line-height:1}
.prop .step:disabled{opacity:.35;cursor:default}
.field{display:flex;gap:8px;align-items:center}
.field input{flex:1 1 auto;min-width:0;height:44px;padding:0 16px;border:0;border-radius:999px;background:var(--paper);box-shadow:inset 0 0 0 1px rgba(35,28,46,.16);font:inherit;font-family:var(--num);font-size:16px;font-weight:600;color:var(--ink);user-select:text;-webkit-user-select:text}
.field input::placeholder{font-family:var(--ar);font-weight:600;color:var(--mute)}
.field .chip{flex:none}
.pl-done{align-self:flex-start}
#chips6:empty{display:none}
.panel[data-p="7"]{gap:8px}
.row{display:flex;gap:10px;align-items:center;margin:0}
.row.small{justify-content:center}
.pill{height:48px;padding:0 28px;border-radius:999px;background:var(--ink);color:var(--haze);font-weight:700;font-size:16px;transition:transform .12s var(--ease-out);box-shadow:var(--lift)}
.ghost{height:44px;padding:0 20px;border-radius:999px;background:rgba(255,255,255,.66);box-shadow:inset 0 0 0 1px rgba(35,28,46,.16);font-weight:700;font-size:15px;transition:transform .12s var(--ease-out)}
.pill:active,.ghost:active,.chip:active,.tile:active{transform:scale(.97)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips[hidden]{display:none}
.chip{position:relative;min-height:44px;height:auto;padding:6px 11px;white-space:normal;border-radius:999px;background:rgba(255,255,255,.32);box-shadow:inset 0 0 0 1px rgba(35,28,46,.09);font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;font-weight:600;color:var(--mute);transition:transform .12s var(--ease-out),background-color .15s}
.chip::after{content:"";position:absolute;inset:-4px -3px}
.chip.ar{font-family:var(--ar)}
.chip.on{background:var(--sunwash);box-shadow:inset 0 0 0 1.5px var(--sun);color:var(--ink)}
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tile{display:flex;align-items:center;gap:8px;height:52px;padding:0 12px;white-space:nowrap;border-radius:18px;background:var(--paper);box-shadow:var(--lift);font-weight:700;font-size:15px;text-align:start;transition:transform .12s var(--ease-out)}
.tile svg{flex:none;width:28px;height:28px;fill:none;stroke:var(--ink);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.tile.on{box-shadow:inset 0 0 0 2px var(--sun),var(--lift)}
.tile img{flex:none;width:24px;height:24px}
.tiles[hidden],.slips[hidden]{display:none}
/* v37 S4: sector tiles carry longer names (they wrap); the hint and the two links sit tight under them */
#tiles .tile{white-space:normal;line-height:1.25;font-size:14px;padding-inline:10px;gap:6px}
#tiles .tile svg{width:24px;height:24px}
@media (max-width:420px){#tiles .tile{font-size:13px;line-height:1.2;padding-inline:8px}}
.panel[data-p="2"]{gap:8px}
.sec-hint{text-align:center}
.panel[data-p="2"] .row.small{gap:16px;flex-wrap:wrap}
.panel[data-p="2"] .linkish{padding-block:6px}
/* services: the slips are appointment cards (rounded, a dot for the hole) */
.oslip.appt{border-radius:9px}
.oslip.appt::before{inset:7px auto auto calc(50% - 3px);width:6px;height:6px;border-radius:50%;background:rgba(35,28,46,.22)}
.oslip.appt::after{content:"";position:absolute;inset:20px 6px auto;height:12px;background:repeating-linear-gradient(180deg,rgba(35,28,46,.2) 0 1.5px,transparent 1.5px 5px)}
.oslip.appt.x::after{content:"✕";inset:0;height:auto;background:none;display:grid;place-items:center;color:var(--sadu);font-size:22px;font-weight:700;line-height:1}
/* B6 stores: ten order slips; tap how many come back */
.slips{display:flex;justify-content:center;gap:6px}
.oslip{position:relative;flex:0 1 26px;min-width:0;height:42px;border-radius:3px;background:var(--paper);box-shadow:var(--lift);transition:transform .12s var(--ease-out),opacity .15s}
.oslip::before{content:"";position:absolute;inset:8px 6px auto;height:16px;background:repeating-linear-gradient(180deg,rgba(35,28,46,.2) 0 1.5px,transparent 1.5px 5px)}
.oslip.x{opacity:.8}
.oslip.x::after{content:"✕";position:absolute;inset:0;display:grid;place-items:center;color:var(--sadu);font-size:22px;font-weight:700;line-height:1}
.oslip:active{transform:scale(.94)}
/* B7 the sealed envelope: drag across the top to tear it, or tap */
.env{position:relative;display:block;width:min(100%,260px);height:124px;margin:0 auto;border-radius:8px;background:var(--sadu);box-shadow:var(--lift-hi),var(--lift);overflow:hidden;touch-action:none;cursor:pointer}
.env .letter{position:absolute;inset:auto 7% 7%;height:80%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:4px 12px;text-align:center;background:var(--paper);border-radius:4px;color:var(--ink);transform:translateY(130%);transition:transform .3s var(--ease-drawer)}
.env .letter small{font-size:13px;font-weight:700;color:var(--mute)}
/* the card: his guess written on it, when it was sealed, and the ✓/✗ stamped on a beat later */
.env-g{font-size:13px;font-weight:700;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.env-ago{font-size:13px;font-weight:600;color:var(--mute);line-height:1.3}
.env-ago:empty{display:none}
.env .letter b{position:absolute;top:4px;inset-inline-end:8px;font-size:24px;line-height:1;color:var(--sun-deep);opacity:0;transform:rotate(-8deg)}
.env .letter b.no{color:var(--sadu)}
.env .letter b.ink{color:var(--ink)}
/* his flip point on a 0–10 ruler (the reason for the guess); the visitor's count slides onto it after the open */
.ruler{position:relative;display:block;flex:none;width:84%;height:22px;margin-top:2px}
.ruler[hidden]{display:none}
.ruler::before{content:"";position:absolute;inset-inline:0;top:0;height:7px;background:linear-gradient(rgba(35,28,46,.3),rgba(35,28,46,.3)) 0 6px/100% 1px no-repeat,linear-gradient(to right,rgba(35,28,46,.35) 1px,transparent 1px) 0 0/10% 7px repeat-x}
.ruler::after{content:"";position:absolute;right:0;top:0;width:1px;height:7px;background:rgba(35,28,46,.35)}
.rl-n{position:absolute;top:-2px;inset-inline-start:calc(var(--n,0) * 10%);width:2px;height:11px;margin-inline-start:-1px;background:var(--sadu)}
.rl-l{position:absolute;top:9px;inset-inline-start:calc(var(--n,0) * 10%);font-size:11px;line-height:1.2;font-weight:700;color:var(--sadu-ink);white-space:nowrap;transform:translateX(-50%)}
html[dir=rtl] .rl-l{transform:translateX(50%)}
.rl-d{position:absolute;top:-1px;inset-inline-start:0;width:8px;height:8px;margin-inline-start:-4px;border-radius:50%;background:var(--sun);box-shadow:0 0 0 1.5px var(--sun-deep);opacity:0;transition:inset-inline-start .3s cubic-bezier(.23,1,.32,1),opacity .15s}
.ruler.on .rl-d{inset-inline-start:calc(var(--r,0) * 10%);opacity:1}
.env .flap{position:absolute;inset:0 0 auto;height:60%;transform-origin:50% 0;transition:transform .4s var(--ease-drawer),opacity .3s}
.env .flap svg{display:block;width:100%;height:100%}
.env .perf{position:absolute;top:9px;inset-inline:8px;border-top:2px dashed rgba(251,244,241,.6)}
.env .cut{position:absolute;top:6px;inset-inline-start:0;width:0;height:8px;background:var(--haze);clip-path:polygon(0 30%,4% 70%,8% 25%,12% 75%,16% 30%,20% 70%,24% 25%,28% 75%,32% 30%,36% 70%,40% 25%,44% 75%,48% 30%,52% 70%,56% 25%,60% 75%,64% 30%,68% 70%,72% 25%,76% 75%,80% 30%,84% 70%,88% 25%,92% 75%,96% 30%,100% 70%,100% 100%,0 100%)}
.env .cut.go{transition:width .28s var(--ease-out)}
.env .cut.from-end{inset-inline-start:auto;inset-inline-end:0}
.env.open .flap{transform:scaleY(.1);opacity:0}
.env.open .letter{transform:translateY(0)}
.env.open{cursor:default}
/* B8: their next thought (their bubble above the headline, saffron = theirs, a real button), then one real case of his drawn to
   scale in ink: before at 18% up to a hairline, after at 85% (no red: red is a loss; no saffron: saffron is the visitor) */
.proof{display:flex;flex-direction:column;gap:6px}
.proof-q{display:block;width:fit-content;max-width:100%;margin:0 0 6px;margin-inline-start:auto;padding:4px 12px;border-radius:14px;border-end-end-radius:4px;background:var(--paper);box-shadow:inset 0 0 0 1.5px var(--sun);color:var(--ink);font-size:14px;font-weight:700;line-height:1.6}
.typing{display:inline-flex;gap:5px;align-items:center;height:1.2em}
.typing i{width:7px;height:7px;border-radius:50%;background:var(--ink-2);opacity:.3;animation:typing 1s infinite}
.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}
@keyframes typing{0%,100%{opacity:.3}50%{opacity:.8}}
.proof-row{display:flex;flex-direction:column;gap:4px}
.proof-lbl{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:0;font-size:13px;font-weight:700;color:var(--ink-2);line-height:1.3}
.proof-chip{font-family:var(--num);font-weight:800;font-variant-numeric:tabular-nums;font-size:15px;color:var(--ink)}
.proof-track{position:relative;height:10px;border-radius:3px;background:rgba(35,28,46,.06)}
.proof-b0,.proof-bar{position:absolute;inset:0;border-radius:3px;transform:scaleX(0);transform-origin:100% 50%}
.proof-b0{background:rgba(35,28,46,.18)}
.proof-bar{background:rgba(35,28,46,.85)}
.proof-h{position:absolute;top:-3px;bottom:-3px;width:1px;margin-inline-start:-.5px;background:var(--ink)}
html[dir=ltr] .proof-b0,html[dir=ltr] .proof-bar{transform-origin:0 50%}

/* the stub: the receipt has started printing */
.stub{display:flex;align-items:center;gap:12px;width:100%;padding:0 calc((100vw - var(--col))/2);padding-bottom:env(safe-area-inset-bottom);background:var(--paper);box-shadow:0 -10px 30px -18px rgba(120,60,60,.5);text-align:start}
.stub::before{content:"";position:absolute;inset-inline:0;top:-5px;height:6px;background:radial-gradient(circle at 5px 0,transparent 3.2px,var(--paper) 3.6px) 0 0/10px 6px repeat-x}
.stub-h{font-size:13px;font-weight:600;color:var(--mute);white-space:nowrap;min-width:0;flex:0 3 auto;overflow:hidden;text-overflow:ellipsis}
.stub-h::before{content:"";display:inline-block;width:14px;height:8px;margin-inline-end:7px;vertical-align:1px;background:repeating-linear-gradient(90deg,var(--sadu) 0 3px,transparent 3px 5px)}
/* the changing line keeps its width (the header gives way); the fly-in and the blurred verdict take turns in one place */
.stub-end{position:relative;flex:0 0 auto;max-width:100%;min-width:0;margin-inline-start:auto;display:grid;align-items:center}
.stub-end:not(.v) .stub-v,.stub-end.v .stub-last{position:absolute;inset-inline-end:0;top:50%;translate:0 -50%} /* the one not showing takes no width */
.stub-end>span{grid-area:1/1;justify-self:end;max-width:100%;transition:opacity .2s var(--ease-out)}
.stub-last{font-size:13.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.stub-v{display:flex;align-items:center;gap:6px;font-size:13.5px;white-space:nowrap;min-width:0;opacity:0}
.stub-end.v .stub-v{opacity:1}
.stub-end.v .stub-last{opacity:0}
.stub-dot{flex:none;width:6px;height:6px;border-radius:50%;background:var(--sadu)}
.stub-v b{font-weight:700}
.stub-vt{display:inline-block;max-width:9em;overflow:hidden;text-overflow:clip;color:var(--sadu-ink);font-weight:700}
.stub-vt.clear{max-width:none!important;text-overflow:ellipsis} /* clear: the short result, whole */
.stub-weave{position:absolute;top:0;inset-inline-start:calc((100vw - var(--col))/2);width:var(--col);height:6px;overflow:visible;pointer-events:none}
.wv-b{opacity:0}
.wv-b.on{opacity:1}
.gap{fill:var(--paper);transition:fill .3s var(--ease-out)}
.wv-sh{fill:var(--ink)}
.seal-t{flex:none;font-size:13px;font-weight:700;color:var(--sadu-ink);white-space:nowrap}
.seal-t:empty{display:none}
@media (max-width:429px){ .stub-date,.seal-w{display:none} .stub-vt{max-width:3.5em} .stub{gap:10px} }
@media (max-width:374px){ .stub-vt{max-width:2.5em} .stub{gap:8px} }
.stub-last .num{font-weight:700}
.seal{position:absolute;inset-inline-end:calc((100vw - var(--col))/2);top:-20px;opacity:0;transform-origin:50% 0;filter:drop-shadow(0 6px 8px rgba(120,30,40,.3))}

/* sheets */
.scrim{position:fixed;inset:0;z-index:5;background:rgba(251,244,241,.55);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)} /* a light frost, never a brown band */
.sheet{position:fixed;z-index:6;inset-inline:0;bottom:0;margin-inline:auto;width:min(100%,520px);max-height:88svh;overflow:auto;overscroll-behavior:contain;background:var(--paper);border-radius:22px 22px 0 0;padding:22px 20px calc(20px + env(safe-area-inset-bottom));box-shadow:0 -20px 60px -20px rgba(80,30,40,.45);user-select:text;-webkit-user-select:text}
.sheet[hidden]{display:none}
.close{display:block;width:100%;height:48px;margin-top:14px;border-radius:999px;box-shadow:inset 0 0 0 1px rgba(35,28,46,.16);font-weight:700}
.slip::before{content:"";position:sticky;top:-26px;z-index:1;display:block;height:24px;margin:-26px -20px 2px;background:linear-gradient(var(--paper),rgba(255,255,255,0));pointer-events:none}
.slip.folded .slip-rows li:nth-child(2),.slip.folded .slip-rows li:nth-child(3),.slip.folded .slip-rows li:nth-child(n+6){display:none}
.fold-row[hidden]{display:none}
.slip{background:var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .4 0 0 0 0 .4 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");border-radius:4px 4px 0 0;padding-top:26px}
.perf{position:absolute;inset-inline:0;top:-1px;height:8px;background:radial-gradient(circle at 6px 0,var(--haze) 3.6px,transparent 4px) 0 0/12px 8px repeat-x}
.slip-sig{margin:14px 0 8px;font-size:12.5px;font-weight:600;line-height:1.6;color:var(--mute)} /* his signature, grey, above the send row */
.slip-step{margin:14px 0 0;font-size:14px;line-height:1.8;font-weight:600}
.slip-step b{display:block;font-size:12.5px;color:var(--mute)}
.slip-step[hidden]{display:none}
.slip-t{margin:0 0 10px;font-size:13px;font-weight:600;color:var(--mute)}
.slip-top{margin:0 0 12px;padding-bottom:12px;border-bottom:1.5px dashed rgba(35,28,46,.28);font-size:18px}
.blur{filter:blur(6px);transition:filter .5s var(--ease-out);color:var(--sadu-ink);font-weight:700}
/* red is the leak's: a profit verdict reads ink on saffron wash */
.blur.pos,.stub-vt.pos{color:var(--ink);background:var(--sunwash);border-radius:6px;padding:0 6px}
/* the visitor's weave at the top of the slip */
.slip-weave{margin:-2px 0 12px}
.slip-weave svg{display:block;width:100%;height:16px;overflow:visible}
.slip-weave small{display:block;margin-top:5px;font-size:13px;font-weight:600;color:var(--mute)}
/* paper → pocket, the shipping caveat, the levers */
.slip-money{margin:-4px 0 12px}
.slip-money[hidden],.slip-ship[hidden],.levers[hidden],.lv-done[hidden],.roasbox[hidden],.mini[hidden],.money-t[hidden],.rb-x[hidden],.rb-n[hidden],.rb-q[hidden]{display:none}
.money-t{display:flex;align-items:center;gap:8px;margin:0;font-size:14.5px;font-weight:700;line-height:1.6}
.money-t>span{flex:1 1 auto;min-width:0}
.mini{flex:none;width:20px;height:20px;overflow:visible}
.mini path{stroke:var(--ink);stroke-opacity:.45;stroke-width:1}
.mini circle{fill:var(--sun);transform-box:fill-box;transform-origin:50% 50%;transition:transform .3s var(--ease-out)}
.mini.up circle{transform:translateY(-9px)}
.slip-ship{margin:4px 0 0;font-size:13px;font-weight:600;color:var(--mute);line-height:1.6}
.levers{margin-top:10px}
.lever{height:auto;min-height:34px;padding:4px 12px;line-height:1.4;text-align:start}
.lever.on::before{content:"✓";display:inline-grid;place-items:center;width:16px;height:16px;margin-inline-end:6px;border-radius:50%;background:var(--sun);color:var(--ink);font-size:11px;font-weight:800;vertical-align:-2px;animation:lvLand .22s var(--ease-out)}
@keyframes lvLand{from{transform:scale(1.6);opacity:0}to{transform:scale(1);opacity:1}}
.lv-done{margin:8px 0 0;font-size:13.5px;font-weight:700}
/* the box they type the break-even return into */
.roasbox{margin:14px 0 0}
.rb-l{margin:0 0 6px;font-size:13px;font-weight:700;color:var(--mute)}
.rb-f{display:flex;align-items:center;gap:10px;margin:0;height:48px;padding:0 14px;border-radius:10px;box-shadow:inset 0 0 0 1.5px var(--ink);background:var(--paper)}
.rb-f .num{font-size:22px;font-weight:800;direction:ltr;unicode-bidi:isolate}
.rb-ref{font-size:13px;font-weight:700;color:var(--sadu-ink)}
.rb-ref[hidden]{display:none}
.rb-n{margin:6px 0 0;font-size:13px;font-weight:600;color:var(--ink-2);line-height:1.6}
.slip.folded .slip-weave,.slip.folded .slip-ship,.slip.folded .levers,.slip.folded .lv-done,.slip.folded .roasbox,.slip.folded .rb-x,.slip.folded .rb-food{display:none}
/* the fold «كيف أكتبه؟», the platform's own figure, the boxes under it (one chip row each) */
.rb-how{margin:8px 0 0}
.rb-how summary{cursor:pointer;font-size:13px;font-weight:700;color:var(--ink);min-height:32px;display:flex;align-items:center}
.rb-q{margin:12px 0 6px;font-size:13px;font-weight:700;color:var(--mute)}
.rb-x{margin:14px 0 0}
.rb-x .field{margin-top:8px}
.rb-c .chip{min-height:36px}
/* step 1: which orders the platform learns from */
.learn{margin:8px 0 0}
.learn .chips{align-items:center}
.mslips{display:flex;gap:4px;margin:8px 0 0}
.mslips i{width:10px;height:14px;border-radius:2px;background:var(--paper);box-shadow:inset 0 0 0 1px rgba(35,28,46,.28);transition:opacity .2s var(--ease-out),background-color .2s,box-shadow .2s;transition-delay:calc(var(--k,0)*40ms)}
.mslips i.x{background:var(--sadu);box-shadow:none;opacity:.8}
.learn.on .mslips i.x{opacity:0}
.learn.on .mslips i:not(.x){background:var(--sunwash);box-shadow:inset 0 0 0 1.5px var(--ink)}
.ln-t{display:block;margin-top:6px;font-size:13.5px;font-weight:700}
.ln-t[hidden]{display:none}
/* step 6, shops: where the orders arrive */
.dm-t{align-items:center}
.dm-l{font-size:13px;font-weight:700;color:var(--mute)}
/* «على الورق / في جيبك» at step 6, where his chapter line was */
.cred.pp{flex-wrap:wrap;gap:2px 14px;font-size:14px;color:var(--ink-2)}
.pp-p,.pp-k{position:relative;white-space:nowrap}
.pp-p .num,.pp-k .num{font-weight:800;unicode-bidi:isolate}
.pp-p .num{position:relative}
.pp-p .num::after{content:"";position:absolute;inset-inline:-2px;top:52%;height:2px;background:var(--sadu);transform:scaleX(0);transform-origin:0 50%;transition:transform .3s var(--ease-out)}
html[dir=rtl] .pp-p .num::after{transform-origin:100% 50%}
.pp-p.struck .num::after{transform:scaleX(1)}
.pp-gap{white-space:nowrap;padding:0 8px;border-radius:999px;background:var(--sunwash);color:var(--sun-deep);font-weight:700}
.pp-gap .num{font-weight:800;unicode-bidi:isolate}
.odo-h{font-family:var(--num);font-size:44px;line-height:1.1;font-weight:800;font-variant-numeric:tabular-nums;unicode-bidi:isolate}
.odo-h.neg{color:var(--sadu-ink)}
.pp-k{opacity:.55;transition:opacity .3s var(--ease-out)}
.pp-k.lit{opacity:1;color:var(--ink)}
.odo{font-family:var(--num);font-variant-numeric:tabular-nums}
.odo.neg{color:var(--sadu-ink)}
/* the pin «توقّعك: أربح» gets a red line when the month flips */
.pin b{position:relative}
.pin b::after{content:"";position:absolute;inset-inline:4px;top:52%;height:2px;background:var(--sadu);transform:scaleX(0);transform-origin:100% 50%;transition:transform .3s var(--ease-out)}
html[dir=ltr] .pin b::after{transform-origin:0 50%}
.pin.struck b::after{transform:scaleX(1)}
.slip-rows .g .v{font-family:var(--ar);font-size:13.5px;line-height:1.5}
.slip-rows{list-style:none;margin:0;padding:0}
.slip-rows .ex{font-size:11px;font-weight:700;color:var(--sun-deep);background:var(--sunwash);border-radius:5px;padding:0 5px;margin-inline-start:6px}
.slip-note{margin:12px 0;font-size:13px;font-weight:600;color:var(--mute)}
.tearwrap{position:relative;display:flex;gap:10px;align-items:stretch;padding-top:10px;border-top:2px dotted rgba(35,28,46,.3)}
.tearwrap[hidden]{display:none}
.tearwrap .tear{flex:1;min-width:0}
.slip .tearwrap{position:sticky;bottom:calc(-20px - env(safe-area-inset-bottom));z-index:1;background:var(--paper);padding-bottom:calc(8px + env(safe-area-inset-bottom))}
.tear{display:block;width:100%;height:52px;border-radius:6px;background:var(--sadu);color:#fff;font-weight:700;font-size:16px;box-shadow:var(--lift)}
.msg pre{white-space:pre-wrap;font-family:var(--ar);font-size:14px;line-height:1.8;background:var(--haze);border-radius:12px;padding:12px 14px;margin:12px 0 6px}
.msg-note{margin:0;font-size:13px;color:var(--mute);font-weight:600}
.hire-top{display:flex;gap:14px;align-items:center}
.hire-top img{width:64px;height:64px;border-radius:50%;object-fit:cover}
.hire h2{margin:0;font-size:20px}
.role{margin:2px 0 0;font-weight:600;font-size:14.5px;color:var(--ink-2)}
.cv bdi,.hire bdi{white-space:nowrap}
.fact{color:var(--sadu);font-weight:700;margin:16px 0 10px;line-height:1.7}
.results{list-style:none;padding:0;margin:0}
.results li{display:flex;flex-direction:column;padding:10px 0;border-bottom:1px solid var(--line)}
.results b{font-size:13px;color:var(--ink-2)}
.results span{font-weight:700;text-wrap:pretty}
.toast{position:fixed;z-index:9;left:50%;bottom:calc(var(--stub) + 14px);transform:translate(-50%,20px);opacity:0;background:var(--ink);color:var(--haze);padding:9px 16px;border-radius:999px;font-size:14px;font-weight:600;pointer-events:none;transition:opacity .2s var(--ease-out),transform .2s var(--ease-out);white-space:nowrap}
.toast.on{opacity:1;transform:translate(-50%,0)}
.flyer{position:fixed;z-index:8;pointer-events:none;font-weight:700;font-size:14px;background:var(--sunwash);border-radius:8px;padding:2px 8px;white-space:nowrap}
.noscript{padding:24px}
.sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.q:focus{outline:none}
.backbar{position:fixed;z-index:9;left:50%;top:calc(var(--bar) + 6px);transform:translateX(-50%);display:flex;align-items:center;gap:14px;max-width:calc(100vw - 32px);padding:4px 6px 4px 16px;border-radius:999px;background:var(--paper);box-shadow:var(--lift),0 0 0 1px rgba(35,28,46,.08);font-size:14px;font-weight:700;white-space:nowrap}
html[dir=rtl] .backbar{padding:4px 16px 4px 6px}
.backbar[hidden]{display:none}
.backbar .linkish{padding:8px 10px}

/* desktop: a real composition. The words on the start side, the sun owns the other half */
@media (min-width:900px){
  :root{--bar:64px;--stub:calc(62px + env(safe-area-inset-bottom));--col:min(100vw - 96px, 1240px);--gut:max(48px, (100vw - 1240px) / 2)}
  .app{grid-template-columns:var(--gut) minmax(0,1fr) minmax(0,1.25fr) var(--gut);grid-template-rows:var(--bar) minmax(0,1fr) minmax(0,1fr) var(--stub);column-gap:0}
  .bar{grid-column:2/4;width:auto;margin:0}
  .head{grid-column:2;grid-row:2;width:auto;max-width:540px;margin:0;align-self:end;padding:0 0 26px}
  .ctl{grid-column:2;grid-row:3;width:auto;max-width:480px;margin:0;align-self:start}
  .stage{grid-column:3;grid-row:2/4;margin-inline-start:40px}
  .stub{grid-column:1/-1}
  .nm{font-size:16px}
  .cred{font-size:15px}
  .cred.big{font-size:18px}
  .cred.big .me{width:56px;height:56px}
  .q .l1{font-size:58px}
  .q .l2{font-size:80px}
  .q.ask-q{font-size:36px}
  .q.ask-q.long{font-size:31px}
  .odo-h{font-size:clamp(56px,4.4vw,72px)}
  .sub{font-size:17px}
}
@media (max-height:760px) and (max-width:899px) and (hover:none){
  :root{--head:164px;--ctl:156px}
  .q .l1{font-size:30px}.q .l2{font-size:42px}
  .cred{font-size:12.5px}.cred.big{font-size:14.5px}.cred.big .me{width:36px;height:36px}.q.ask-q{font-size:23px}.q.ask-q.long{font-size:20px}
  .tile{height:46px}
  .env{height:112px}
  .proof{gap:5px}.proof-row{gap:2px}
}
@media (hover:hover){
  .chip:hover,.ghost:hover{background:#fff}
  .tile:not(.on):hover{box-shadow:inset 0 0 0 1px rgba(35,28,46,.12),var(--lift)}
  .linkish:hover{color:var(--ink)}
}
@media (prefers-reduced-motion:reduce){
  *{scroll-behavior:auto}
  .pill,.ghost,.chip,.tile,.oslip,.env .flap,.env .letter,.env .cut.go,.mslips i{transition:none}
  .pill:active,.ghost:active,.chip:active,.tile:active{transform:none}
  .toast{transition:opacity .2s;transform:translate(-50%,0)}
}

/* ---------- step 3 · the ending is his profile ---------- */
/* the lab slip: value | healthy | flag, read like a blood test */
.slip-top small{display:block;margin-top:2px;font-size:13.5px;font-weight:700;color:var(--ink-2)}
.slip-head,.slip-rows li button{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,.9fr) 24px;column-gap:8px;align-items:baseline}
.slip-head{padding:0 0 4px;font-size:13px;font-weight:700;color:var(--mute)}
.slip-rows li button{padding:10px 0;border-bottom:1px solid var(--line);font-size:14.5px;text-align:start;width:100%}
.slip-rows .l{color:var(--ink-2);font-weight:600}
.slip-rows .v{font-weight:700;font-family:var(--num);font-variant-numeric:tabular-nums}
.slip-rows .ok{font-size:13px;font-weight:600;color:var(--mute);font-family:var(--num);font-variant-numeric:tabular-nums}
.slip-rows .f{font-size:13px;font-weight:700;color:var(--ink);text-align:end}
.slip-rows .f.dn{color:var(--sadu)}
.slip-rows .wide .v{grid-column:2/-1;font-family:var(--ar);font-size:13.5px}
.slip-rows .na .v{color:var(--mute);font-weight:600;font-family:var(--ar)}
.slip-step em{display:block;font-style:normal;font-size:13px;font-weight:700;color:var(--ink);margin-top:4px}
/* the tear: perforated stub, rips from the line's start, then falls */
.tear{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;height:60px;line-height:1.3;transform-origin:0 0;touch-action:none}
.tear b{font-size:16px}
.tear small{font-size:11.5px;font-weight:600;opacity:.85}
.tear-cut{position:absolute;top:0;inset-inline-start:0;width:0;height:9px;background:var(--paper);clip-path:polygon(0 0,100% 0,100% 40%,96% 90%,92% 35%,88% 85%,84% 40%,80% 90%,76% 35%,72% 85%,68% 40%,64% 90%,60% 35%,56% 85%,52% 40%,48% 90%,44% 35%,40% 85%,36% 40%,32% 90%,28% 35%,24% 85%,20% 40%,16% 90%,12% 35%,8% 85%,4% 40%,0 90%)}
.tear-cut.go{transition:width .2s var(--ease-out)}
.alt-btn{display:flex;align-items:center;justify-content:center;gap:8px;height:44px;margin-top:10px;border-radius:999px;box-shadow:inset 0 0 0 1.5px var(--ink);font-size:14.5px;font-weight:700;color:var(--ink);text-decoration:none;transition:transform .12s var(--ease-out)}
.alt-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.alt-btn:active{transform:scale(.97)}
.tearwrap .alt-btn{flex:none;flex-direction:column;gap:2px;height:auto;max-width:104px;margin:0;padding:0 12px;border-radius:6px;font-size:13px;line-height:1.35;text-align:center}
.msg-note a{display:inline-block;color:var(--ink);font-weight:700}
/* the back of the slip */
.back-h{margin:0 0 10px;font-size:19px;line-height:1.4}
.back-rows{list-style:none;margin:0;padding:0}
.back-rows li{display:grid;grid-template-columns:44px 1fr;column-gap:10px;padding:9px 0;border-bottom:1px dashed var(--line)}
.back-rows .t{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:12.5px;font-weight:700;color:var(--mute);padding-top:2px}
.back-rows p{margin:0;font-size:14.5px;font-weight:700;line-height:1.6}
.back-rows small{display:none;font-family:var(--num);font-size:12px;font-weight:600;color:var(--mute)}
.back-rows.terms small{display:block}
.back-end{margin:14px 0 0;font-size:16px;font-weight:700}
.slip .row.small{margin-top:10px}

/* who he is: knots on the sand's thread; the sun rides them */
#objG{transition:opacity .3s var(--ease-out)}
.stops{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .3s var(--ease-out)}
.stops.on{opacity:1}
.stop{position:absolute;top:0;left:0;width:34px;height:40px;will-change:transform;pointer-events:none}
.stops.on .stop{pointer-events:auto}
.stop i{position:absolute;top:7px;left:12px;width:10px;height:10px;border-radius:50%;background:var(--paper);box-shadow:0 0 0 1.5px var(--ink);transition:transform .2s var(--ease-out),background-color .2s}
.stop.on i{background:var(--sun);box-shadow:0 0 0 1.5px var(--sun-deep),0 0 0 5px rgba(255,178,28,.25);transform:scale(1.3)}
.stop .sy{position:absolute;top:22px;left:50%;transform:translateX(-50%);font-family:var(--num);font-variant-numeric:tabular-nums;font-size:11px;font-weight:700;color:var(--ink-2);opacity:0;transition:opacity .2s var(--ease-out)}
.stop.on .sy,.stop.end .sy{opacity:1}
.stop.on.end .sy,.stop.on .sy{color:var(--ink)}
.sidebtn{position:absolute;top:0;left:0;will-change:transform;font-size:11.5px;font-weight:700;color:var(--sadu-ink);background:rgba(255,255,255,.7);padding:3px 9px;border-radius:999px;box-shadow:inset 0 0 0 1px rgba(184,31,51,.3)}
.sidebtn.on{background:var(--sunwash);box-shadow:inset 0 0 0 1.5px var(--sun);color:var(--ink)}
.sidebtn[hidden]{display:none}
.cred.big.xl .me{width:52px;height:52px}
/* B10 payoff: 6 chips, each stage (front) flips into what it means for their business (back) */
.flips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.flips[hidden]{display:none}
.flips-h{grid-column:1/-1;margin:0;font-size:13px;font-weight:700;color:var(--ink-2)}
.flip{display:flex;align-items:center;justify-content:center;gap:6px;min-height:30px;padding:2px 8px;border-radius:10px;background:rgba(255,255,255,.4);box-shadow:inset 0 0 0 1px rgba(35,28,46,.1);font-size:12px;font-weight:700;line-height:1.25;color:var(--mute);text-align:center;transform-origin:50% 50%;will-change:transform}
.flip .bk{display:none}
.flip.on{background:var(--paper);box-shadow:var(--lift);color:var(--ink)}
.flip.on .fr{display:none}
.flip.on .bk{display:inline}
.flip.on::before{content:"";flex:none;width:6px;height:6px;background:var(--sadu);transform:rotate(45deg)}
.q.stop-q{font-size:17px;line-height:1.35}
.q.stop-q .pre{font-size:17px;color:var(--ink-2);margin-inline-end:6px}
.q.stop-q .big{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:44px;line-height:1.1;letter-spacing:-.01em;unicode-bidi:isolate}
.q.stop-q .unit{display:block;font-size:17px;color:var(--ink-2)}

/* three equal doors */
.doors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.door{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;height:92px;padding:6px 8px;border-radius:18px;background:var(--paper);box-shadow:var(--lift);font-weight:700;font-size:14px;line-height:1.35;text-align:center;text-wrap:balance;transition:transform .12s var(--ease-out)}
.door svg{width:26px;height:26px;fill:none;stroke:var(--ink);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.door:active{transform:scale(.97)}
.panel .row.small{gap:22px}

/* recruiter card and CV */
.role.yrs{color:var(--sadu-ink)}
.results li b bdi{font-weight:700}
.hire-go{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;margin:16px 0 0}
.hire-go .pill{display:inline-flex;align-items:center;text-decoration:none}
.cv-lead{font-weight:700;line-height:1.8;margin:16px 0 4px}
.cv h3{margin:18px 0 6px;font-size:14px;color:var(--sadu-ink)}
.cv ul{margin:0;padding-inline-start:18px;font-size:14px;line-height:1.85}
.cv .cv-roles{list-style:none;padding:0}
.cv-roles li{display:flex;flex-direction:column;padding:6px 0;border-bottom:1px solid var(--line)}
.cv-roles b{font-size:12.5px;color:var(--mute)}
.cv-side,.cv-p{font-size:14px;line-height:1.85;margin:8px 0 0}
/* v38: a personal link's greeting, the screening strip, the job-type tags, and the career as two threads (idea #18) */
.hr-for{display:inline-block;margin:0 0 12px;margin-inline-end:70px;padding:2px 10px;border-radius:999px;background:var(--sunwash);color:var(--sun-deep);font-size:13px;font-weight:700;line-height:1.6}
.hr-for[hidden]{display:none}
.hr-strip{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0 0}
.hr-strip span{padding:1px 8px;border-radius:999px;background:var(--haze);box-shadow:inset 0 0 0 1px var(--line);font-size:12px;font-weight:700;line-height:1.6;color:var(--ink-2)}
.cv-lead2{margin-top:0;font-weight:600}
.rt{font-style:normal;font-size:11.5px;font-weight:700;color:var(--mute);margin-inline-start:6px;white-space:nowrap}
.lanes-box{margin:4px 0 12px}
.lanes{display:block;width:100%;height:auto;overflow:visible}
.lanes text{font-size:10px;font-weight:700;fill:var(--ink-2);text-anchor:start}
.lanes text.end{text-anchor:end}
.lanes path{fill:none;stroke:var(--ink);stroke-linecap:round;stroke-dasharray:1;animation:lane .9s cubic-bezier(.23,1,.32,1) both}
.lanes .l1{stroke-width:4}
.lanes .l2{stroke-width:1.5;animation-duration:.65s;animation-delay:.25s}
.lanes .kn circle{fill:var(--paper);stroke:var(--ink);stroke-width:1.5}
.lanes-cap{margin:2px 0 0;font-size:12.5px;font-weight:600;color:var(--mute)}
@keyframes lane{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
/* a recruiter's #hire link: the owner screen stays hidden until the card opens (lang.js sets it, open() clears it) */
.door-hire .head,.door-hire .ctl,.door-hire .stage{visibility:hidden}

@media (min-width:900px){
  .cred.big.xl .me{width:72px;height:72px}
  .q.stop-q{font-size:22px}
  .q.stop-q .pre,.q.stop-q .unit{font-size:22px}
  .q.stop-q .big{font-size:76px}
  .door{height:110px;font-size:15px}
}
@media (max-height:760px) and (max-width:899px){
  .flips{gap:4px}.flip{min-height:26px;font-size:11.5px;line-height:1.15}
  .q.stop-q .big{font-size:34px}
  .cred.big.xl .me{width:40px;height:40px}
  .door{height:78px}
}
@media (prefers-reduced-motion:reduce){
  .door,.stop i,.tear-cut.go,.stops{transition:none}
  .lanes path{animation:none}
  .stage-lbl{transition:opacity .15s}
  .door:active{transform:none}
}
/* the 1-minute CV prints on its own */
@media print{
  @page{size:A4;margin:14mm}
  html,body{height:auto;overflow:visible;background:#fff}
  .scrim,.toast{display:none!important}
  .lanes path{animation:none}
  /* v38: the CV prints only from its «اطبع» (html.pcv, removed after printing) */
  .pcv .app,.pcv .sheet:not(.cv){display:none!important}
  .pcv .cv{display:block!important;position:static;max-height:none;overflow:visible;width:auto;padding:0;box-shadow:none;border-radius:0}
  .cv .no-print{display:none!important}
  .cv a{color:#231C2E}
  .cv .contact{display:block;margin-top:6px}
  .cv .contact .ct{display:block;min-height:0;padding:0;background:none;box-shadow:none;font-size:14px;line-height:1.85}
  .cv .contact .ct svg,.cv .ct-note{display:none}
  .cv .contact .ct small{font-size:14px;opacity:1;margin-inline-start:6px}
  /* Cmd+P anywhere else: an open sheet (the slip) prints on its own, never the CV */
  html:not(.pcv) .cv{display:none!important}
  html:not(.pcv):has(.sheet:not([hidden])) .app{display:none!important}
  html:not(.pcv) .sheet:not([hidden]){position:static;max-height:none;overflow:visible;width:auto;box-shadow:none;border-radius:0;transform:none!important}
}

/* ---------- step 4 · English: the same stage, mirrored (LTR), set in Archivo ---------- */
html[lang=en]{--ar:"Archivo",system-ui,sans-serif}
html[lang=en] .q{font-stretch:88%;letter-spacing:-.015em}
html[lang=en] .q .l1{font-size:32px}
html[lang=en] .q .l2{font-size:42px;font-stretch:80%;letter-spacing:-.02em}
html[lang=en] .cred{font-size:13px}
html[lang=en] .cred.big{font-size:15.5px}
html[lang=en] .tile{white-space:normal;line-height:1.2}
/* the receipt's stub drops from the line's end corner: left in Arabic, right in English */
html[dir=ltr] .tear{transform-origin:100% 0}
@media (min-width:900px){
  html[lang=en] .q .l1{font-size:52px}
  html[lang=en] .q .l2{font-size:64px}
  html[lang=en] .cred.big{font-size:17px}
}
@media (max-height:760px) and (max-width:899px){
  html[lang=en] .q .l1{font-size:27px}
  html[lang=en] .q .l2{font-size:36px}
}

/* ---------- v34 · the door to the rest of the site, and the recruiter card's three things to do ---------- */
/* beat 11 on phones: the control row grows so the door fits; the stage is re-measured (prototype.js) */
.app.b11{--ctl:252px}
.more-door{position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:72px;padding:10px 12px;padding-inline-start:18px;border-radius:18px;background:var(--paper);box-shadow:inset 0 0 0 1px rgba(35,28,46,.12),var(--lift);color:var(--ink);text-decoration:none;overflow:hidden;transition:transform .12s var(--ease-out),box-shadow .2s var(--ease-out)}
/* a sadu weave strip on the inline-start edge */
.more-door::before{content:"";position:absolute;inset-block:0;inset-inline-start:0;width:6px;background:repeating-linear-gradient(180deg,var(--sadu) 0 7px,var(--ink) 7px 9px,#FBE3D9 9px 13px,var(--ink) 13px 15px)}
.more-door img{flex:none;width:56px;height:56px;border-radius:50%;object-fit:cover}
.more-tx{flex:1;min-width:0;display:flex;flex-direction:column}
.more-tx b{font-size:20px;font-weight:700;line-height:1.3}
.more-tx small{font-size:13px;font-weight:600;line-height:1.55;color:var(--mute);text-wrap:pretty}
.more-arrow{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--ink)}
.more-arrow svg{width:18px;height:18px;fill:none;stroke:var(--haze);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html[dir=rtl] .more-arrow svg{transform:scaleX(-1)}
.more-door:active{transform:scale(.97)}
.more-door.sm{min-height:60px;margin-top:14px;gap:10px}
.more-door.sm img{width:40px;height:40px}
.more-door.sm .more-tx b{font-size:16px}
.more-door.sm .more-tx small{font-size:13px}
.more-door.sm .more-arrow{width:30px;height:30px}
/* recruiter card */
.hr-h{margin:20px 0 8px;font-size:14.5px;font-weight:700}
.hr-tag{display:inline-block;margin-inline-start:6px;padding:1px 8px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--line);font-size:11px;font-weight:700;color:var(--mute);vertical-align:middle}
.hr-roles .chip{height:36px;padding:0 13px;font-size:13.5px;color:var(--ink-2)}
.hr-res{margin-top:4px}
.hr-tools{margin:8px 0 0;font-size:12.5px;font-weight:600;line-height:1.7;color:var(--mute)}
.yr-nav{display:flex;align-items:center;gap:6px}
.yr-step{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(35,28,46,.16);transition:transform .12s var(--ease-out),opacity .15s}
.yr-step svg{width:18px;height:18px;fill:none;stroke:var(--ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html[dir=ltr] .yr-step svg{transform:scaleX(-1)}
.yr-step:disabled{opacity:.3;cursor:default}
.yr-step:active:not(:disabled){transform:scale(.97)}
.yr-strip{flex:1;min-width:0;display:flex;gap:6px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;padding:3px 2px}
.yr-strip::-webkit-scrollbar{display:none}
.yr-chip{flex:none;scroll-snap-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:64px;height:48px;padding:0 10px;border-radius:12px;box-shadow:inset 0 0 0 1px rgba(35,28,46,.12);transition:background-color .2s var(--ease-out),color .2s var(--ease-out)}
.yr-chip b{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:14px;line-height:1.2}
.yr-chip small{font-size:10.5px;font-weight:600;line-height:1.3;color:var(--mute);white-space:nowrap}
.yr-chip.on{background:var(--ink);color:var(--haze);box-shadow:none}
.yr-chip.on small{color:rgba(251,244,241,.75)}
.yr-card{margin-top:10px;padding:14px 16px;border-radius:14px;background:var(--haze);min-height:124px}
.yc-who{margin:0;font-size:13px;font-weight:700;color:var(--ink-2)}
.yc-yr{font-family:var(--num);font-variant-numeric:tabular-nums}
.yc-num{margin:4px 0 2px;font-size:15px;font-weight:700;line-height:1.3;color:var(--ink-2)}
.yc-num b{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:34px;line-height:1.15;color:var(--sadu-ink);unicode-bidi:isolate}
.yc-line{margin:0;font-size:13.5px;font-weight:600;line-height:1.6}
.scen{padding:14px 16px;border-radius:14px;box-shadow:inset 0 0 0 1px var(--line)}
.sc-n{margin:0;font-size:11.5px;font-weight:700;color:var(--mute)}
.sc-q{margin:2px 0 10px;font-size:16px;font-weight:700;line-height:1.5}
.sc-opts{display:flex;flex-direction:column;gap:8px}
.sc-opt{min-height:44px;padding:8px 14px;border-radius:12px;background:var(--paper);box-shadow:inset 0 0 0 1px rgba(35,28,46,.16);font-size:14.5px;font-weight:700;text-align:start;transition:transform .12s var(--ease-out),box-shadow .15s var(--ease-out)}
.sc-opt.on{box-shadow:inset 0 0 0 2px var(--ink)}
.sc-opt:active{transform:scale(.97)}
.sc-ans{margin-top:12px;padding-top:12px;border-top:1px dashed var(--line)}
.sc-ans[hidden]{display:none}
.sc-you{margin:0;font-size:12.5px;font-weight:600;color:var(--mute)}
.sc-his{margin:4px 0 0;font-size:14.5px;font-weight:600;line-height:1.75}
.sc-his b{color:var(--sadu-ink)}
.sc-end{margin:14px 0 0;font-size:15px;font-weight:700;line-height:1.6}
.sc-end + .hire-go{margin-top:10px}
/* the language switch inside the card and the CV: the sheet stays open */
.sh-lang{position:absolute;top:16px;inset-inline-end:16px;min-height:32px;padding:4px 10px;border-radius:999px;font-size:13px;font-weight:700;color:var(--ink-2);box-shadow:inset 0 0 0 1px rgba(35,28,46,.16)}
.sh-lang ~ .hire-top h2{padding-inline-end:70px}
/* the one contact block: three equal buttons, email is a real button */
.contact{display:grid;gap:8px;margin:20px 0 0}
.contact .ct{display:grid;grid-template-columns:20px minmax(0,1fr);column-gap:12px;align-items:center;min-height:56px;padding:8px 16px;border-radius:14px;background:var(--paper);box-shadow:inset 0 0 0 1.5px var(--ink);color:var(--ink);text-decoration:none;transition:transform .12s var(--ease-out),box-shadow .2s var(--ease-out)}
.contact .ct svg{grid-row:1/3;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.contact .ct b{font-size:15px;line-height:1.3}
.contact .ct small{font-size:12px;font-weight:600;line-height:1.3;opacity:.75;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.contact .ct-wa{background:var(--ink);color:var(--haze);box-shadow:var(--lift)}
.contact .ct:active{transform:scale(.97)}
.ct-note{margin:2px 0 0;font-size:12px;font-weight:600;color:var(--mute);text-align:center}
@media (hover:hover){
  .more-door:hover{box-shadow:inset 0 0 0 1px rgba(35,28,46,.18),var(--lift-hi)}
  .contact .ct:hover{transform:translateY(-2px)}
  .sc-opt:hover,.yr-chip:not(.on):hover{box-shadow:inset 0 0 0 1px rgba(35,28,46,.32)}
}
@media (max-height:760px) and (max-width:899px){
  .app.b11{--ctl:212px}
  .panel .more-door{min-height:60px}
  .panel .more-door small{display:none}
  .panel .more-door img{width:44px;height:44px}
}
@media (prefers-reduced-motion:reduce){
  .more-door,.alt-btn,.contact .ct,.sc-opt,.yr-step,.yr-chip{transition:none}
  .more-door:active,.alt-btn:active,.contact .ct:active,.sc-opt:active,.yr-step:active:not(:disabled),.contact .ct:hover{transform:none}
}

/* ---------- v37 · small, short and tablet screens ---------- */
/* under 360 px wide: long answers wrap instead of running off the button */
@media (max-width:359px){
  .row.gut{flex-wrap:wrap}
  .tile,.row.gut .pill,.row.gut .ghost{white-space:normal;height:auto;min-height:46px;line-height:1.3;padding-block:6px}
}
/* short screens (landscape phones, a zoomed desktop): the page scrolls, the sun keeps a 200 px band, the stub stays at the bottom.
   Upright phones never land here, whatever their height (prototype.js isShort() is the same rule) */
@media (max-height:559px) and (orientation:landscape){
  html,body{height:auto}
  html{overflow:auto}
  body{overflow:visible}
  .app{position:relative;height:auto;min-height:100svh;grid-template-rows:var(--bar) auto 200px auto var(--stub);overflow-x:clip} /* hidden labels never widen the page */
  .stub{position:sticky;bottom:0;z-index:4}
}
@media (max-height:559px) and (orientation:landscape) and (min-width:900px){
  .app{grid-template-rows:var(--bar) minmax(0,1fr) minmax(0,1fr) var(--stub)} /* desktop keeps its two columns, only taller than the window */
}
/* tablets upright: the answers sit right under the question, the sun's stage takes the rest below */
@media (min-width:700px) and (max-width:899px) and (orientation:portrait){
  .app{grid-template-rows:var(--bar) var(--head) minmax(var(--ctl),auto) 1fr var(--stub)}
  .ctl{grid-row:3}
  .stage{grid-row:4}
  .chip,.tile{min-height:44px}
}
/* v37 S2: reduced motion, final states at once */
@media (prefers-reduced-motion:reduce){
  .mini circle,.pp-p .num::after,.pin b::after,.pp-k,.gap,.stub-end>span,.rl-d{transition:none}
  .lever.on::before{animation:none}
}

/* ---------- v37 S3 · the slip, its back, the doors and sharing ---------- */
.golden{text-align:center;line-height:1.3}
.golden small{display:block;font-size:11px;font-weight:700;opacity:.8}
.stub-last.fr{white-space:normal;font-size:12.5px;line-height:1.35;font-weight:600}
/* the till: rows print, the corner is folded */
.corner{position:absolute;top:0;inset-inline-end:0;z-index:2;width:30px;height:30px;padding:0;transform-origin:100% 0}
.corner::before{content:"";position:absolute;top:0;inset-inline-end:0;width:18px;height:18px;background:linear-gradient(225deg,var(--haze) 50%,#EBD9CF 50%);border-end-start-radius:4px;box-shadow:-1px 1px 2px rgba(120,60,60,.25)}
html[dir=ltr] .corner{transform-origin:100% 0}
html[dir=rtl] .corner{transform-origin:0 0}
html[dir=rtl] .corner::before{background:linear-gradient(135deg,var(--haze) 50%,#EBD9CF 50%);box-shadow:1px 1px 2px rgba(120,60,60,.25)}
.tearwrap{flex-wrap:wrap}
.tear-pre{flex:0 0 100%;display:flex;flex-wrap:wrap;justify-content:space-between;gap:0 14px;margin:-6px 0 0}
.tear-pre .linkish{font-size:13px;padding:6px 0}
.preview{margin:4px 0 10px}
.preview[hidden],.qrbox[hidden],.keep[hidden],.stub2[hidden],.mir-end[hidden],.back-end[hidden]{display:none}
.preview pre{white-space:pre-wrap;font-family:var(--ar);font-size:13.5px;line-height:1.75;background:var(--haze);border-radius:12px;padding:10px 12px;margin:0 0 8px}
.plain-c{display:flex;flex-wrap:wrap;gap:6px}
.send-note{flex:0 0 100%;margin:0;font-size:12.5px;font-weight:600;line-height:1.5;color:var(--mute)}
.send-note[hidden]{display:none}
.flip-row{justify-content:center;margin:6px 0 0}
/* desktop and iPad: the code in a thin sadu frame, three equal ways */
.qrbox{display:grid;justify-items:center;gap:10px;padding:14px;border-radius:10px;box-shadow:inset 0 0 0 1.5px var(--sadu);background:var(--paper)}
.qr-frame svg{display:block;width:260px;height:260px}
.qr-t{margin:0;font-size:13.5px;font-weight:600;line-height:1.65;text-align:center;color:var(--ink-2);text-wrap:pretty}
.qr-btns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
.qrbox>.pill{width:100%}
.qr-btns>*{display:flex;align-items:center;justify-content:center;min-height:44px;padding:4px 8px;border-radius:999px;box-shadow:inset 0 0 0 1.5px var(--ink);font-size:13px;font-weight:700;line-height:1.3;text-align:center;color:var(--ink);text-decoration:none;transition:transform .12s var(--ease-out)}
.qr-btns>*:active{transform:scale(.97)}
/* the second stub: haze paper, an ink zig-zag edge */
.stub2{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-height:52px;margin-top:12px;border-radius:6px;background:var(--haze);color:var(--ink);line-height:1.35;transition:transform .12s var(--ease-out)}
.stub2::before{content:"";position:absolute;inset-inline:0;top:0;height:6px;background:linear-gradient(135deg,var(--ink) 25%,transparent 25%) 0 0/8px 6px,linear-gradient(225deg,var(--ink) 25%,transparent 25%) 0 0/8px 6px;opacity:.55}
.stub2 b{font-size:15px}
.stub2 small{font-size:12px;font-weight:600;color:var(--mute)}
.stub2:active{transform:scale(.97)}
/* the carbon copy for their team: white paper, a dashed edge */
.stub2.hand{background:var(--paper);box-shadow:inset 0 0 0 1.5px rgba(35,28,46,.3);border:1.5px dashed rgba(35,28,46,.35)}
.stub2.hand::before{display:none}
/* B7: the visitor interrupts (saffron ring = theirs); the ledger takes the envelope's place */
.heckles{flex-wrap:wrap;justify-content:center;gap:8px;margin-top:8px}
.env[hidden],.heckles[hidden],.heckle[hidden],.ledger[hidden],.bet-card[hidden],.door[hidden],.show-me[hidden]{display:none}
.heckle{padding:5px 14px;border-radius:999px;background:var(--paper);box-shadow:inset 0 0 0 1.5px var(--sun);color:var(--ink);font-size:14px;font-weight:700;line-height:1.5;transition:transform .12s var(--ease-out)}
.heckle:active{transform:scale(.97)}
.ledger{width:min(100%,300px);margin:0 auto;padding:10px 14px;border-radius:8px;background:var(--paper);box-shadow:var(--lift)}
.ledger p{margin:0;font-size:13.5px;font-weight:600;line-height:1.8;color:var(--ink-2)}
.ledger p:last-child{margin-top:2px;padding-top:2px;border-top:1px solid var(--line);font-weight:700;color:var(--ink)}
/* B10: «وريني», then each answer with his year knots into its stop */
.show-me{display:block;margin:0 auto 8px}
.yr-pill.pair{background:var(--paper);color:var(--ink);font-family:var(--ar);box-shadow:var(--lift)}
.yr-pill.pair span{color:var(--sadu-ink);font-family:var(--num)}
/* B11: «وين راح 2,400 ريال؟» big, the promise small; a friend's bet */
.sub-big{display:block;font-size:20px;font-weight:800;line-height:1.4;color:var(--ink)}
.sub-sm{display:block;margin-top:4px;font-size:13px;font-weight:600}
.bet-card{margin:0 0 6px;font-size:13px;font-weight:700;color:var(--ink-2)}
.bet-t{margin:0 0 12px;font-size:17px;font-weight:700;line-height:1.6}
/* desk: behind an open sheet the headline is hidden (it sat beside the sheet, half-faded) */
@media (min-width:900px){.app[inert] .head{visibility:hidden}}
.keep{margin:10px 0 0;font-size:13px;font-weight:600;color:var(--mute);text-align:center}
.keep [hidden]{display:none}
/* a return visit: last month's line on a card behind the slip */
.lastcard{position:fixed;z-index:6;inset-inline:0;margin-inline:auto;width:min(calc(100% - 40px),480px);padding:10px 16px 34px;border-radius:14px 14px 0 0;background:var(--paper);box-shadow:var(--lift);transform:rotate(-3deg);font-size:13.5px;font-weight:700;color:var(--ink-2)}
.lastcard[hidden]{display:none}
.staple{position:absolute;top:6px;inset-inline-start:22px;width:8px;height:2px;background:var(--sadu)}
.slip{z-index:7}
/* the back: Arabic name first, the textbook name small; the mirror turns each row around */
.back-rows .br{transform-origin:50% 50%}
.back-rows .tn{display:block;margin-top:2px;font-size:13px;font-weight:700;color:var(--ink)}
/* idea #1: face down, two small answers; face up, the name (saffron wash when they felt it) */
.back-rows .st-q{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.back-rows .st-q .chip{min-height:36px;font-size:12.5px}
.back-rows .tg{display:inline-block;margin-top:4px;padding:1px 8px;border-radius:6px;box-shadow:inset 0 0 0 1px var(--line)}
.back-rows .tg[hidden]{display:none}
.back-rows .tg.ok{background:var(--sunwash);box-shadow:none}
.back-rows.mir li.hk{display:none}
.st-band{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 10px;padding:0 3px}
.st-band i{width:10px;height:10px;transform:rotate(45deg);box-shadow:inset 0 0 0 1.5px rgba(35,28,46,.3)}
.st-band i.y{background:var(--sun);box-shadow:inset 0 0 0 1.5px var(--sun-deep)}
.st-band i.n{background:var(--line);box-shadow:none}
.back-score{margin:0 0 8px;font-size:15px;font-weight:700;line-height:1.6;text-wrap:pretty}
.back-score[hidden],#termsBtn[hidden]{display:none}
/* the story card where a file can't be shared: the picture, to save by hand */
.story-sh img{display:block;width:min(100%,260px);height:auto;margin:0 auto;border-radius:12px;box-shadow:var(--lift)}
/* «تبي تتأكد؟», «وريني», «امسحها»: small links inside the line under the question */
.sub .in-sub{font-size:inherit;padding:0 2px}
.back-rows .bk{display:none;margin:0;font-size:14px;font-weight:600;line-height:1.7}
.back-rows .fy{color:var(--ink);margin-inline-end:4px}
#rbLine bdi{white-space:nowrap}
.back-rows.mir .fr,.back-rows li.on .fr{display:none}
.back-rows.mir .bk,.back-rows li.on .bk{display:block}
.back-rows.mir li.on .fr{display:block}
.back-rows.mir li.on .bk{display:none}
.back-rows .try{height:28px;margin-top:4px;font-size:12.5px;color:var(--ink-2)}
.story{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:16px}
.story small{font-size:12px;font-weight:600;color:var(--mute);text-align:center}
/* «انتبهت؟»: his years fly onto their knots */
.yr-pill{position:fixed;left:0;top:0;z-index:8;pointer-events:none;padding:1px 8px;border-radius:999px;background:var(--sadu);color:#fff;font-family:var(--num);font-size:12px;font-weight:700}
/* step 11: the main door spans the row; hiring, hello and the friend's door share the next */
.doors-l{margin:0 0 6px;font-size:13px;font-weight:700;color:var(--ink-2)}
.doors .door-main{grid-column:1/-1;flex-direction:row;justify-content:flex-start;gap:12px;height:auto;min-height:64px;padding:8px 16px;text-align:start;background:var(--ink);color:var(--haze)}
.door-main svg{stroke:var(--haze)}
.door-tx{display:flex;flex-direction:column;min-width:0}
.door-tx b{font-size:16px;line-height:1.35}
.door small{font-size:11.5px;font-weight:600;line-height:1.3;opacity:.8}
.door-main small{font-size:12px}
.door-hold[hidden]{display:none}
.door-hold{color:var(--sunwash);opacity:1}
.doors .door:not(.door-main){height:auto;min-height:76px;gap:3px;font-size:13px}
.door-foot{flex-wrap:wrap;justify-content:space-between}
.mail-line{font-size:13px}
.mail-line bdi{font-family:var(--num)}
@media (max-height:760px) and (max-width:899px){
  .doors .door:not(.door-main){min-height:62px}
  .doors .door:not(.door-main) svg{width:22px;height:22px}
  .doors .door-main{min-height:56px;padding-block:6px}
  .doors-l{margin-bottom:4px}
  .app.b11{--ctl:300px}
}
@media (max-height:660px) and (max-width:899px){
  #doorFwd small{display:none}
  .doors .door:not(.door-main){min-height:52px}
  .doors .door-main{min-height:0;padding-block:5px}
  .panel .more-door{min-height:52px;padding-block:6px}
  .panel .more-door img{width:36px;height:36px}
  .door-foot .linkish{padding-block:6px}
  .app.b11{--ctl:276px}
}
@media (min-width:900px){
  .doors .door:not(.door-main){min-height:84px}
  .app.b11{grid-template-rows:var(--bar) minmax(0,.8fr) minmax(0,1.2fr) var(--stub)} /* the doors need the room more than the words */
  /* the slip sits under the text column, the sun stays in view */
  .slip{width:400px;inset-inline-start:var(--gut);inset-inline-end:auto;margin:0}
  .lastcard{width:360px;inset-inline-start:calc(var(--gut) + 20px);inset-inline-end:auto;margin:0}
  .scrim{background:rgba(251,244,241,.55);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
}
@media (prefers-reduced-motion:reduce){
  .qr-btns>*,.stub2,.heckle{transition:none}
  .qr-btns>*:active,.stub2:active,.heckle:active{transform:none}
  .typing i{animation:none}
}
/* English first paint: the sky shows, the words wait for English (3 s at most if the script fails) */
html.lw .app>:not(.sky){visibility:hidden;animation:lwShow 0s 3s forwards}@keyframes lwShow{to{visibility:visible}}
/* English never fetches the Arabic font for its first screen: «عربي» uses the system's */
html[lang=en] .linkish.en,html[lang=en] .sh-lang{font-family:system-ui,sans-serif}
/* v38: one continuous take into the longer page (browsers with cross-document view transitions; prototype.js names the stub and the avatar just before it goes) */
@view-transition{navigation:auto}
@media (prefers-reduced-motion:reduce){@view-transition{navigation:none}}

/* v41 «خيط واحد»: the card that opens «more about me» shows the visitor's weave so far (gold) and the 4 chapters still to come (faint) */
.more-band{display:none;grid-template-columns:repeat(12,1fr);gap:3px;margin-top:8px;max-width:260px}
.more-band i{height:14px;border-radius:2px;background:repeating-linear-gradient(90deg,#D3283E 0 3px,transparent 3px 7px);opacity:.3}
.more-band i.on{background:repeating-linear-gradient(90deg,#FFB21C 0 5px,#FFE7AE 5px 8px);opacity:1}
.more-carry{display:none}
.has-band .more-band{display:grid}
.has-band .more-carry{display:block}
