/* written by tools/process_demo2.py from the demo (demo-process-v2-4c81e05b); edit there, not here */
/* written by tools/process_demo2.py from css/story.css: the channel row only (story.css has a
   rule of its own for .art, the article page, so it cannot come whole) */
.nets { max-width: 1280px; margin: 0 auto; padding: 0 60px 90px; display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 24px; align-items: center; }
.nets .label { writing-mode: vertical-rl; margin: 0; font-family: inherit; font-weight: 400; font-size: 12px; letter-spacing: .08em; color: var(--support); justify-self: center; }
.nets ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 46px; }
.nets li { display: flex; transition: opacity .7s var(--swing) calc(var(--i) * 80ms), transform .7s var(--swing) calc(var(--i) * 80ms); }
.nets img { display: block; width: auto; max-width: none; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.15); opacity: .7; transition: filter .35s ease-in-out, opacity .35s ease-in-out; }
.nets li:hover img { filter: none; opacity: 1; }
@media (hover: none) { .nets img { filter: none; opacity: 1; } }
.nets.wait li { opacity: 0; transform: translateY(12px); }
.nets.wait.in li { opacity: 1; transform: none; }
.nets .marq { display: flex; overflow: hidden; padding-block: 6px; -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); }
.nets .marq ul { flex: none; min-width: 100%; flex-wrap: nowrap; justify-content: space-around; gap: 0 48px; padding-inline-end: 48px; animation: nets-marq 32s linear infinite; }
.nets .marq:hover ul { animation-play-state: paused; }
@keyframes nets-marq { to { transform: translateX(100%); } }
@media (max-width: 899.98px) { .nets .marq ul { gap: 0 34px; padding-inline-end: 34px; animation-duration: 24s; } }
@media (prefers-reduced-motion: reduce) { .nets .marq { -webkit-mask-image: none; mask-image: none; } }
@media (prefers-reduced-motion: reduce) { .nets .marq ul { animation: none; flex-wrap: wrap; justify-content: space-between; gap: 18px 22px; padding: 0; } }
@media (prefers-reduced-motion: reduce) { .nets .marq ul[aria-hidden] { display: none; } }
@media (max-width: 1024px) { .nets { grid-template-columns: 1fr; gap: 18px; padding: 0 20px 70px; } }
@media (max-width: 1024px) { .nets .label { writing-mode: horizontal-tb; justify-self: start; } }
@media (max-width: 1024px) { .nets ul { gap: 22px 30px; } }

/* Demo 2 of the marketing page "איך זה עובד" (site/tools/process_demo2.py). Site tokens and fonts from ../css/main.css.
   The timeline: on a wide screen with JS the section pins and the track slides sideways with the scroll (process.js sets
   --x and .on on each stage); on a phone, or without JS, the stages sit in a sideways swipe rail. */

