/* R50 (18.11.2026), home page: "ככה רעיון מקבל חיים" as a scene the visitor walks through with the scroll.
   Rafael: it happened in a second and could be missed; it should be far more interactive, with letters like
   code, something with style, something that is a pleasure to scroll through.
   The scene holds the screen for about three screens of scrolling. An idea begins as loose letters of code;
   listening gathers them into rings, like sound; connecting ties them into a net inside the studio's arch;
   giving life turns the net into a flower in the colours of the mark. The three words write themselves out
   of shifting letters, and everything on the stage leans away from the pointer.
   The earlier thread with its three stations (r43-ideas) stays in the page for "less motion" and for a page
   where this scene cannot start. */
.r43-process-wrap.r50-idea-on>.r43-process,.r43-process-wrap.r50-idea-on>.r43-flower{display:none}
/* R51: the same scene on the About page, in its section "ככה רעיון מקבל חיים" (#approach). The heading and the three
   chapters with the ARCHEN pictures that stood there stay in the page, and show only where the scene cannot start.
   The page keeps its content in a column with margins; the stage goes out to the edges of the screen (the script
   measures the column; until it has, the stage goes out by the column's own margin). The page's rules for its
   headings do not reach the heading of the scene: it keeps the measures it has on the home page. */
main.story-page .story-process.r50-idea-on{padding-block:0}
.story-process.r50-idea-on>h2,.story-process.r50-idea-on>.story-process-layout{display:none}
.story-process>.r50-idea{margin-inline:calc(var(--content-gutter,5vw) * -1)}
.story-process .r50-idea .r50-idea-title{margin:0 0 clamp(18px,4vh,44px);line-height:1.25;overflow-wrap:normal}
@media(max-width:760px){.story-process .r50-idea .r50-idea-title{margin-bottom:6px}}
.story-process>.r50-idea.is-still{margin-inline:0}
.story-process>.r50-idea.is-still .r50-idea-pin{width:100%}
/* a browser that cannot open the page's column (no :has) cuts the stage at the column: there its two sides fade out */
@supports not selector(:has(*)){@media(min-width:1650px){.story-process>.r50-idea:not(.is-still) .r50-idea-canvas{--r51-cut:calc((100% - 1648px) / 2);-webkit-mask:linear-gradient(90deg,transparent var(--r51-cut),#000 calc(var(--r51-cut) + 150px),#000 calc(100% - var(--r51-cut) - 150px),transparent calc(100% - var(--r51-cut)));mask:linear-gradient(90deg,transparent var(--r51-cut),#000 calc(var(--r51-cut) + 150px),#000 calc(100% - var(--r51-cut) - 150px),transparent calc(100% - var(--r51-cut)))}}}
.r50-idea{--r50-vh:100vh}
@supports(height:100svh){.r50-idea{--r50-vh:100svh}}
.r50-idea{position:relative;height:calc(var(--r50-vh,100vh) * 4.1);margin:clamp(40px,8vh,90px) 0 0;color:var(--ink)}
.r50-idea-pin{position:sticky;top:0;height:var(--r50-vh,100vh);overflow:hidden;contain:layout paint}
.r50-idea-canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.r50-idea-copy{position:absolute;inset-block:clamp(112px,16vh,170px) clamp(96px,14vh,150px);inset-inline-start:clamp(28px,7vw,132px);width:min(40vw,560px);display:flex;flex-direction:column;justify-content:center;pointer-events:none}
.r50-idea-title{margin:0 0 clamp(18px,4vh,44px);font:300 clamp(22px,2.1vw,34px)/1.25 "M Sefira",sans-serif;color:var(--ink);pointer-events:auto;
  opacity:var(--r50-in,1);translate:0 calc((1 - var(--r50-in,1)) * 22px)}
.r50-idea-steps{list-style:none;margin:0;padding:0;display:grid}
.r50-idea-steps li{grid-area:1/1;display:grid;align-content:start;gap:clamp(10px,2vh,20px);opacity:var(--on,0);translate:0 calc((1 - var(--on,0)) * var(--from,26px));visibility:hidden}
.r50-idea-steps li.is-near{visibility:visible}
.r50-idea-steps small{font:400 13px/1 "M Sefira",sans-serif;letter-spacing:.3em;color:var(--muted);direction:ltr;text-align:start;unicode-bidi:plaintext}
html[dir=rtl] .r50-idea-steps small{text-align:right}
.r50-idea-word{display:block;font:400 clamp(58px,8.4vw,148px)/1.02 "M Sefira",sans-serif;letter-spacing:-.01em;color:var(--ink);white-space:nowrap;font-weight:400}
.r50-idea-scramble{display:inline-block;font-variant-ligatures:none}
/* a word answers the pointer too: under it, it falls back into shifting letters and writes itself out again */
.r50-idea-steps li.is-near .r50-idea-scramble{pointer-events:auto}
/* the longer words of English and Russian keep to their side of the stage */
html:not([lang|=he]) .r50-idea-word{font-size:clamp(44px,6vw,108px)}
.r50-idea-steps p{margin:0;max-width:36ch;font:300 clamp(16px,1.25vw,20px)/1.75 "M Sefira",sans-serif;color:var(--ink);opacity:calc(var(--on,0) * var(--read,1))}
/* R52 (18.11.2026): the way through the scene. Rafael: one cannot tell where to stop, and the words tangle. The way
   has three stations, where a step stands complete, and the scroll is drawn to them one at a time (r52-stations.js).
   On the line: a stretch before 01, a mark at every station, a ring round the one the visitor stands at, and after
   03 the line fades out, because from there the idea lives and goes on. A gold star stands where the visitor is. */
.r50-idea-meter{position:relative;width:min(100%,430px);height:58px;margin-top:clamp(16px,3.6vh,40px);opacity:var(--r50-in,1);--r52-to:to right}
html[dir=rtl] .r50-idea-meter{--r52-to:to left}
.r50-idea-meter::before,.r50-idea-meter::after{content:"";position:absolute;inset-inline:0;bottom:16px;height:1px;
  -webkit-mask:linear-gradient(var(--r52-to),#000 82%,transparent);mask:linear-gradient(var(--r52-to),#000 82%,transparent)}
.r50-idea-meter::before{background:var(--line)}
.r50-idea-meter::after{background:linear-gradient(var(--r52-to),var(--ink) calc(var(--r50-p,0) * 100%),transparent 0);opacity:.72}
/* the stations are buttons: each takes the visitor to its step (their names for a screen reader are the words of the steps) */
.r50-idea-stop{position:absolute;inset-block:0;inset-inline-start:calc(var(--at,0) * 100%);width:56px;margin:0;margin-inline-start:-28px;padding:0;-webkit-appearance:none;appearance:none;border:0;border-radius:8px;background:none;color:var(--ink);cursor:pointer;pointer-events:auto}
.r50-idea-stop span{position:absolute;top:5px;inset-inline:0;font:400 12px/1 "M Sefira",sans-serif;letter-spacing:.28em;text-indent:.28em;text-align:center;direction:ltr;opacity:.62;transform-origin:50% 100%;transition:opacity .4s ease,scale .5s cubic-bezier(.2,.7,.2,1)}
.r50-idea-stop::after{content:"";position:absolute;left:50%;bottom:13px;width:7px;height:7px;margin-left:-3.5px;border-radius:50%;background:var(--ink);opacity:.42;transition:opacity .4s ease,scale .4s ease}
.r50-idea-stop::before{content:"";position:absolute;left:50%;bottom:3.5px;width:26px;height:26px;margin-left:-13px;box-sizing:border-box;border:1px solid #af850c;border-radius:50%;opacity:0;scale:.5;transition:opacity .35s ease,scale .55s cubic-bezier(.2,.7,.2,1)}
html[data-theme=dark] .r50-idea-stop::before{border-color:#efbf04}
.r50-idea-stop.is-on span{opacity:.86}
.r50-idea-stop.is-on::after{opacity:1}
.r50-idea-stop.is-here span{opacity:1;scale:1.16}
.r50-idea-stop.is-here::after{opacity:0;scale:.4}
.r50-idea-stop.is-here::before{opacity:.95;scale:1;animation:r52-here .9s cubic-bezier(.2,.7,.2,1)}
@keyframes r52-here{from{box-shadow:0 0 0 0 rgba(175,133,12,.5)}to{box-shadow:0 0 0 12px rgba(175,133,12,0)}}
body[data-motion-paused=true] .r50-idea-stop.is-here::before{animation:none}
@media(hover:hover) and (pointer:fine){.r50-idea-stop:hover span{opacity:1}.r50-idea-stop:not(.is-here):hover::after{opacity:1;scale:1.3}}
.r50-idea-stop:focus-visible{outline:2px solid var(--ink);outline-offset:-3px}
.r50-idea-meter i{position:absolute;bottom:16.5px;inset-inline-start:calc(var(--r50-p,0) * 100%);width:16px;height:16px;margin:0 -8px -8px;background:#af850c;pointer-events:none;rotate:calc(var(--r50-p,0) * 360deg);
  opacity:calc(1 - var(--r50-tail,0) * 1.15);scale:calc(1 - var(--r50-tail,0) * .5);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath d='M0-9 2.2-2.2 9 0 2.2 2.2 0 9-2.2 2.2-9 0-2.2-2.2Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath d='M0-9 2.2-2.2 9 0 2.2 2.2 0 9-2.2 2.2-9 0-2.2-2.2Z'/%3E%3C/svg%3E") center/contain no-repeat}
html[data-theme=dark] .r50-idea-meter i{background:#efbf04}
.r50-idea-link{align-self:flex-start;margin-top:clamp(12px,2.4vh,22px);padding:10px 2px 7px;font-size:15px;line-height:1.4;color:var(--ink);text-decoration:none;
  background:linear-gradient(currentColor,currentColor) 50% 100%/100% 1px no-repeat;transition:background-size .55s cubic-bezier(.2,.7,.2,1),opacity .5s ease;opacity:var(--r50-end,0);pointer-events:none}
.r50-idea-link.is-on{pointer-events:auto}
.r50-idea-link:hover{background-size:0% 1px}
.r50-idea-link:focus-visible{outline:2px solid var(--ink);outline-offset:4px;border-radius:2px;opacity:1}

@media(max-width:760px){
  .r50-idea{height:calc(var(--r50-vh,100vh) * 3.7)}
  .r50-idea-copy{inset-block:clamp(92px,13vh,120px) auto;inset-inline:22px;width:auto;justify-content:flex-start}
  .r50-idea-title{order:-2;margin-bottom:6px;font-size:21px}
  .r50-idea-word,html:not([lang|=he]) .r50-idea-word{font-size:clamp(40px,13vw,66px)}
  html[lang|=he] .r50-idea-word{font-size:clamp(48px,15.5vw,76px)}
  .r50-idea-steps p{font-size:15.5px;line-height:1.65;max-width:32ch}
  /* R52: on a phone the line of the way stands under the heading, and the numbers of the steps are on it */
  .r50-idea-meter{order:-1;width:100%;height:46px;margin:0 0 8px}
  .r50-idea-meter::before,.r50-idea-meter::after{bottom:14px}
  .r50-idea-stop span{top:2px;font-size:11px}
  .r50-idea-stop::after{bottom:11px}
  .r50-idea-stop::before{bottom:2.5px;width:24px;height:24px;margin-left:-12px}
  .r50-idea-meter i{bottom:14.5px}
  .r50-idea:not(.is-still) .r50-idea-steps small{display:none}
  .r50-idea-link{margin-top:10px}
}
@media(max-height:560px){.r50-idea-steps p{display:none}.r50-idea-word{font-size:clamp(44px,13vh,90px)}}

/* less motion, or a browser without what the scene needs: no holding of the screen, the three steps one under the other */
.r50-idea.is-still{height:auto;margin-bottom:clamp(30px,6vh,70px)}
.r50-idea.is-still .r50-idea-pin{position:relative;height:auto;overflow:visible;contain:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:24px;width:min(1295px,calc(100% - 48px));margin:0 auto;padding-block:24px 40px}
.r50-idea.is-still .r50-idea-canvas{position:relative;inset:auto;width:100%;height:clamp(300px,52vh,520px);order:2}
.r50-idea.is-still .r50-idea-copy{position:static;width:auto;pointer-events:auto}
.r50-idea.is-still .r50-idea-steps{gap:clamp(26px,5vh,48px)}
.r50-idea.is-still .r50-idea-steps li{grid-area:auto;opacity:1;translate:none;visibility:visible}
.r50-idea.is-still .r50-idea-steps p{opacity:1}
.r50-idea.is-still .r50-idea-word{font-size:clamp(40px,4.6vw,72px)}
.r50-idea.is-still .r50-idea-link{opacity:1;pointer-events:auto}
.r50-idea.is-still .r50-idea-meter{display:none}
@media(max-width:760px){.r50-idea.is-still .r50-idea-pin{grid-template-columns:1fr;width:calc(100% - 44px)}.r50-idea.is-still .r50-idea-canvas{order:0;height:300px}}
@media(forced-colors:active){.r50-idea-canvas{display:none}}
@media print{.r50-idea{height:auto}.r50-idea-pin{position:static;height:auto}.r50-idea-canvas,.r50-idea-meter{display:none}.r50-idea-copy{position:static;width:auto}.r50-idea-steps li{grid-area:auto;opacity:1;translate:none;visibility:visible}.r50-idea-steps p{opacity:1}}
