/* Noa, 2026-11-16: the seven "How it works" scenes, shared by previews/hiw-a|b|c.html.
   A scene = real LABZ captures placed off-centre and cropped on purpose, construction lines on the edges that tell
   the story, and one calm 8 s loop that plays only while .play is on. The still (no .play, or reduced motion)
   is always the finished state. */
.sc{position:absolute;inset:0;overflow:hidden;--k-teal:#17767C;--k-ink:#111B1D;--k-line:rgba(23,118,124,.34);container-type:size}
.sc img{display:block;width:100%;height:auto;user-select:none;-webkit-user-drag:none}
.sc .w{position:absolute;z-index:1}
.sc .sh{filter:drop-shadow(0 1px 1px rgba(17,27,29,.10)) drop-shadow(0 22px 28px rgba(17,27,29,.13))}
.sc .o{position:absolute}
/* a crop that is meant: the cut side fades out instead of ending on a hard line */
.sc .fade-s{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 16%);mask-image:linear-gradient(90deg,transparent 0,#000 16%)}
html[dir=rtl] .sc .fade-s{-webkit-mask-image:linear-gradient(270deg,transparent 0,#000 16%);mask-image:linear-gradient(270deg,transparent 0,#000 16%)}
/* final review: the same fade on the end side, ending where the stage cuts the window (01 upload: 75.8% of it) */
.sc .fade-e{-webkit-mask-image:linear-gradient(270deg,transparent 24%,#000 37%);mask-image:linear-gradient(270deg,transparent 24%,#000 37%)}
html[dir=rtl] .sc .fade-e{-webkit-mask-image:linear-gradient(90deg,transparent 24%,#000 37%);mask-image:linear-gradient(90deg,transparent 24%,#000 37%)}
.sc .fade-b{-webkit-mask-image:linear-gradient(180deg,#000 62%,transparent 96%);mask-image:linear-gradient(180deg,#000 62%,transparent 96%)}
html[dir=rtl] .sc{direction:rtl}
/* construction lines (placed by kit.js along real edges) */
.sc .cl{position:absolute;pointer-events:none;z-index:0}
.sc .cl.h{left:0;right:0;height:1px;background:repeating-linear-gradient(90deg,var(--k-line) 0 4px,transparent 4px 8px)}
.sc .cl.v{top:0;bottom:0;width:1px;background:repeating-linear-gradient(180deg,var(--k-line) 0 4px,transparent 4px 8px)}
.sc .tk{position:absolute;width:9px;height:9px;margin:-4px 0 0 -4px;z-index:3;pointer-events:none}
.sc .tk::before,.sc .tk::after{content:"";position:absolute;background:var(--k-teal)}
.sc .tk::before{left:4px;top:0;width:1px;height:9px}.sc .tk::after{top:4px;left:0;height:1px;width:9px}
.sc .cl,.sc .tk{transition:opacity .6s}
/* the cursor */
.sc .cur{position:absolute;z-index:9;width:18px;height:20px;left:0;top:0;opacity:0;pointer-events:none}
.sc .cur svg{width:18px;height:20px;overflow:visible;filter:drop-shadow(0 2px 3px rgba(0,0,0,.25))}
.sc .cur b{position:absolute;left:14px;top:17px;padding:3px 7px;border-radius:7px;background:var(--k-teal);color:#fff;font:500 11px/1.2 'Geist',sans-serif;white-space:nowrap}
html[dir=rtl] .sc .cur b{font-family:'Rubik',sans-serif}
.sc .clk{position:absolute;z-index:8;width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;border:1.5px solid var(--k-teal);opacity:0;pointer-events:none}

/* ---------- 01 upload ---------- */
/* final review: the window's own panel stays whole (the stage cut it mid-word: '…the modeling.', '…ughout'); the crop is
   on the end side through the empty drop zone, and the bottom is held in cqw so the stage always cuts the window at the
   same height (69% of it, 66.5% in Hebrew: under the budget slider's labels, above the summary), whatever the stage's
   proportion (72vh caps its height) */
/* 2026-11-17: a short stage (a laptop under ~750 px tall: the stage is 72vh) takes the same cut on a smaller window, so its
   top never leaves the stage (it went 30 px over at 1366 x 657): --ww is the width at which the window's top sits at 5% of
   the stage (window = 0.626 of its width tall; en shows 69% of it, he 66.5%), the bottom hangs the same share of it */
.sc-up .win{left:3%;top:auto;--ww:min(128cqw,219.9cqh);width:var(--ww);bottom:calc(var(--ww) * -.19409)}
html[dir=rtl] .sc-up .win{left:auto;right:3%;--ww:min(128cqw,228.2cqh);bottom:calc(var(--ww) * -.20974)}
.sc-up .zone{border-radius:10px;box-shadow:inset 0 0 0 1.5px var(--k-teal);background:rgba(42,155,162,.05);opacity:0}
.sc-up .found{z-index:2}
.sc-up .file{position:absolute;z-index:6;width:19%;left:73%;top:-2%;transform:rotate(-5deg);border-radius:3px;background:#fff;padding:.6% .6% .4%;box-shadow:0 1px 2px rgba(17,27,29,.12),0 24px 40px -16px rgba(17,27,29,.35);opacity:0}
html[dir=rtl] .sc-up .file{left:auto;right:73%}
.sc-up .file img{border-radius:2px}
.sc-up .file i{display:block;margin-top:4px;font:500 9.5px/1 'Geist Mono',monospace;letter-spacing:.04em;color:#5C6869;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-style:normal}

/* ---------- 02 model ---------- */
/* final review: the view ends above the capture's own wall bar (1900 x 812 of 1004), and the bar is a whole object of its own
   over the view's bottom, held in cqw (the stage cut it at 'Cente[r]', and at 1280 x 800 through its words) */
.sc-m .view{left:4%;top:7%;width:132%;aspect-ratio:1900/812;border-radius:14px;overflow:hidden;box-shadow:0 0 0 1px rgba(17,27,29,.08),0 22px 40px -22px rgba(17,27,29,.3)}
html[dir=rtl] .sc-m .view{left:auto;right:4%}
.sc-m .vin{position:relative}
.sc-m .walls{transform-origin:50% 96%;z-index:2}
.sc-m .dim{z-index:3}
/* 2026-11-17: on a short stage the bar (7.7cqw tall) rises to stay 2.3cqw above the stage's bottom (it was cut under ~750 px
   tall and gone under ~655) */
.sc-m .bar{z-index:4;left:17%;top:min(52cqw,calc(100cqh - 10cqw));width:76%;filter:drop-shadow(0 12px 18px rgba(17,27,29,.16))}
html[dir=rtl] .sc-m .bar{left:auto;right:17%;width:80.5%}
/* 2026-11-17, round 4: the view rises with the bar (62cqw - 100cqh is how far the bar rose) and a quarter of that more, at
   most 1.5cqw, so the house's base and the two dogs stand clear of the bar on a short stage (the raised bar lay across them
   at 1536 x 730 down to 1280 x 650); a stage tall enough for the bar's own place (1440 x 900, 1280 x 800) is unchanged */
.sc-m .view{top:calc(7% - max(0px, 62cqw - 100cqh) - min(max(0px, 62cqw - 100cqh) * .25, 1.5cqw))}
.sc-m .ring{position:absolute;z-index:5;border-radius:7px;box-shadow:0 0 0 2px rgba(42,155,162,.55);opacity:0}

/* ---------- 03 change ---------- */
.sc-ag .res{left:25%;top:7%;width:70%;border-radius:12px;overflow:hidden;box-shadow:0 0 0 1px rgba(17,27,29,.08),0 22px 40px -22px rgba(17,27,29,.3)}
html[dir=rtl] .sc-ag .res{left:auto;right:25%}
.sc-ag .res .aft{position:absolute;inset:0;clip-path:inset(0 0 0 0)}
.sc-ag .res .aft img{height:100%;object-fit:cover}
.sc-ag .res .edge{position:absolute;top:0;bottom:0;left:100%;width:2px;margin-left:-1px;background:linear-gradient(180deg,transparent,rgba(255,255,255,.95) 20%,rgba(255,255,255,.95) 80%,transparent);box-shadow:0 0 18px 4px rgba(143,227,230,.55);opacity:0}
/* 2026-11-17: the stage cuts the panel at the same height (55.8% of it, between two rail icons, above its fade) on a short
   stage too: the panel rises with the stage's bottom (it was cut through the answer at 1280 x 650) */
.sc-ag .panel{left:6%;top:min(47%,calc(100cqh - 34.78cqw));width:42%;z-index:3}
html[dir=rtl] .sc-ag .panel{left:auto;right:6%}
.sc-ag .q,.sc-ag .a{z-index:2}
.sc-ag .dots{z-index:2;display:flex;gap:4px;align-items:center;opacity:0}
.sc-ag .dots i{width:5px;height:5px;border-radius:50%;background:#7B8586}
.sc-ag .tag{position:absolute;z-index:4;padding:5px 9px;border-radius:7px;background:#fff;color:var(--k-ink);font:500 10.5px/1 'Geist Mono',monospace;letter-spacing:.06em;box-shadow:0 0 0 1px rgba(23,118,124,.35),0 10px 20px -10px rgba(17,27,29,.35)}
html[dir=rtl] .sc-ag .tag{font:500 12px/1 'Rubik',sans-serif;letter-spacing:0}

/* ---------- 04 draw ---------- */
.sc-s .board{left:5%;top:8%;width:105%;height:100%;border-radius:14px;background-color:#F7F8F8;background-image:radial-gradient(rgba(17,27,29,.16) .9px,transparent 1.1px);background-size:14px 14px;box-shadow:0 0 0 1px rgba(17,27,29,.08),0 22px 40px -22px rgba(17,27,29,.3)}
html[dir=rtl] .sc-s .board{left:auto;right:5%}
.sc-s .card{position:absolute;border-radius:5px;box-shadow:0 0 0 1px rgba(17,27,29,.08),0 10px 24px -14px rgba(17,27,29,.3)}
.sc-s .card img{border-radius:5px}
.sc-s .plan{left:4%;top:7%;width:43%}
html[dir=rtl] .sc-s .plan{left:auto;right:4%}
/* Noa 2026-11-22: two real SHEETZ preset cards (Collage section, Realistic living / dining elevation, one column). The header is the product's card
   header (dot, name, scale; the preset where the plan says when it was made), sized in the board's own width like the plan's */
.sc-s .board{container-type:inline-size}
.sc-s .pre{background:#fff;overflow:hidden}
.sc-s .pre img{border-radius:0 0 5px 5px}
.sc-s .pre .hd{display:flex;align-items:baseline;gap:.55cqw;padding:.95cqw 1.15cqw .75cqw;font:500 .98cqw/1.2 'Geist',sans-serif;color:#0B1214;white-space:nowrap}
.sc-s .pre .hd i{align-self:center;width:.6cqw;height:.6cqw;border-radius:50%;background:#B7C8C6;flex:none}
.sc-s .pre .hd em{font-style:normal;font-weight:400;color:#8EA3A3}
.sc-s .pre .hd span{margin-inline-start:auto;font-weight:400;color:#17767C}
html[dir=rtl] .sc-s .pre .hd{font-family:'Rubik',sans-serif}
html[dir=rtl] .sc-s .pre .hd em{direction:ltr}
.sc-s .sec{left:51%;top:7%;width:38.5%}
.sc-s .liv{left:51%;top:43%;width:38.5%}
html[dir=rtl] .sc-s .sec,html[dir=rtl] .sc-s .liv{left:auto;right:51%}
.sc-s .ask{position:absolute;left:21%;top:76%;width:47%;filter:drop-shadow(0 10px 16px rgba(17,27,29,.14))}
html[dir=rtl] .sc-s .ask{left:auto;right:21%}

/* ---------- 05 render ---------- */
.sc-rz .frame{left:5%;top:11%;width:71%;border-radius:10px;overflow:hidden;box-shadow:0 0 0 1px rgba(17,27,29,.08),0 22px 40px -22px rgba(17,27,29,.3)}
html[dir=rtl] .sc-rz .frame{left:auto;right:5%}
.sc-rz .frame .gold{position:absolute;inset:0;clip-path:inset(0 0 0 0)}
.sc-rz .frame .gold img{height:100%;object-fit:cover}
.sc-rz .frame .edge{position:absolute;top:0;bottom:0;left:100%;width:2px;margin-left:-1px;background:rgba(255,255,255,.95);box-shadow:0 0 22px 5px rgba(255,214,150,.7);opacity:0}
.sc-rz .hd{position:absolute;inset:4.5%;border:1px solid rgba(42,155,162,.9);pointer-events:none;z-index:2}
.sc-rz .hd i{position:absolute;width:9px;height:9px;border-radius:50%;background:#fff;box-shadow:0 0 0 1.5px #2A9BA2}
.sc-rz .hd i:nth-child(1){left:-5px;top:-5px}.sc-rz .hd i:nth-child(2){right:-5px;top:-5px}.sc-rz .hd i:nth-child(3){left:-5px;bottom:-5px}.sc-rz .hd i:nth-child(4){right:-5px;bottom:-5px}
.sc-rz .looks{left:59%;top:58%;width:37%;z-index:3}
.sc-rz .seg{left:63%;top:6%;width:33%;z-index:3}
html[dir=rtl] .sc-rz .looks{left:auto;right:59%} html[dir=rtl] .sc-rz .seg{left:auto;right:63%}

/* ---------- 06 share ---------- */
.sc-tz .room{left:5%;top:8%;width:70%;border-radius:12px;overflow:hidden;box-shadow:0 0 0 1px rgba(17,27,29,.08),0 22px 40px -22px rgba(17,27,29,.3)}
html[dir=rtl] .sc-tz .room{left:auto;right:5%}
/* 2026-11-17: on a short stage the phone (45.5cqw tall) and the link card rise to keep 2cqw and 3.3cqw under them (both were
   cut by the stage's bottom at 1366 x 657) */
.sc-tz .phone{left:74%;top:min(16%,calc(100cqh - 47.5cqw));width:21%;z-index:2;border-radius:22px;overflow:hidden;box-shadow:0 0 0 5px #0E1517,0 0 0 6px rgba(255,255,255,.08),0 30px 40px -20px rgba(17,27,29,.5)}
html[dir=rtl] .sc-tz .phone{left:auto;right:74%}
.sc-tz .link{left:9%;top:min(66%,calc(100cqh - 22.31cqw));width:48%;z-index:3}
html[dir=rtl] .sc-tz .link{left:auto;right:9%}
.sc-tz .pin{position:absolute;z-index:4;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:#2A9BA2;box-shadow:0 0 0 3px #fff,0 4px 10px rgba(0,0,0,.35)}
.sc-tz .note{position:absolute;z-index:4;padding:7px 10px;border-radius:9px 9px 9px 2px;background:#fff;color:var(--k-ink);font:400 12px/1.3 'Geist',sans-serif;white-space:nowrap;box-shadow:0 0 0 1px rgba(17,27,29,.08),0 14px 24px -12px rgba(0,0,0,.4)}
.sc-tz .note b{font-weight:500;color:var(--k-teal)}
.sc-tz .ok{position:absolute;z-index:4;padding:5px 9px;border-radius:999px;background:#E3F3F1;color:#17767C;font:500 11.5px/1 'Geist',sans-serif;box-shadow:0 0 0 1px rgba(23,118,124,.25)}
html[dir=rtl] .sc-tz .note,html[dir=rtl] .sc-tz .ok{font-family:'Rubik',sans-serif}
html[dir=rtl] .sc-tz .note{border-radius:9px 9px 2px 9px}

/* ---------- 07 export ---------- */
/* final review: held by its bottom in cqw so the stage cuts the window between two format rows (66.5% of it; 69.5% in
   Hebrew, whose rows sit higher), never through a line, whatever the stage's proportion */
/* 2026-11-17: as 01, a very short stage takes the same cut on a smaller window whose top stays at 5% of the stage (square
   window; en shows 66.5% of it, he 69.5%) */
.sc-x .win{left:23%;top:auto;--ww:min(72cqw,142.86cqh);width:var(--ww);bottom:calc(var(--ww) * -.335)}
html[dir=rtl] .sc-x .win{left:auto;right:23%;--ww:min(72cqw,136.7cqh);bottom:calc(var(--ww) * -.305)}
.sc-x .row{z-index:2;border-radius:9px;overflow:hidden}
.sc-x .row.k{box-shadow:0 0 0 2px rgba(42,155,162,.7);opacity:0}
.sc-x .row .lt{position:absolute;top:0;bottom:0;width:35%;left:-35%;background:linear-gradient(90deg,transparent,rgba(143,227,230,.45),transparent);opacity:0}
.sc-x .toast{position:absolute;z-index:5;left:4%;padding:9px 14px;border-radius:12px;background:rgba(11,18,20,.92);color:#E8F1F1;font:400 12.5px/1.3 'Geist',sans-serif;white-space:nowrap;box-shadow:0 14px 26px -10px rgba(0,0,0,.45)}
html[dir=rtl] .sc-x .toast{left:auto;right:4%;font-family:'Rubik',sans-serif}

/* ---------- small stages (phones): the same scenes, closer in ---------- */
@container (max-width:560px){
  .sc-up .win{left:-46%;top:16%;bottom:auto;width:148%;-webkit-mask-image:none;mask-image:none} html[dir=rtl] .sc-up .win{right:-46%;bottom:auto}
  .sc-up .file{width:30%;left:62%} html[dir=rtl] .sc-up .file{right:62%}
  .sc-m .view{left:-6%;top:9%;width:150%} html[dir=rtl] .sc-m .view{right:-6%}
  .sc-m .bar{left:4%;top:70%;width:92%} html[dir=rtl] .sc-m .bar{right:4%;width:92%}
  /* Noa 2026-11-22 (Yuval: on a phone the panel hid the island, so the change never showed): the render sits whole on top
     and the panel starts just under it, so the island and its sage sweep stay clear; the stage cuts the panel under the answer */
  .sc-ag .res{left:7%;top:1.5%;width:86%} html[dir=rtl] .sc-ag .res{right:7%}
  .sc-ag .panel{left:4%;top:50.5%;width:72%} html[dir=rtl] .sc-ag .panel{right:4%}
  .sc-s .board{left:5%;top:7%;width:150%} html[dir=rtl] .sc-s .board{right:5%}
  .sc-s .ask{width:62%;left:6%;top:80%} html[dir=rtl] .sc-s .ask{right:6%}
  /* Noa 2026-11-22: on a phone the styled drawings land on the plan, in view, one column: the elevation over its upper half,
     the section under it (the zoomed stage shows about 4% to 50% of the board's width) */
  .sc-s .pre .hd{font-size:1.25cqw;padding:1.1cqw 1.4cqw .9cqw;gap:.8cqw} .sc-s .pre .hd i{width:.75cqw;height:.75cqw}
  .sc-s .liv .hd em{display:none}
  .sc-s .sec{left:5%;top:36%;width:41%} html[dir=rtl] .sc-s .sec{right:5%}
  .sc-s .liv{left:5%;top:6%;width:41%} html[dir=rtl] .sc-s .liv{right:5%}
  .sc-rz .frame{left:5%;top:7%;width:90%} html[dir=rtl] .sc-rz .frame{right:5%}
  .sc-rz .seg{display:none}
  .sc-rz .looks{left:26%;top:52%;width:70%} html[dir=rtl] .sc-rz .looks{right:26%}
  .sc-tz .room{left:5%;top:6%;width:76%} html[dir=rtl] .sc-tz .room{right:5%}
  .sc-tz .phone{left:68%;top:20%;width:27%;border-radius:14px} html[dir=rtl] .sc-tz .phone{right:68%}
  .sc-tz .link{left:5%;top:62%;width:84%} html[dir=rtl] .sc-tz .link{right:5%}
  .sc-x .win{left:-2.5%;top:12%;bottom:auto;width:106%} html[dir=rtl] .sc-x .win{right:-2.5%;top:18%;bottom:auto}   /* every row whole across; cut between two rows */
  .sc .tk{display:none}
}
/* 2026-11-17: tablets get a square stage wider than a phone's; the phone zoom of 04 Draw (v2-r7.css) cut the elevation
   card's header there, so it is kept to phone stages (up to 560 px) and a wider one shows the whole board */
#stages .pm-stage{container:hiw-pm/inline-size}
/* round 4: the same for 01 Upload's x1.75 (the plan card never reached the drop zone on a tablet). At its own size the square
   stage hangs the window low (its top at ~45%), so the card starts lower too: where its set-down (up-file: +108% of its own
   height) puts its top just inside the zone's top edge, as on a desktop stage. Zone top = the window's top + 11.09% of the
   window (en 100cqh - .36254 x its width, he .34689); card height = 16.408cqw (padding + the plan) + 13.5px (its label) */
@container hiw-pm (min-width:561px){
  #stages .pm-stage .sc.sc-s,#stages .pm-stage .sc.sc-up{transform:none}
  .sc-up .file{top:calc(100cqh - .36254 * min(128cqw,219.9cqh) - .98 * (16.408cqw + 13.5px))}
  html[dir=rtl] .sc-up .file{top:calc(100cqh - .34689 * min(128cqw,228.2cqh) - .98 * (16.408cqw + 13.5px))}
}
/* ---------- motion (8 s loops, only with .play and motion allowed) ---------- */
@media (prefers-reduced-motion:no-preference){
  .sc.play *{animation-duration:8s;animation-iteration-count:infinite;animation-timing-function:cubic-bezier(.16,1,.3,1);animation-fill-mode:both}
  .sc.play .cl,.sc.play .tk{animation:k-lines 8s infinite}
  @keyframes k-lines{0%,6%{opacity:0}16%,90%{opacity:1}100%{opacity:0}}
  /* upload */
  .sc-up.play .file{animation-name:up-file}
  @keyframes up-file{0%{opacity:0;transform:translate(14%,-30%) rotate(-9deg)}8%{opacity:1}22%{opacity:1;transform:translate(-120%,95%) rotate(-3deg) scale(1)}27%{opacity:1;transform:translate(-120%,108%) rotate(0) scale(.96)}31%,100%{opacity:0;transform:translate(-190%,40%) scale(.2)}}
  /* final review: in Hebrew the card starts on the start side, so it travels the other way (it slid off the stage) */
  html[dir=rtl] .sc-up.play .file{animation-name:up-file-r}
  @keyframes up-file-r{0%{opacity:0;transform:translate(-14%,-30%) rotate(9deg)}8%{opacity:1}22%{opacity:1;transform:translate(120%,95%) rotate(3deg) scale(1)}27%{opacity:1;transform:translate(120%,108%) rotate(0) scale(.96)}31%,100%{opacity:0;transform:translate(190%,40%) scale(.2)}}
  .sc-up.play .cur{animation-name:up-cur}
  /* 2026-11-17: the cursor holds the card by its middle (kit.js up()) on the card's own keyframes, so the grip never slides */
  @keyframes up-cur{0%{opacity:0;transform:translate(var(--cx0),var(--cy0))}8%{opacity:1}22%{transform:translate(var(--cx1),var(--cy1))}27%{transform:translate(var(--cx2),var(--cy2))}40%{opacity:1}48%,100%{opacity:0;transform:translate(calc(var(--cx2) + 60px),calc(var(--cy2) + 60px))}}
  .sc-up.play .zone{animation-name:up-zone}
  @keyframes up-zone{0%,12%{opacity:0}18%,27%{opacity:1}36%,100%{opacity:0}}
  .sc-up.play .found{animation-name:up-found}
  @keyframes up-found{0%,29%{opacity:0;clip-path:inset(0 0 100% 0);transform:translateY(6px)}40%,90%{opacity:1;clip-path:inset(0 0 0 0);transform:none}98%,100%{opacity:0}}
  /* model */
  .sc-m.play .walls{animation-name:m-walls;animation-timing-function:cubic-bezier(.22,1,.36,1)}
  @keyframes m-walls{0%,4%{opacity:0;transform:scaleY(.02)}8%{opacity:1}26%,92%{opacity:1;transform:none}100%{opacity:0;transform:none}}
  .sc-m.play .dim{animation-name:m-pop}
  @keyframes m-pop{0%,27%{opacity:0;transform:scale(.8)}32%,90%{opacity:1;transform:none}96%,100%{opacity:0}}
  .sc-m.play .bar{animation-name:m-bar}
  @keyframes m-bar{0%,30%{opacity:0;transform:translateY(30%)}40%,92%{opacity:1;transform:none}100%{opacity:0}}
  .sc-m.play .ring{animation-name:m-ring}
  @keyframes m-ring{0%,44%{opacity:0}50%,58%{opacity:1}64%{opacity:.35}70%,82%{opacity:1}90%,100%{opacity:0}}
  /* change */
  .sc-ag.play .q{animation-name:ag-q}
  @keyframes ag-q{0%,5%{opacity:0;transform:translateY(14px) scale(.98)}13%,92%{opacity:1;transform:none}100%{opacity:0}}
  .sc-ag.play .dots{animation-name:ag-dots}
  @keyframes ag-dots{0%,15%{opacity:0}19%,30%{opacity:1}33%,100%{opacity:0}}
  .sc-ag.play .dots i{animation:ag-dot 1s infinite}
  .sc-ag.play .dots i:nth-child(2){animation-delay:.15s}.sc-ag.play .dots i:nth-child(3){animation-delay:.3s}
  @keyframes ag-dot{0%,100%{opacity:.25}50%{opacity:1}}
  .sc-ag.play .a{animation-name:ag-a;animation-timing-function:linear}
  @keyframes ag-a{0%,31%{opacity:0;clip-path:inset(0 0 100% 0)}32%{opacity:1}44%,92%{opacity:1;clip-path:inset(0 0 0 0)}100%{opacity:0}}
  .sc-ag.play .aft{animation-name:ag-sweep;animation-timing-function:cubic-bezier(.65,0,.35,1)}
  @keyframes ag-sweep{0%,46%{clip-path:inset(0 100% 0 0)}62%,94%{clip-path:inset(0 0 0 0);opacity:1}100%{clip-path:inset(0 0 0 0);opacity:0}}
  .sc-ag.play .res .edge{animation-name:ag-edge;animation-timing-function:cubic-bezier(.65,0,.35,1)}
  @keyframes ag-edge{0%,46%{left:0;opacity:0}48%{opacity:1}60%{opacity:1}62%,100%{left:100%;opacity:0}}
  .sc-ag.play .tag{animation-name:m-pop2}
  @keyframes m-pop2{0%,62%{opacity:0;transform:translateY(6px)}68%,92%{opacity:1;transform:none}98%,100%{opacity:0}}
  /* draw */
  .sc-s.play .plan{animation-name:s-land}
  .sc-s.play .sec{animation-name:s-land2}
  .sc-s.play .liv{animation-name:s-land3}
  @keyframes s-land{0%,2%{opacity:0;transform:translateY(-22px) scale(1.03);box-shadow:0 0 0 1px rgba(17,27,29,.06),0 40px 50px -20px rgba(17,27,29,.35)}11%,92%{opacity:1;transform:none}100%{opacity:0}}
  @keyframes s-land2{0%,7%{opacity:0;transform:translateY(-22px) scale(1.03)}16%,92%{opacity:1;transform:none}100%{opacity:0}}   /* Noa 2026-11-22 (Yuval: too slow): the plan in by .9 s, the next drawing .4 s after it */
  @keyframes s-land3{0%,10%{opacity:0;transform:translateY(-22px) scale(1.03)}19%,92%{opacity:1;transform:none}100%{opacity:0}}   /* the elevation .25 s after the section */
  .sc-s.play .cur{animation-name:s-cur}
  @keyframes s-cur{0%{opacity:0;transform:translate(var(--cx0),var(--cy0))}3%{opacity:1}8%{transform:translate(var(--cx1),var(--cy1))}13%{transform:translate(var(--cx2),var(--cy2))}18%{transform:translate(var(--cx3),var(--cy3));opacity:1}26%,100%{opacity:0;transform:translate(var(--cx3),calc(var(--cy3) + 40px))}}
  /* render */
  .sc-rz.play .cur{animation-name:rz-cur}
  @keyframes rz-cur{0%{opacity:0;transform:translate(var(--cx0),var(--cy0))}6%{opacity:1}18%{transform:translate(var(--cx1),var(--cy1))}22%{transform:translate(var(--cx1),calc(var(--cy1) + 3px))}30%{opacity:1}38%,100%{opacity:0;transform:translate(calc(var(--cx1) + 30px),calc(var(--cy1) + 50px))}}
  .sc-rz.play .clk{animation-name:k-clk}
  @keyframes k-clk{0%,21%{opacity:0;transform:scale(.4)}22%{opacity:1}30%,100%{opacity:0;transform:scale(1.7)}}
  .sc-rz.play .gold{animation-name:rz-sweep;animation-timing-function:cubic-bezier(.65,0,.35,1)}
  @keyframes rz-sweep{0%,26%{clip-path:inset(0 100% 0 0)}50%,94%{clip-path:inset(0 0 0 0);opacity:1}100%{clip-path:inset(0 0 0 0);opacity:0}}
  .sc-rz.play .frame .edge{animation-name:rz-edge;animation-timing-function:cubic-bezier(.65,0,.35,1)}
  @keyframes rz-edge{0%,26%{left:0;opacity:0}28%,48%{opacity:1}50%,100%{left:100%;opacity:0}}
  /* share */
  .sc-tz.play .cur{animation-name:tz-cur}
  @keyframes tz-cur{0%{opacity:0;transform:translate(var(--cx0),var(--cy0))}8%{opacity:1}26%{transform:translate(var(--cx1),var(--cy1))}30%{transform:translate(var(--cx1),calc(var(--cy1) + 3px))}46%{opacity:1;transform:translate(var(--cx1),var(--cy1))}56%,100%{opacity:0;transform:translate(calc(var(--cx1) + 40px),calc(var(--cy1) + 40px))}}
  .sc-tz.play .pin{animation-name:tz-pin;animation-timing-function:cubic-bezier(.34,1.56,.64,1)}
  @keyframes tz-pin{0%,29%{opacity:0;transform:scale(0)}35%,92%{opacity:1;transform:none}100%{opacity:0}}
  .sc-tz.play .note{animation-name:tz-note}
  @keyframes tz-note{0%,34%{opacity:0;transform:translateY(6px)}41%,92%{opacity:1;transform:none}100%{opacity:0}}
  .sc-tz.play .ok{animation-name:tz-ok}
  @keyframes tz-ok{0%,58%{opacity:0;transform:scale(.9)}64%,92%{opacity:1;transform:none}100%{opacity:0}}
  .sc-tz.play .clk{animation-name:k-clk2}
  @keyframes k-clk2{0%,29%{opacity:0;transform:scale(.4)}30%{opacity:1}40%,100%{opacity:0;transform:scale(1.7)}}
  /* export */
  .sc-x.play .cur{animation-name:x-cur}
  @keyframes x-cur{0%{opacity:0;transform:translate(var(--cx0),var(--cy0))}8%{opacity:1}24%{transform:translate(var(--cx1),var(--cy1))}28%{transform:translate(var(--cx1),calc(var(--cy1) + 3px))}40%{opacity:1}48%,100%{opacity:0;transform:translate(calc(var(--cx1) + 40px),calc(var(--cy1) + 50px))}}
  .sc-x.play .clk{animation-name:k-clk3}
  @keyframes k-clk3{0%,27%{opacity:0;transform:scale(.4)}28%{opacity:1}36%,100%{opacity:0;transform:scale(1.7)}}
  .sc-x.play .row.k{animation-name:x-row}
  @keyframes x-row{0%,18%{opacity:0}24%,58%{opacity:1}66%,100%{opacity:0}}
  .sc-x.play .row .lt{animation-name:x-lt;animation-timing-function:linear}
  @keyframes x-lt{0%,29%{left:-35%;opacity:0}30%{opacity:1}54%{left:100%;opacity:1}55%,100%{left:100%;opacity:0}}
  .sc-x.play .toast{animation-name:x-toast}
  @keyframes x-toast{0%,55%{opacity:0;transform:translateY(10px)}61%,92%{opacity:1;transform:none}100%{opacity:0}}
}
@media (prefers-reduced-motion:reduce){.sc .cur,.sc .clk,.sc .dots,.sc .zone{display:none}}

/* ======================= round 7: the three #control scenes (hiw-control.js) =======================
   Small stages (a third of the page): each tells its card's own point, one calm 8 s loop, the still = the finished state. */
.sc .ceil{position:absolute;top:0;bottom:0;width:1px;z-index:0;pointer-events:none;background:repeating-linear-gradient(180deg,rgba(23,118,124,.55) 0 4px,transparent 4px 8px)}
/* c-ag: the AGENTZ answer, line by line, then one Undo */
.sc-c-ag .ans{left:6%;top:13%;width:86%;border-radius:10px;overflow:hidden}
html[dir=rtl] .sc-c-ag .ans{left:auto;right:6%}
.sc-c-ag .ans>img:first-child{height:100%}
.sc-c-ag .undo{right:7%;bottom:9%;width:19%;border-radius:10px;overflow:hidden}
/* Hebrew: the plugin's capture keeps its tick on the left, so the Undo pair stays on the right */
html[dir=rtl] .sc-c-ag .ans{width:74%;top:10%}
.sc-c-ag .hit{border-radius:8px;box-shadow:0 0 0 1.5px rgba(42,155,162,.8);opacity:0}
/* c-bud: the MODELZ budget meter, Balanced -> Thorough */
.sc-c-bud .met{left:7%;top:9%;width:66%;border-radius:12px;overflow:hidden;-webkit-mask-image:linear-gradient(180deg,#000 74%,transparent 99%);mask-image:linear-gradient(180deg,#000 74%,transparent 99%)}
html[dir=rtl] .sc-c-bud .met{left:auto;right:7%}
.sc-c-bud .met>img:first-child{height:100%}
.sc-c-bud .n0{opacity:0}
.sc-c-bud .th{width:var(--tw);left:calc(var(--t1) - var(--tw) / 2);z-index:3}
.sc-c-bud .fill{z-index:2}
/* c-x: the sheet goes out as PDF, DXF or SVG; the model in its formats */
.sc-c-x .xm{right:5%;top:9%;width:56%;border-radius:12px;overflow:hidden;-webkit-mask-image:linear-gradient(180deg,#000 66%,transparent 97%),linear-gradient(90deg,transparent 0,#000 34%);mask-image:linear-gradient(180deg,#000 66%,transparent 97%),linear-gradient(90deg,transparent 0,#000 34%);-webkit-mask-composite:source-in;mask-composite:intersect}
html[dir=rtl] .sc-c-x .xm{right:auto;left:5%;-webkit-mask-image:linear-gradient(180deg,#000 66%,transparent 97%),linear-gradient(270deg,transparent 0,#000 34%);mask-image:linear-gradient(180deg,#000 66%,transparent 97%),linear-gradient(270deg,transparent 0,#000 34%)}
.sc-c-x .ch{border-radius:7px;box-shadow:0 0 0 1.5px rgba(42,155,162,.85),0 0 14px 2px rgba(143,227,230,.45);opacity:0}
.sc-c-x .pg{left:5%;top:9%;width:37%;z-index:2;border-radius:2px;overflow:hidden}
.sc-c-x .fm{left:5%;top:60%;width:36%;z-index:3;border-radius:11px;overflow:hidden}
.sc-c-x .go{left:5%;top:78%;width:24%;z-index:3;border-radius:11px;overflow:hidden}
html[dir=rtl] .sc-c-x .pg,html[dir=rtl] .sc-c-x .fm,html[dir=rtl] .sc-c-x .go{left:auto;right:5%}
.sc-c-x .f1,.sc-c-x .g1{position:absolute}
@media (prefers-reduced-motion:no-preference){
  /* c-ag */
  .sc-c-ag.play .l0{animation-name:cag-l0}.sc-c-ag.play .l1{animation-name:cag-l1}.sc-c-ag.play .l2{animation-name:cag-l2}.sc-c-ag.play .chk{animation-name:cag-chk}
  /* final review: the first line stays through the Undo, dimmed, so the card is never an empty black panel */
  @keyframes cag-l0{0%{opacity:.35;clip-path:inset(0 0 0 0)}6%,72%{opacity:1;clip-path:inset(0 0 0 0)}80%,100%{opacity:.35;clip-path:inset(0 0 0 0)}}
  @keyframes cag-l1{0%,19%{opacity:0;clip-path:inset(0 100% 0 0)}21%{opacity:1}29%,72%{opacity:1;clip-path:inset(0 0 0 0);transform:none}80%,100%{opacity:0;clip-path:inset(0 0 0 0);transform:translateY(-3px)}}
  @keyframes cag-l2{0%,31%{opacity:0;clip-path:inset(0 100% 0 0)}33%{opacity:1}41%,72%{opacity:1;clip-path:inset(0 0 0 0);transform:none}80%,100%{opacity:0;clip-path:inset(0 0 0 0);transform:translateY(-3px)}}
  html[dir=rtl] .sc-c-ag.play .l0{animation-name:cag-l0r}html[dir=rtl] .sc-c-ag.play .l1{animation-name:cag-l1r}html[dir=rtl] .sc-c-ag.play .l2{animation-name:cag-l2r}
  @keyframes cag-l0r{0%{opacity:.35;clip-path:inset(0 0 0 0)}6%,72%{opacity:1;clip-path:inset(0 0 0 0)}80%,100%{opacity:.35;clip-path:inset(0 0 0 0)}}
  @keyframes cag-l1r{0%,19%{opacity:0;clip-path:inset(0 0 0 100%)}21%{opacity:1}29%,72%{opacity:1;clip-path:inset(0 0 0 0);transform:none}80%,100%{opacity:0;clip-path:inset(0 0 0 0);transform:translateY(-3px)}}
  @keyframes cag-l2r{0%,31%{opacity:0;clip-path:inset(0 0 0 100%)}33%{opacity:1}41%,72%{opacity:1;clip-path:inset(0 0 0 0);transform:none}80%,100%{opacity:0;clip-path:inset(0 0 0 0);transform:translateY(-3px)}}
  @keyframes cag-chk{0%,42%{opacity:0;transform:scale(.6)}48%,72%{opacity:1;transform:none}80%,100%{opacity:0}}
  .sc-c-ag.play .cur{animation-name:cag-cur}
  @keyframes cag-cur{0%,48%{opacity:0;transform:translate(var(--cx0),var(--cy0))}52%{opacity:1}62%{transform:translate(var(--cx1),var(--cy1))}64%{transform:translate(var(--cx1),calc(var(--cy1) + 2px))}66%{transform:translate(var(--cx1),var(--cy1))}76%{opacity:1}86%,100%{opacity:0;transform:translate(calc(var(--cx1) - 30px),calc(var(--cy1) + 40px))}}
  .sc-c-ag.play .clk{animation-name:cag-clk}
  @keyframes cag-clk{0%,63%{opacity:0;transform:scale(.4)}64%{opacity:1}72%,100%{opacity:0;transform:scale(1.7)}}
  .sc-c-ag.play .hit{animation-name:cag-hit}
  @keyframes cag-hit{0%,58%{opacity:0}63%,76%{opacity:1}84%,100%{opacity:0}}
  /* c-bud */
  .sc-c-bud.play .th{animation-name:cb-th}
  @keyframes cb-th{0%,24%{left:calc(var(--t0) - var(--tw) / 2)}44%,84%{left:calc(var(--t1) - var(--tw) / 2)}96%,100%{left:calc(var(--t0) - var(--tw) / 2)}}
  .sc-c-bud.play .fill{animation-name:cb-fill}
  @keyframes cb-fill{0%,24%{clip-path:inset(0 calc(100% - var(--t0)) 0 0)}44%,84%{clip-path:inset(0 calc(100% - var(--t1)) 0 0)}96%,100%{clip-path:inset(0 calc(100% - var(--t0)) 0 0)}}
  html[dir=rtl] .sc-c-bud.play .fill{animation-name:cb-fillr}
  @keyframes cb-fillr{0%,24%{clip-path:inset(0 0 0 var(--t0))}44%,84%{clip-path:inset(0 0 0 var(--t1))}96%,100%{clip-path:inset(0 0 0 var(--t0))}}
  .sc-c-bud.play .ceil{animation-name:cb-ceil}
  @keyframes cb-ceil{0%,24%{transform:translateX(var(--d))}44%,84%{transform:none}96%,100%{transform:translateX(var(--d))}}
  .sc-c-bud.play .n0{animation-name:cb-n0}
  @keyframes cb-n0{0%,38%{opacity:1;transform:none}44%,88%{opacity:0;transform:translateY(-30%)}94%,100%{opacity:1;transform:none}}
  .sc-c-bud.play .n1{animation-name:cb-n1}
  @keyframes cb-n1{0%,40%{opacity:0;transform:translateY(30%)}46%,86%{opacity:1;transform:none}92%,100%{opacity:0;transform:translateY(-30%)}}
  .sc-c-bud.play .pts,.sc-c-bud.play .gets{animation-name:cb-fade}
  @keyframes cb-fade{0%,38%{opacity:0}48%,86%{opacity:1}94%,100%{opacity:0}}
  .sc-c-bud.play .cur{animation-name:cb-cur}
  @keyframes cb-cur{0%,6%{opacity:0;transform:translate(var(--cx0),var(--cy0))}10%{opacity:1}20%{transform:translate(var(--cx1),var(--cy1))}24%{transform:translate(var(--cx1),var(--cy1)) scale(.92)}44%{transform:translate(var(--cx2),var(--cy2)) scale(.92)}48%{opacity:1;transform:translate(var(--cx2),var(--cy2))}58%,100%{opacity:0;transform:translate(calc(var(--cx2) + 30px),calc(var(--cy2) + 46px))}}
  .sc-c-bud.play .clk{animation-name:cb-clk}
  @keyframes cb-clk{0%,22%{opacity:0;transform:scale(.4)}23%{opacity:1}30%,100%{opacity:0;transform:scale(1.6)}}
  /* c-x */
  .sc-c-x.play .f1,.sc-c-x.play .g1{animation-name:cx-swap}
  @keyframes cx-swap{0%,26%{opacity:0}29%,92%{opacity:1}100%{opacity:0}}
  .sc-c-x.play .go{animation-name:cx-go}
  @keyframes cx-go{0%,41%{transform:none}43%{transform:scale(.96)}46%,100%{transform:none}}
  .sc-c-x.play .ch{animation-name:cx-ch;animation-delay:calc(var(--i) * .5s);animation-duration:8s}
  @keyframes cx-ch{0%,50%{opacity:0}54%,62%{opacity:1}72%,100%{opacity:0}}
  .sc-c-x.play .cur{animation-name:cx-cur}
  @keyframes cx-cur{0%{opacity:0;transform:translate(var(--cx0),var(--cy0))}8%{opacity:1}24%{transform:translate(var(--cx1),var(--cy1))}27%{transform:translate(var(--cx1),calc(var(--cy1) + 2px))}29%{transform:translate(var(--cx1),var(--cy1))}40%{transform:translate(var(--cx2),var(--cy2))}43%{transform:translate(var(--cx2),calc(var(--cy2) + 2px))}48%{opacity:1;transform:translate(var(--cx2),var(--cy2))}58%,100%{opacity:0;transform:translate(calc(var(--cx2) + 30px),calc(var(--cy2) + 40px))}}
  .sc-c-x.play .clk{animation-name:cx-clk}
  @keyframes cx-clk{0%,26%{opacity:0;transform:scale(.4)}27%{opacity:1}34%,100%{opacity:0;transform:scale(1.7)}}
}