.proc2 .hero img { height: auto; }
.pg { max-width: 1280px; margin: 0 auto; padding-inline: max(20px, min(60px, 5vw)); }
.lbl { display: block; font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--support); margin-bottom: 18px; }
.lbl::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--accent); vertical-align: middle; margin-inline-end: 12px; }
.h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: .03em; text-wrap: balance; }
.h2 em, .hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.65; color: var(--ink-2); max-width: 54ch; margin: 18px 0 0; }
.acts { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 26px; background: var(--accent); color: #fff; font-weight: 700; font-size: 17px; border-radius: 2px; }
.btn:hover { background: #B83D1F; }
.lnk { font-weight: 500; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }

/* hero: short, one line of promise */
.hero { padding-top: clamp(110px, 13vw, 160px); padding-bottom: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(48px, 7.6vw, 108px); line-height: .95; letter-spacing: .03em; text-wrap: balance; }
.hero .lead { margin-top: 22px; }
.hero-sub { margin: 14px 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.15; letter-spacing: .03em; color: var(--accent); text-wrap: balance; }

/* Emil's words between the opening and the process: one large sentence, then the line that leads into the timeline */
.say { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--rule); display: grid; justify-items: center; text-align: center; }
.say-big { margin: 0; max-width: 38ch; font-size: clamp(22px, 2.5vw, 34px); line-height: 1.5; font-weight: 500; color: var(--ink); text-wrap: balance; }
.say-next { position: relative; margin: 30px 0 0; padding-top: 30px; max-width: 46ch; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; color: var(--ink-2); text-wrap: balance; }
.say-next::before { content: ""; position: absolute; top: 0; left: 50%; width: 40px; height: 2px; margin-left: -20px; background: var(--accent); }
.who .lead .lnk { white-space: nowrap; margin-inline-start: 6px; }
/* the channel row under the heading, exactly as wide as the heading: the block takes the heading's width (fit-content);
   the paragraph and the row do not count toward it (contain: inline-size) and spread over it */
.who-in { display: grid; width: fit-content; max-width: 100%; }
.who-in .lead, .who-in .nets { contain: inline-size; }
.who .nets { max-width: none; margin: 36px 0 0; padding: 0; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.who .nets .label { writing-mode: horizontal-tb; justify-self: start; }
/* the moving strip itself comes from story.css (.nets .marq, copied into credits.css) */
/* the line to the full credits, on the story page (Shahar 4.12: the credits band lives there, not here) */
.who .more { margin: 28px 0 0; }
.hero figure { margin: 0; }
.hero figure img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 40% 50%; }

/* the timeline */
.tl { border-top: 1px solid var(--rule); background: var(--surface); }
.tl-pin { padding-block: clamp(56px, 8vw, 96px); }
.tl-head { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: end; justify-content: space-between; }
.tl-dots { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; font: 18px/1 var(--latin); letter-spacing: .08em; color: var(--support); }
.tl-dots li { min-width: 40px; padding-top: 10px; border-top: 2px solid var(--rule); transition: color .4s, border-color .4s; }
.tl-dots li.on { color: var(--ink); border-color: var(--accent); }
.tl-rail { margin-top: clamp(28px, 4vw, 52px); }
.tl-track { position: relative; display: flex; margin: 0; padding: 0; list-style: none; width: max-content; }
.tl-line { position: absolute; inset-inline: 0; top: 214px; height: 2px; background: var(--rule); pointer-events: none; }
.tl-line i { position: absolute; inset: 0; background: var(--accent); transform-origin: right center; transform: scaleX(var(--p, 0)); }
.st { position: relative; flex: 0 0 auto; width: min(440px, 34vw); padding-inline-end: clamp(32px, 5vw, 80px); }
.st-art { height: 190px; margin-bottom: 24px; display: flex; align-items: flex-end; }
.art { width: auto; height: 100%; max-width: 100%; overflow: visible; }
.st-txt { position: relative; padding-top: 30px; }
.st-txt::before { content: ""; position: absolute; top: -8px; inset-inline-start: -7px; width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; background: var(--surface); border: 2px solid var(--rule); transition: background .4s, border-color .4s; }
.st-n { display: block; font: clamp(44px, 4.4vw, 60px)/.9 var(--latin); letter-spacing: .04em; color: var(--accent); }
.st h3 { margin: 8px 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.05; letter-spacing: .04em; }
.st-sub { margin: 6px 0 0; font-weight: 700; color: var(--ink); }
.st-txt > p:not(.st-sub) { margin: 10px 0 0; color: var(--ink-2); line-height: 1.65; max-width: 40ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.tags li { font-size: 13px; font-weight: 500; padding: 3px 11px; border: 1px solid var(--rule); border-radius: 999px; color: var(--support); background: var(--ground); }
.tl-hint { display: none; margin: 18px auto 0; font-size: 14px; color: var(--support); }

/* the drawing: strokes draw themselves in when the stage turns on */
.art * { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.art .a { stroke: var(--accent); }
.art .d { fill: var(--accent); stroke: none; }
.js .st .art * { stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; }
.js .st .art .f, .js .st .art .g { fill: transparent; }
.js .st.on .art * { stroke-dashoffset: 0; opacity: 1;
  transition: stroke-dashoffset .9s var(--out-cubic) calc(150ms + var(--k) * 65ms), opacity .01s linear calc(150ms + var(--k) * 65ms), fill .5s calc(600ms + var(--k) * 65ms); }
.js .st.on .art .f { fill: var(--accent); }
.js .st.on .art .g { fill: var(--surface); }
.js .st.on .art .d { transition: opacity .3s calc(300ms + var(--k) * 65ms); }
.js .st .st-txt > * { opacity: 0; transform: translateY(14px); }
.js .st.on .st-txt > * { opacity: 1; transform: none; transition: opacity .6s var(--out-cubic), transform .6s var(--out-cubic); }
.js .st.on .st-txt > :nth-child(2) { transition-delay: .08s; }
.js .st.on .st-txt > :nth-child(3) { transition-delay: .16s; }
.js .st.on .st-txt > :nth-child(4) { transition-delay: .24s; }
.js .st.on .st-txt > :nth-child(5) { transition-delay: .32s; }
.js .st .st-txt::before { transition: background .4s, border-color .4s; }
.js .st.on .st-txt::before, html:not(.js) .st-txt::before { background: var(--accent); border-color: var(--accent); }

/* once the drawing is done (--done, set on each illustration) its parts keep living, gently and in a loop */
.art .m-dot, .art .m-pulse, .art .m-spark, .art .m-type, .art .m-pencil { transform-box: fill-box; }
.art .m-dot, .art .m-pulse, .art .m-spark { transform-origin: center; }
.art .m-type { transform-origin: left center; }
.art .m-pencil { transform-origin: 15% 100%; }
.art .m-reel1, .art .m-reel2, .art .m-head { transform-box: view-box; }
.art .m-reel1 { transform-origin: 92px 38px; }
.art .m-reel2 { transform-origin: 132px 40px; }
.js .st.on .art .m-dot { animation: m-dot 1.4s ease-in-out calc(var(--done) + var(--k) * 160ms) infinite; }          /* 01: someone is typing */
.js .st.on .art .m-type { animation: m-type 2.8s var(--out-cubic) var(--done) infinite; }
.js .st.on .art .m-pencil { animation: m-pencil 1.7s ease-in-out var(--done) infinite; }                              /* 02: the pencil writes */
.js .st.on .art .m-check { animation: m-check 3.2s var(--out-cubic) var(--done) infinite; }                           /* and ticks the chosen frame again */
.js .st.on .art .m-reel1 { animation: m-turn 2.6s linear var(--done) infinite; }                                       /* 03: the reels turn */
.js .st.on .art .m-reel2 { animation: m-turn 2s linear var(--done) infinite; }
.js .st.on .art .m-blink { animation: m-blink 1.1s steps(1) var(--done) infinite; }                                   /* REC */
.js .st.on .art .m-ray { animation: m-ray 1.2s ease-in-out calc(var(--done) + var(--k) * 140ms) infinite; }
.js .st.on .art .m-head { animation: m-head 3.4s ease-in-out var(--done) infinite alternate; }                        /* 04: the playhead runs */
.js .st.on .art .m-pulse { animation: m-pulse 2.2s ease-in-out calc(var(--done) + var(--k) * 200ms) infinite; }     /* 04, 05: play */
.js .st.on .art .m-spark { animation: m-spark 2.4s ease-in-out calc(var(--done) + var(--k) * 300ms) infinite; }
@keyframes m-dot { 0%, 55%, 100% { transform: none; } 25% { transform: translateY(-5px); } }
@keyframes m-type { 0% { transform: scaleX(.12); } 55%, 85% { transform: none; } 100% { transform: scaleX(.12); } }
@keyframes m-pencil { 0%, 100% { transform: none; } 25% { transform: translate(-3px, 1px) rotate(-5deg); } 50% { transform: translate(2px, 0) rotate(2deg); } 75% { transform: translate(-1px, 1px) rotate(-3deg); } }
@keyframes m-check { 0% { stroke-dashoffset: 1; } 30%, 82% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes m-turn { to { transform: rotate(360deg); } }
@keyframes m-blink { 0% { opacity: 1; } 50% { opacity: .12; } }
@keyframes m-ray { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
@keyframes m-head { from { transform: translateX(-92px); } to { transform: translateX(52px); } }
@keyframes m-pulse { 0%, 100% { transform: none; } 50% { transform: scale(1.14); } }
@keyframes m-spark { 0%, 100% { transform: none; opacity: 1; } 50% { transform: scale(.45) rotate(90deg); opacity: .35; } }

/* wide screen with JS: the section pins and the scroll moves a camera from stage to stage, each alone, centred and large
   (process.js sets --x --y --k on the track); past the last stage the camera zooms out to the whole timeline (.over),
   and a click zooms into a stage (.focus). */
@media (min-width: 900px) {
  /* scroll distance: 70vh per stage, then 110vh held on the whole view */
  .js .tl { height: calc(100vh + var(--n) * 70vh + 110vh); }
  .js .tl-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-block: 0; }
  .js .tl-head { position: absolute; z-index: 3; top: 36px; inset-inline: 0; transition: opacity .5s; }
  .js .tl-rail { position: relative; margin-top: 0; }
  .js .tl-track { padding-inline: 60px; transform: translate(var(--x, 0px), var(--y, 0px)) scale(var(--k, 1)); transform-origin: 100% 0; will-change: transform; }
  .js .tl .st { transition: opacity .6s; }
  .js .tl-line { inset-inline: 60px; }   /* the line runs between the first and the last stage, not into the margins */
  .js .tl.sliding .st:not(.cur) { opacity: .13; }

  /* the optical zoom: a timed camera move (not tied to the scroll) with a breath of lens blur in the middle */
  .js .tl.zooming .tl-track { transition: transform 1.25s cubic-bezier(.76, 0, .18, 1); animation: lens 1.25s ease-in-out; }
  .js .tl.zooming .tl-line i { transition: none; }

  /* the viewfinder around the whole timeline (size and place from process.js) */
  .js .tl-frame { display: block; position: absolute; z-index: 2; left: calc(50% - var(--fw, 600px) / 2); width: var(--fw, 600px); top: var(--ft, 0px); height: var(--fh, 300px); pointer-events: none; opacity: 0; transform: scale(1.08); transition: opacity .35s, transform .35s; }
  .tl.over:not(.focus) .tl-frame { opacity: 1; transform: none; transition: opacity .5s .85s, transform .7s .85s var(--out-cubic); }

  .tl.over .st { cursor: zoom-in; }
  .tl.over .st:focus-visible { outline: 3px solid var(--accent); outline-offset: 10px; }
  .tl.focus .st { cursor: zoom-out; }
  .js .tl.seen.sliding .st { cursor: zoom-out; }   /* back to the whole view (process.js) */
  .tl.focus .st:not(.cur) { opacity: .1; }
  .tl.focus .tl-line { opacity: .25; transition: opacity .6s; }
  .tl.focus .tl-head { opacity: 0; }

  .js .tl-over { display: flex; position: absolute; z-index: 3; bottom: 26px; inset-inline: 0; margin: 0; }
}
.tl-frame i { position: absolute; width: 34px; height: 34px; border: 0 solid var(--accent); }
.tl-frame i:nth-child(1) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.tl-frame i:nth-child(2) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.tl-frame i:nth-child(3) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.tl-frame i:nth-child(4) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.tl-frame, .tl-over, .st-end { display: none; }
.tl-over { justify-content: center; align-items: center; min-height: 44px; font-size: 15px; color: var(--support); opacity: 0; pointer-events: none; transition: opacity .4s; }
.tl.over .tl-over { opacity: 1; pointer-events: auto; transition: opacity .5s 1s; }
.tl-back { display: none; min-height: 44px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink); background: var(--ground); }
.tl-back:hover { background: var(--ink); color: var(--ground); }
.tl.focus .tl-over-a { display: none; }
.tl.focus .tl-back { display: inline-flex; align-items: center; }
/* the jump back to the top of the page, from the whole view */
.tl-over { flex-wrap: wrap; gap: 10px 18px; }
.tl-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink); background: transparent; }
.tl-top:hover { background: var(--ink); color: var(--ground); }
.tl.focus .tl-top { display: none; }
.curtain { position: fixed; inset: 0; z-index: 70; background: var(--ground); opacity: 0; pointer-events: none; transition: opacity .35s ease-in-out; }
.curtain.on { opacity: 1; }

/* who films: the heading over the channel row and the credits band (moved here from the story page, to try) */
.who { padding-top: clamp(72px, 10vw, 130px); padding-bottom: clamp(28px, 4vw, 44px); border-top: 1px solid var(--rule); }
@keyframes lens { 0%, 100% { filter: none; } 45% { filter: blur(2.5px) brightness(1.03); } }

/* phone, narrow window, or no JS: a rail you swipe */
@media (max-width: 899.98px) {
  .tl-rail { overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tl-rail::-webkit-scrollbar { display: none; }
  /* every stage fills the screen on its own (Shahar 5.12: no letters of the next one at the edge), its drawing
     centred; a swipe brings the next one whole */
  .tl-rail { container-type: inline-size; }
  .tl-track { padding-inline: 0; gap: 0; }
  .st { width: 100cqw; box-sizing: border-box; padding-inline: 28px; scroll-snap-align: center; scroll-snap-stop: always; }
  .st-art { height: 150px; justify-content: center; }
  .tl-line { top: 174px; }
  /* the line follows the swipe a moment later and runs on softly, so it feels alive (Shahar 5.12); the stage's dot lights
     as the line reaches it */
  .js .tl:not(.over) .tl-line i { transition: transform 1.1s cubic-bezier(.65, 0, .35, 1) .45s; }
  .js .tl:not(.over) .st.on .st-txt::before { transition-delay: 1.25s; }
  .tl-hint { display: block; }
  .tl-dots li { min-width: 30px; }
  .hero { grid-template-columns: 1fr; }
  .hero figure { order: -1; }
  .hero figure img { aspect-ratio: 16 / 10; }

  /* one more swipe past the last stage: the whole timeline, in one line (process.js scales the track: --x --k) */
  .js .st-end { display: flex; flex: 0 0 auto; width: 58vw; align-items: center; justify-content: center; scroll-snap-align: center; }
  .st-all { display: grid; justify-items: center; gap: 12px; padding: 18px; font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--ink); }
  .st-all svg { width: 64px; height: 64px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  .st-all rect { stroke: var(--ink); stroke-width: 2; }

  .js .tl { overflow-x: clip; }
  .js .tl.over .tl-rail { overflow: visible; scroll-snap-type: none; }
  .js .tl.over .st-end { display: none; }
  .js .tl.over .tl-track { transform: translate(var(--x, 0px), 0) scale(var(--k, 1)); transform-origin: 100% 0; }
  .js .tl.over .st { cursor: pointer; }
  .js .tl.seen:not(.over) .st { cursor: zoom-out; }
  .js .tl.anim .tl-track { transition: transform .95s cubic-bezier(.76, 0, .18, 1); animation: lens .95s ease-in-out; }
  .js .tl.anim .tl-rail { transition: height .95s cubic-bezier(.76, 0, .18, 1); }
  .js .tl.over .tl-hint { opacity: 0; pointer-events: none; }
  /* in the line only the number and the title stay, written large enough to read after the scale (--ok) */
  .js .tl.over:not(.leaving) .st .st-txt > p, .js .tl.over:not(.leaving) .st .tags { opacity: 0 !important; transition: opacity .25s !important; }
  .js .tl.over:not(.leaving) .st h3 { font-size: calc(12px / var(--ok, 1)); margin-top: calc(3px / var(--ok, 1)); }
  .js .tl.over:not(.leaving) .st-n { font-size: calc(15px / var(--ok, 1)); }
  .js .tl.over .st h3, .js .tl.over .st-n { transition: opacity .4s; }
  .js .tl.over.anim .st h3, .js .tl.over.anim .st-n { opacity: 0 !important; transition: none !important; }
  .js .tl.over .tl-over { display: flex; margin: 18px auto 0; text-align: center; }
  .js .tl.over .tl-over-a { font-size: 14px; }
  .js .tl.over .tl-top { display: none; }   /* not on a phone (Shahar 5.12) */
  /* back on the rail after the whole view: the second line says how to return to it */
  .tl-hint-b { display: none; }
  .js .tl.seen:not(.over) .tl-hint-b { display: block; margin-top: 4px; }
}
html:not(.js) .tl-rail { overflow-x: auto; }

/* every project is its own: four scales, each dot stops somewhere else */
.fit .h2 em { display: block; }   /* the red sentence starts its own line, under "הדרך קבועה." (Shahar 4.12) */
.fit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; padding-block: clamp(72px, 10vw, 140px); }
.scales { display: grid; gap: 30px; margin: 0; padding: 0; list-style: none; }
.scales li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 9.5em; gap: 14px; align-items: center; font-weight: 500; font-size: 15px; }
.scales li span:last-child { text-align: left; }
.scales b { position: relative; height: 2px; background: var(--rule); }
.scales i { position: absolute; top: 50%; inset-inline-start: var(--at); width: 16px; height: 16px; margin: -8px -8px 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--ground); }
.js .fit:not(.in) .scales i { inset-inline-start: 0; opacity: 0; }
.js .fit.in .scales i { transition: inset-inline-start 1.4s var(--out-cubic), opacity .3s; }
.js .fit.in .scales li:nth-child(2) i { transition-delay: .12s; }
.js .fit.in .scales li:nth-child(3) i { transition-delay: .24s; }
.js .fit.in .scales li:nth-child(4) i { transition-delay: .36s; }
/* idea 2 (pairs.html): the four pairs as type, each row "this  or  that" over a hairline */
.pairs { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.pairs li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: baseline; padding-block: 20px; border-bottom: 1px solid var(--rule); font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.1; letter-spacing: .03em; }
.pairs li span:last-child { text-align: left; }
.pairs i { font: 400 14px/1 var(--ui); font-style: normal; letter-spacing: 0; color: var(--support); }
.js .fit:not(.in) .pairs li { opacity: 0; transform: translateY(12px); }
.js .fit.in .pairs li { opacity: 1; transform: none; transition: opacity .6s var(--out-cubic), transform .6s var(--out-cubic); transition-delay: calc(var(--k) * 90ms); }
@media (prefers-reduced-motion: reduce) {
  .js .fit .pairs li { transition: none !important; opacity: 1 !important; transform: none !important; }
}
@media (max-width: 899.98px) {
  .fit { grid-template-columns: 1fr; }
  .scales li { grid-template-columns: 1fr 1fr; row-gap: 10px; font-size: 14px; }
  .scales b { grid-column: 1 / -1; grid-row: 2; }
}

.end { text-align: center; padding-block: clamp(80px, 11vw, 150px); border-top: 1px solid var(--rule); }
.end .h2 { font-size: clamp(40px, 7vw, 96px); }
.end .lead { margin-inline: auto; }
.end .acts { justify-content: center; }
.end .tel { font: 26px/1 var(--latin); letter-spacing: .06em; direction: ltr; }

/* the switch between the full demo and the short one (Shahar 4.12), just above the demo tag */
/* the short version: "who" as one quiet row between two hairlines, no heading: the label, the moving logos, the link
   to the credits (Shahar 4.12: the heading, label, row and two links read crowded); the call follows without a rule */
.short .trust { border-block: 1px solid var(--rule); padding-block: 26px; }
.short .trust .nets { max-width: none; margin: 0; padding: 0; grid-template-columns: auto minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.short .trust .nets .label { writing-mode: horizontal-tb; justify-self: start; white-space: nowrap; }
.short .trust .trust-more { font-size: 14px; white-space: nowrap; }
.short .end { border-top: 0; }
@media (max-width: 1024px) {
  .short .trust .nets { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .short .trust .trust-more { justify-self: start; }
}
/* the polished version (refined.html, Shahar 4.12): an unslop pass on the short one, same words and parts.
   Direction: Emil's set, calm and exact; the accent is the camera's red light, kept for what is live (the button, the
   moving line and dot, the drawings), not for every number; the signature is the viewfinder corner, already framing the
   whole timeline, now also around the opening photo */
.refined .lbl { letter-spacing: 0; font-size: 14px; }                        /* letter spacing pulls Hebrew words apart */
.refined .lbl::before { display: none; }
.refined .nets .label { letter-spacing: 0; font-size: 13px; }
.refined .hero .lead { max-width: 46ch; }
.refined .st-n { color: var(--support); }                                    /* the place in the order, not an alarm */
.refined .st-sub { font-weight: 500; }
.refined .tags { gap: 0; margin-top: 12px; }                                 /* one quiet line, not three pills */
.refined .tags li { padding: 0; border: 0; border-radius: 0; background: none; font-size: 14px; color: var(--support); }
.refined .tags li + li::before { content: "·"; padding-inline: 8px; }
.refined .hero figure { position: relative; }
.refined .hero figure::after { content: ""; position: absolute; inset: -16px; pointer-events: none; --c: var(--accent); --a: 28px; --t: 2px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--a) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) top left / var(--t) var(--a) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--a) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) top right / var(--t) var(--a) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--a) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--a) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--a) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--a) no-repeat; }
@media (max-width: 1024px) { .refined .hero figure::after { inset: -10px; --a: 20px; } }

@media (prefers-reduced-motion: reduce) {
  .js .tl.zooming .tl-track { transition: none; animation: none; }
  .js .st.on .art [class*="m-"] { animation: none !important; }
  .js .st .art *, .js .st .st-txt > * { transition: none !important; }
  .js .fit .scales i { transition: none !important; }
}

/* The process page's opening, arriving from the home demo's תהליך panel (arrive.js sets .pa and .pa-<kind>).
   The home panel ends on the page's own light ground in every kind, so this page starts on the same ground and its
   opening comes in, top to bottom, the header first: the eye never sees a cut from one picture to another.
   fade, zoom: everything rises in a few pixels and fades in, in a short cascade.
   frame:     the home page's frame flies into the place of the opening photo (a shared element in the browser's page
              transition, view-transition-name proc-frame on both pages); the words come in around it. */
@keyframes pa-in { from { opacity: 0; transform: translateY(14px); } }
html.pa .hdr, html.pa .hero .lbl, html.pa .hero h1, html.pa .hero-sub, html.pa .hero .lead, html.pa .hero .acts, html.pa .hero figure {
  animation: pa-in .8s cubic-bezier(.23, 1, .32, 1) both; }
html.pa .hdr { animation-delay: .05s; }
html.pa .hero figure { animation-delay: .15s; }
html.pa .hero .lbl { animation-delay: .25s; }
html.pa .hero h1 { animation-delay: .32s; }
html.pa .hero-sub { animation-delay: .44s; }
html.pa .hero .lead { animation-delay: .54s; }
html.pa .hero .acts { animation-delay: .64s; }
html.pa-frame .hero figure { animation: none; view-transition-name: proc-frame; }
html.pa-frame .hero .lbl { animation-delay: .5s; } html.pa-frame .hero h1 { animation-delay: .58s; } html.pa-frame .hero-sub { animation-delay: .7s; }
html.pa-frame .hero .lead { animation-delay: .8s; } html.pa-frame .hero .acts { animation-delay: .9s; }
html.pa-frame::view-transition-group(proc-frame) { animation-duration: 1s; animation-timing-function: cubic-bezier(.77, 0, .175, 1); }
html.pa-frame::view-transition-old(proc-frame) { animation: pa-out-frame .5s ease both; }
html.pa-frame::view-transition-new(proc-frame) { animation: pa-in-frame .7s ease .3s both; }
@keyframes pa-out-frame { to { opacity: 0; } }
@keyframes pa-in-frame { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html.pa * { animation: none !important; }
}
