/* Studio-TH: tokens */
:root{--bg:#0a0a0a;--surface:#151515;--line:#262626;--text:#f3f3f1;--muted:#8f8f8f;--red:#cc2020;--ease:cubic-bezier(.2,.8,.2,1);--pad:clamp(1.25rem,5vw,4rem)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
html{background:var(--page,var(--bg))}
body{margin:0;background:none;color:var(--text);font:400 1rem/1.7 'Heebo',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
h1,h2,h3{font-family:'Bricolage Grotesque','Heebo',sans-serif;margin:0;line-height:1.05;letter-spacing:-.02em}
html[lang=he] h1,html[lang=he] h2,html[lang=he] h3{letter-spacing:0;line-height:1.15}
a{color:inherit}
::selection{background:var(--red);color:#fff}
:focus-visible{outline:2px solid var(--red);outline-offset:3px}

/* Header */
header{position:sticky;top:0;z-index:100;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1.1rem var(--pad);background:color-mix(in srgb,var(--menu,var(--bg)) 92%,transparent);backdrop-filter:blur(12px);--text:var(--menu-text,#f3f3f1);--muted:var(--menu-muted,#8f8f8f);--line:var(--menu-line,#262626)} /* the menu bar has its own colour per mode; its text follows it */
.brand img{height:40px;width:auto;display:block;transition:transform .25s var(--ease)}
.brand:hover img{transform:scale(1.05)}
nav{display:flex;align-items:center;gap:2.6rem;flex-wrap:wrap}
nav a,nav button{font:500 .95rem 'Heebo',sans-serif;color:var(--muted);text-decoration:none;background:none;border:0;padding:.25rem 0;cursor:pointer;transition:color .2s}
nav a:hover,nav button:hover,nav a[aria-current]{color:var(--text)}
nav a[aria-current]{box-shadow:0 2px 0 var(--red)}
#lang-toggle{border:1px solid var(--line);border-radius:99px;padding:.25rem .9rem}

@keyframes rise{from{opacity:0;transform:translateY(24px)}}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Work grid */
.grid{display:block;max-width:1600px;margin:auto;padding:1.5rem var(--pad) 5rem}
.mbody{display:flex;align-items:flex-start;gap:1.25rem}
.mlast{display:flex;justify-content:center;gap:1.25rem;margin-top:1.75rem}
.mlast .card{flex:0 0 calc((100% - 1.25rem * (var(--n) - 1)) / var(--n))}
.mcol{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:1.75rem}
.card{cursor:pointer;outline-offset:8px;border-radius:6px}
.thumb{position:relative;aspect-ratio:16/9;border-radius:6px;overflow:hidden;background:var(--surface)}
.thumb img,.thumb video{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s var(--ease)}
/* Hover: the picture zooms a little, the card lifts and gets a soft accent glow, and the tag springs up */
.thumb{transition:transform .45s var(--ease),box-shadow .45s var(--ease)}
.card:is(:hover,:focus-visible) .thumb{transform:translateY(-4px);box-shadow:0 14px 40px -12px color-mix(in srgb,var(--red) 65%,transparent)}
.card:is(:hover,:focus-visible) .tag{transform:translateY(-3px) scale(1.07)}
.card:hover img,.card:hover video{transform:scale(1.04)}
.tag{transition:transform .4s cubic-bezier(.34,1.56,.64,1)}
.card h3{font-size:1.05rem;font-weight:600;margin-top:.7rem;min-height:var(--cap,0)}
/* speech-bubble tag, echoing the "th" in the logo */
.tag{position:absolute;z-index:2;inset-inline-start:1rem;bottom:1rem;background:var(--red);color:var(--on-accent,#fff);font:500 .85rem/1 'Heebo',sans-serif;padding:.55rem .85rem 1.05rem;clip-path:polygon(0 0,100% 0,100% 72%,24% 72%,0 100%)}
html[dir=rtl] .tag{clip-path:polygon(0 0,100% 0,100% 100%,76% 72%,0 72%)}

/* Inner pages */
.page{max-width:1100px;margin:auto;padding:clamp(3rem,8vw,6rem) var(--pad) 6rem}
.page h1{font-size:clamp(2.5rem,7vw,5.5rem);font-weight:800;margin-bottom:3rem;animation:rise .9s var(--ease) both}
.about{display:grid;grid-template-columns:1.2fr 1fr;gap:clamp(2rem,6vw,5rem)}
.about p{color:var(--muted);font-size:1.1rem;max-width:60ch;margin:0 0 1.25rem}
.block{border-top:1px solid var(--line);padding:1.25rem 0 1.5rem}
.block h2{font-size:1.05rem;margin-bottom:.75rem}
.block b{display:block;font-weight:500}
.block span,.block p{color:var(--muted);font-size:.95rem;margin:0 0 .75rem}
.chips{display:flex;flex-wrap:wrap;gap:.5rem;padding:0;margin:0}
.chips li{position:relative;list-style:none;border:1px solid var(--line);border-radius:99px;padding:.2rem .85rem;font-size:.9rem;cursor:default;transition:color .2s}
.chips li:hover{color:var(--text)}
/* hover stroke: a 2px ring painted with the tool's brand color or gradient */
.chips li::before{content:'';position:absolute;inset:-1px;border-radius:inherit;padding:3px;background:var(--stroke,var(--red));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);opacity:0;transition:opacity .2s;pointer-events:none}
.chips li:hover::before{opacity:1}
.chips .figma{--stroke:linear-gradient(90deg,#f24e1e,#ff7262,#a259ff,#1abcfe,#0acf83)}
.chips .ai{--stroke:linear-gradient(90deg,#ff4fa8,#22d8f5,#4a2be8,#a24bff,#ff4fa8)}
.chips .ai::before{background-size:200% 100%}
.chips .ai:hover::before{animation:ai-flow 2.4s linear infinite}
@keyframes ai-flow{to{background-position:200% 0}}
.rows a{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.5rem 1rem;padding:1.75rem 0;border-top:1px solid var(--line);text-decoration:none;transition:padding .3s var(--ease),color .2s}
.rows a:last-child{border-bottom:1px solid var(--line)}
.rows small{display:inline-block;padding:.42rem .8rem 1rem;translate:0 .33rem;background:var(--red);color:var(--on-accent,#fff);font:800 1.02rem/1.1 'Bricolage Grotesque','Heebo',sans-serif;letter-spacing:0;clip-path:polygon(0 0,100% 0,100% 72%,22% 72%,0 100%);transform-origin:0 100%;transition:transform .4s cubic-bezier(.34,1.56,.64,1)}
html[dir=rtl] .rows small{clip-path:polygon(0 0,100% 0,100% 100%,78% 72%,0 72%);transform-origin:100% 100%}
.rows a:hover small{transform:translateY(-2px) scale(1.08)}
.rows strong{font:600 clamp(1.2rem,3.6vw,2.4rem)/1.2 'Bricolage Grotesque','Heebo',sans-serif;overflow-wrap:anywhere}
.rows a:hover{color:var(--red);padding-inline-start:1rem}
.lead{color:var(--muted);font-size:1.15rem;max-width:46ch;margin:-1.5rem 0 3rem}

footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem;padding:2rem var(--pad);border-top:1px solid var(--line);color:var(--muted);font-size:.9rem}
footer a{text-decoration:none}footer a:hover{color:var(--red)}

/* Modal */
.modal{--text:#f3f3f1;--muted:#8f8f8f;color:var(--text);position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:1rem;background:rgba(0,0,0,.94);backdrop-filter:blur(10px);opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s}
.modal.open{opacity:1;visibility:visible}
.frame{--ar:1.7778;width:min(1200px,100%);margin-inline:auto}
.frame video,.frame img{display:none;width:100%;height:100%;object-fit:contain;background:#000}
.frame .on{display:block}
.media,.frame h2{width:min(100%,calc(78vh * var(--ar)));width:min(100%,calc(78dvh * var(--ar)));margin-inline:auto}
.media{position:relative;aspect-ratio:var(--ar);border-radius:6px;overflow:hidden;background:#000}
.media::after{content:'';position:absolute;top:.75rem;left:.75rem;width:150px;height:40px;background:var(--logo,url(assets/logo.png)) no-repeat center/contain;opacity:.4;pointer-events:none}
.frame img{pointer-events:none}
.thumb,.media{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.thumb::before{content:'';position:absolute;inset:0;z-index:1}
.frame h2{font-size:1.4rem;margin-top:1rem}
#close{position:absolute;z-index:1002;top:1.2rem;inset-inline-end:clamp(1.25rem,6vw,7rem);background:none;border:0;color:var(--text);font-size:2.75rem;line-height:1;cursor:pointer;transition:color .2s}
#close:hover{color:var(--red)}

.step{position:absolute;top:50%;translate:0 -50%;background:none;border:0;color:var(--text);font-size:3.5rem;line-height:1;padding:.5rem 1rem;cursor:pointer;transition:color .2s}
.step:hover{color:var(--red)}
#prev{inset-inline-start:.25rem}#next{inset-inline-end:.25rem}
/* ‹ and › are mirrored automatically in right-to-left pages, so no extra flip is needed here */
@media(max-width:720px){.step{top:auto;bottom:1rem;translate:none;font-size:2.75rem}}


@media(max-width:720px){
  header{flex-direction:column;gap:.7rem;padding:1rem var(--pad) .8rem}
  .brand img{height:34px}
  /* phones: the language button sits at the start edge and the light / dark button at the end edge of the logo row (swapped sides in Hebrew) */
  #lang-toggle,#theme-toggle{position:absolute;top:.9rem;height:34px;box-sizing:border-box}
  #lang-toggle{inset-inline-start:var(--pad);padding:0 .8rem;font-size:.88rem}
  #theme-toggle{inset-inline-end:var(--pad);width:34px}
  nav{justify-content:space-between;width:100%;gap:.3rem .9rem;flex-wrap:wrap} /* the links spread across the whole width, so they have room to breathe */
  nav a{font-size:clamp(.88rem,4vw,1.05rem);padding:.45rem 0} /* the four links fit on one row on small phones too, in Hebrew as well */
  .about{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}html{scroll-behavior:auto}}

/* Background layer (color, gradient, image or video) */
#bg{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
#bg img,#bg video{width:100%;height:100%;object-fit:cover;display:block}
#bg::after{content:'';position:absolute;inset:0;background:var(--veil,#000);opacity:var(--dim,0)}
.rich{color:var(--muted);font-size:1.15rem;max-width:65ch;min-height:2rem}

/* Light/dark mode button + light palette (applied early to avoid a flash) */
html[data-mode=light]{--bg:#f4f4f1;--text:#111;--muted:#555;--line:rgba(0,0,0,.15);--surface:#e6e6e6}
#theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:2.1rem;height:2.1rem;padding:0;border:1px solid var(--line);border-radius:50%}
img[data-logo].flip{filter:invert(1) hue-rotate(180deg)}
body.editing #theme-toggle{display:none}

/* Language button: hover shows א ב ג (or A B C) popping in one after another */
#lang-toggle{display:inline-grid;place-items:center;overflow:hidden}
#lang-toggle>span{grid-area:1/1;transition:opacity .2s,transform .3s var(--ease)}
#lang-toggle .lt{display:grid;font-weight:700;color:var(--red)}
#lang-toggle .lt i{grid-area:1/1;font-style:normal;opacity:0}
#lang-toggle .lt i:nth-child(2){animation-delay:.5s}
#lang-toggle .lt i:nth-child(3){animation-delay:1s}
#lang-toggle:is(:hover,:focus-visible) .lb{opacity:0;transform:translateY(-70%) scale(.6)}
#lang-toggle:is(:hover,:focus-visible) .lt i{animation-name:abc-pop;animation-duration:1.5s;animation-iteration-count:infinite;animation-fill-mode:backwards}
@keyframes abc-pop{
  0%{opacity:0;transform:translateY(80%) scale(.4) rotate(-14deg)}
  7%{opacity:1;transform:translateY(-10%) scale(1.25) rotate(6deg)}
  13%,30%{opacity:1;transform:none}
  36%,100%{opacity:0;transform:translateY(-80%) scale(.5)}}

/* Light/dark icons: sun spins and pulses, moon rocks and twinkles, click swaps with a spin-in */
#theme-toggle{transition:transform .2s var(--ease),border-color .2s}
#theme-toggle:hover{transform:scale(1.1);border-color:var(--red)}
#theme-toggle:active{transform:scale(.88)}
#theme-toggle svg{overflow:visible}
#theme-toggle .rays,#theme-toggle .core,#theme-toggle .moon{transform-origin:12px 12px}
#theme-toggle .star{stroke-width:.6;opacity:0;transform-box:fill-box;transform-origin:center}
#theme-toggle:is(:hover,:focus-visible) .rays{animation:t-spin 4s linear infinite}
#theme-toggle:is(:hover,:focus-visible) .core{animation:t-pulse .8s ease-in-out infinite alternate}
#theme-toggle:is(:hover,:focus-visible) .moon{animation:t-rock 1s ease-in-out infinite alternate}
#theme-toggle:is(:hover,:focus-visible) .star{animation:t-twinkle 1.3s ease-in-out infinite}
#theme-toggle.pop svg{animation:t-in .55s cubic-bezier(.3,1.6,.5,1)}
@keyframes t-spin{to{transform:rotate(360deg)}}
@keyframes t-pulse{to{transform:scale(1.3)}}
@keyframes t-rock{from{transform:rotate(-8deg)}to{transform:rotate(6deg)}}
@keyframes t-twinkle{0%,100%{opacity:0;transform:scale(.2) rotate(-45deg)}35%{opacity:1;transform:scale(1.2) rotate(0)}55%{opacity:1;transform:scale(.9) rotate(20deg)}}
@keyframes t-in{from{opacity:0;transform:rotate(-140deg) scale(.2)}}
@media(prefers-reduced-motion:reduce){#lang-toggle:is(:hover,:focus-visible) .lb{opacity:1;transform:none}}

/* Menu icons: each page gets a little animated icon */
nav a{position:relative;display:inline-flex;align-items:center}
/* the icon waits hidden behind the page name, then rolls out beside it on hover */
.ni{position:absolute;inset-inline-start:-.8rem;top:50%;translate:0 -50%;width:1.15rem;height:1.15rem;color:var(--text);pointer-events:none}
.ni .sl{display:grid;place-items:center;width:100%;height:100%;opacity:0;transform:translateX(80%) rotate(140deg) scale(.4);transition:transform .55s cubic-bezier(.34,1.4,.64,1) .05s,opacity .3s .05s}
html[dir=rtl] .ni .sl{transform:translateX(-80%) rotate(-140deg) scale(.4)}
.ni svg{grid-area:1/1;width:100%;height:100%;overflow:visible}
nav a:is(:hover,:focus-visible) .ni .sl{opacity:1;transform:none}
.nl{display:inline-block;padding-bottom:calc(.25rem + 2px);margin-bottom:calc(-.25rem - 2px);transition:transform .45s cubic-bezier(.22,1,.36,1)}
nav a:is(:hover,:focus-visible) .nl{transform:translateX(.8rem)}
html[dir=rtl] nav a:is(:hover,:focus-visible) .nl{transform:translateX(-.8rem)}
nav a[aria-current]{box-shadow:none}
nav a[aria-current] .nl{background:linear-gradient(var(--red),var(--red)) 0 100%/100% 2px no-repeat}

/* Work: a brush paints a stroke under the gallery frame */
.i-work .brush{transform-origin:15px 8px}
.i-work .paint{stroke:var(--red);stroke-dasharray:24;stroke-dashoffset:24;opacity:0}
nav a:is(:hover,:focus-visible) .i-work .brush{animation:w-brush 1.8s ease-in-out infinite}
nav a:is(:hover,:focus-visible) .i-work .paint{animation:w-paint 1.8s ease-in-out infinite}
@keyframes w-brush{0%,100%{transform:translate(0,0) rotate(0)}18%{transform:translate(-10px,12px) rotate(-10deg)}62%{transform:translate(2px,12px) rotate(-10deg)}82%{transform:translate(0,0) rotate(0)}}
@keyframes w-paint{0%,18%{stroke-dashoffset:24;opacity:1}62%,85%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:0}}

/* About: the lines write themselves on the sheet */
.i-about .sheet{transform-origin:12px 12px}
nav a:is(:hover,:focus-visible) .i-about .sheet{animation:a-wiggle 2s ease-in-out infinite}
.i-about .ln{stroke-dasharray:9}
nav a:is(:hover,:focus-visible) .i-about .ln{animation-name:a-write;animation-duration:2s;animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-fill-mode:backwards}
.i-about .l2{animation-delay:.3s}.i-about .l3{animation-delay:.6s}
@keyframes a-write{0%{stroke-dashoffset:9}35%,85%{stroke-dashoffset:0}100%{stroke-dashoffset:9}}
@keyframes a-wiggle{0%,100%{transform:rotate(0)}50%{transform:rotate(-5deg)}}

/* Contact: phone, then email (the flap swings open and a letter rises out), then globe */
.i-contact svg:nth-child(n+2){opacity:0}
nav a:is(:hover,:focus-visible) .i-contact svg{animation-duration:3.6s;animation-iteration-count:infinite;animation-fill-mode:backwards}
nav a:is(:hover,:focus-visible) .i-contact svg:nth-child(1){animation-name:c-slot-a}
nav a:is(:hover,:focus-visible) .i-contact svg:nth-child(2){animation-name:c-slot-b;animation-delay:1s}
nav a:is(:hover,:focus-visible) .i-contact svg:nth-child(3){animation-name:c-slot-c;animation-delay:2.5s}
.i-contact svg{overflow:visible}
.i-contact .ph,.i-contact .mer{transform-origin:12px 12px}
.i-contact .flap{transform-origin:12px 7px}
.i-contact .letter{opacity:0}
.i-contact .letter rect{fill:var(--bg)}
nav a:is(:hover,:focus-visible) .i-contact .ph{animation:c-ring .45s ease-in-out infinite alternate}
nav a:is(:hover,:focus-visible) .i-contact .mer{animation:c-spin 1.2s ease-in-out infinite}
nav a:is(:hover,:focus-visible) .i-contact .flap{animation:c-open 3.6s 1s infinite backwards}
nav a:is(:hover,:focus-visible) .i-contact .etop{animation:c-etop 3.6s 1s infinite backwards}
nav a:is(:hover,:focus-visible) .i-contact .letter{animation:c-letter 3.6s 1s infinite backwards}
@keyframes c-ring{from{transform:rotate(-12deg)}to{transform:rotate(12deg)}}
@keyframes c-spin{50%{transform:scaleX(.15)}}
/* the envelope's turn lasts 1.5 s: it pops in closed, the lid swings up and open (a touch past, then back), a letter rises out of it, then the letter drops and the lid closes before the icon pops away */
@keyframes c-open{
  0%,9%{transform:scaleY(1);animation-timing-function:cubic-bezier(.3,0,.2,1)}
  17%{transform:scaleY(-1.2);animation-timing-function:ease-in-out}
  21%,31%{transform:scaleY(-1);animation-timing-function:cubic-bezier(.4,0,.6,1)}
  37%,100%{transform:scaleY(1)}}
@keyframes c-etop{0%,9%{opacity:1}13%,33%{opacity:0}37%,100%{opacity:1}}   /* the top edge of the envelope opens up with the lid */
@keyframes c-letter{
  0%,12%{opacity:0;transform:translateY(7px);animation-timing-function:cubic-bezier(.34,1.4,.64,1)}
  23%{opacity:1;transform:translateY(0)}
  30%{opacity:1;transform:translateY(0);animation-timing-function:ease-in}
  35%,100%{opacity:0;transform:translateY(7px)}}
/* the three icon slots of the contact cycle (phone 1.0 s, email 1.5 s, globe 1.1 s) */
@keyframes c-slot-a{
  0%{opacity:0;transform:translateY(80%) scale(.4) rotate(-14deg)}
  5.5%{opacity:1;transform:translateY(-10%) scale(1.25) rotate(6deg)}
  10%,22%{opacity:1;transform:none}
  27.8%,100%{opacity:0;transform:translateY(-80%) scale(.5)}}
@keyframes c-slot-b{
  0%{opacity:0;transform:translateY(80%) scale(.4) rotate(-14deg)}
  5.5%{opacity:1;transform:translateY(-10%) scale(1.25) rotate(6deg)}
  10%,36%{opacity:1;transform:none}
  41.7%,100%{opacity:0;transform:translateY(-80%) scale(.5)}}
@keyframes c-slot-c{
  0%{opacity:0;transform:translateY(80%) scale(.4) rotate(-14deg)}
  5.5%{opacity:1;transform:translateY(-10%) scale(1.25) rotate(6deg)}
  10%,24%{opacity:1;transform:none}
  30.6%,100%{opacity:0;transform:translateY(-80%) scale(.5)}}

/* CV: the suitcase hops and lifts its handle */
.i-cv .handle{transform-origin:12px 7px}
nav a:is(:hover,:focus-visible) .i-cv svg{animation:cv-hop .8s ease-in-out infinite}
nav a:is(:hover,:focus-visible) .i-cv .handle{animation:cv-handle .8s ease-in-out infinite}
@keyframes cv-hop{0%,100%{transform:none}30%{transform:translateY(-3px) scale(.94,1.08)}55%{transform:scale(1.08,.92)}}
@keyframes cv-handle{30%{transform:translateY(-1.5px)}}

/* Custom pages */
nav a:is(:hover,:focus-visible) .i-def svg{animation:d-spin .7s ease-in-out}
@keyframes d-spin{to{transform:rotate(90deg) scale(1.15)}}


/* Animated gradient background: two long linear gradients drifting slowly (no round shapes) */
#bg .wave{position:absolute;top:-25%;left:0;width:200%;height:150%;will-change:transform}
#bg .w1{background:linear-gradient(105deg,var(--a) 0%,var(--b) 38%,var(--c) 70%,var(--a) 100%);animation:wave-a var(--dur,70s) ease-in-out infinite alternate}
#bg .w2{background:linear-gradient(28deg,transparent 0,color-mix(in srgb,var(--c) 8%,transparent) 12%,color-mix(in srgb,var(--c) 26%,transparent) 24%,color-mix(in srgb,var(--c) 55%,transparent) 36%,color-mix(in srgb,var(--c) 88%,transparent) 46%,color-mix(in srgb,var(--c) 100%,transparent) 50%,color-mix(in srgb,var(--c) 88%,transparent) 54%,color-mix(in srgb,var(--c) 55%,transparent) 64%,color-mix(in srgb,var(--c) 26%,transparent) 76%,color-mix(in srgb,var(--c) 8%,transparent) 88%,transparent 100%);opacity:.85;animation:wave-b calc(var(--dur,70s) * 1.4) ease-in-out infinite alternate}
@keyframes wave-a{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,4%,0)}}
@keyframes wave-b{from{transform:translate3d(-50%,3%,0)}to{transform:translate3d(0,-3%,0)}}

/* fine grain over gradient backgrounds: hides banding rings on dark colors */
#bg[data-t=animated]::before,#bg[data-t=gradient]::before{content:'';position:absolute;inset:0;z-index:1;opacity:.085;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}

/* Site cursor: "th" bubble (its tail tip is the pointer), and a click chip on anything clickable */
html.has-cursor body,html.has-cursor body *{cursor:none!important} /* not on html itself: the page's scrollbar belongs to html, and over it the normal arrow must stay visible (no custom cursor reaches there) */
.site-cursor{position:fixed;left:0;top:0;z-index:2147483000;pointer-events:none;opacity:0;transition:opacity .15s}
.site-cursor.on{opacity:1}
.site-cursor .me{position:absolute;left:22px;top:-11px;translate:0 -100%;transform-origin:0 100%;filter:drop-shadow(0 3px 5px rgba(0,0,0,.35));transition:transform .4s cubic-bezier(.34,1.56,.64,1),opacity .2s}
.site-cursor .me svg{display:block;width:58px;height:auto;transform-origin:0 100%;animation:me-pulse 2.4s ease-in-out infinite}
.site-cursor .me .bg{fill:var(--red)}
.site-cursor .me .fg{fill:var(--on-accent,#fff)}
.site-cursor .ck{position:absolute;left:0;top:0;width:0;height:0;transform-origin:0 0;transition:transform .25s cubic-bezier(.34,1.56,.64,1)}
.site-cursor .ck svg{position:absolute;left:-11.5px;top:-11.5px;width:30px;height:30px;fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;overflow:visible;filter:drop-shadow(0 0 1px var(--red)) drop-shadow(0 0 1.5px var(--red)) drop-shadow(0 2px 4px rgba(0,0,0,.3))}
.site-cursor .arrow{fill:#fff;transition:fill .25s;paint-order:stroke;stroke-width:3.8}
.site-cursor.click .arrow{fill:var(--red)}
.site-cursor.click .ck svg{filter:drop-shadow(0 1px 3px rgba(0,0,0,.5))}
.site-cursor.click .arrow{transform-origin:9.7px 9.7px;animation:ck-tap 1s ease-in-out infinite}
.site-cursor.click .me,.site-cursor.nobubble .me{opacity:0;transform:translate(-22px,11px) scale(.1)}
.site-cursor.down .me{transform:scale(.85)}
.site-cursor.click .ck{animation:ck-in .5s cubic-bezier(.34,1.56,.64,1)}
.site-cursor:not(.click) .ck{animation:ck-out .4s cubic-bezier(.34,1.56,.64,1)}
@keyframes ck-in{0%{transform:scale(.6) rotate(-25deg)}55%{transform:scale(1.35) rotate(8deg)}100%{transform:none}}
@keyframes ck-out{0%{transform:scale(1.25)}100%{transform:none}}
.site-cursor.down .ck{transform:scale(.85)}
@keyframes ck-tap{0%,100%{translate:0 0;scale:1}40%{translate:1.3px 1.5px;scale:.9}60%{translate:0 0;scale:1}}

@keyframes me-pulse{0%,100%{scale:1}50%{scale:1.13}}

/* Page-change loading screen (see loader.js) */
/* full window width (scrollbar included) so the logo sits in exactly the same place on pages with and without a scrollbar */
#loader{position:fixed;inset:0 auto 0 0;width:100vw;z-index:2147482000;display:none;--l-bg:#0a0a0a;--l-ink:#fff}
html[data-lm=light] #loader{--l-bg:#f4f4f1;--l-ink:#080816}
.pt-out #loader,.pt-in #loader{display:block}
#loader .ld-a,#loader .ld-b{position:absolute;inset:0}
#loader .ld-a{background:var(--red,#cc2020)}
#loader .ld-b{background:var(--l-bg)}
#loader .ld-box{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ld-logo{width:min(72vw,540px);height:auto;display:block;overflow:visible}
.ld-logo .lt{fill:var(--l-ink)}
.ld-logo .bgp{fill:#c92020}
.ld-logo .bl{fill:#fff}
.ld-logo .bd{transform-box:fill-box;transform-origin:0 100%}

/* leaving: red curtain then page-colored curtain wipe up (nothing else shows yet), then letters rise and the badge pops */
.pt-out .ld-a{animation:ld-cover .32s cubic-bezier(.7,0,.2,1) both}
.pt-out .ld-b{animation:ld-cover .32s .06s cubic-bezier(.7,0,.2,1) both}
.pt-out .ld-logo .lt{animation:ld-rise .26s calc(.24s + var(--i) * .02s) cubic-bezier(.2,.9,.2,1) both}
.pt-out .ld-logo .bd{animation:ld-pop .28s .36s cubic-bezier(.34,1.56,.64,1) both}

/* arriving: curtain is already down; when the page is ready the letters lift away and the curtain rolls up */
.pt-in.pt-go .ld-logo .lt{animation:ld-out .28s calc(var(--i) * .02s) cubic-bezier(.6,0,.8,.3) both}
.pt-in.pt-go .ld-logo .bd{animation:ld-shrink .22s ease-in both}
.pt-in.pt-go .ld-b{animation:ld-uncover .36s .16s cubic-bezier(.7,0,.2,1) both}
.pt-in.pt-go .ld-a{animation:ld-uncover .36s .24s cubic-bezier(.7,0,.2,1) both}

@keyframes ld-cover{from{clip-path:inset(100% 0 0 0)}to{clip-path:inset(0)}}
@keyframes ld-uncover{from{clip-path:inset(0)}to{clip-path:inset(0 0 100% 0)}}
@keyframes ld-rise{from{transform:translateY(520px)}to{transform:none}}
@keyframes ld-out{60%{opacity:1}to{transform:translateY(-520px);opacity:0}}
@keyframes ld-pop{from{transform:scale(0)}to{transform:none}}
@keyframes ld-shrink{to{transform:scale(0)}}

/* Tools: software icon next to each name; the hover ring gets thicker and the chip lifts slightly */
.chips li{display:inline-flex;align-items:center;gap:.5rem;padding:.35rem .95rem .35rem .65rem;transition:color .2s,transform .25s cubic-bezier(.34,1.56,.64,1)}
.chips li:hover{transform:translateY(-1px) scale(1.03)}
.chips li>span{color:inherit;margin:0;font-size:inherit}
.chips .ti{position:relative;display:inline-grid;place-items:center;width:1.15rem;height:1.15rem;flex:none;color:var(--stroke,var(--muted))}
.chips .ti svg{display:block;width:100%;height:100%}
.chips .ti .mono{margin:0;color:inherit;display:grid;place-items:center;width:100%;height:100%;border:1.5px solid currentColor;border-radius:.3rem;font:700 .5rem/1 'Heebo',sans-serif;letter-spacing:0}
.chips li.figma .ti{width:.85rem}

/* Generative AI chip: the name is swapped for the tool icons on hover / focus */
.chips-ai{margin-top:.5rem}
.chips li.ai{gap:0;padding:.35rem .95rem .35rem .65rem;outline:none}
.chips li.ai .ai-badge{margin-inline-end:.5rem}
.chips .ai-name{display:block;max-width:8rem;white-space:nowrap;overflow:hidden;transition:max-width .45s cubic-bezier(.4,0,.2,1),opacity .18s}
.chips .ai-icons{display:inline-flex;align-items:center;gap:.7rem;max-width:0;overflow:hidden;opacity:0;padding:.3rem 0;margin:-.3rem 0;transition:max-width .5s cubic-bezier(.4,0,.2,1),opacity .2s .08s}
.chips .ai-icons .ti{color:var(--text);width:1.2rem;height:1.2rem;opacity:0;transform:scale(.3);transition:transform .38s cubic-bezier(.34,1.56,.64,1) calc(var(--k) * 45ms + .14s),opacity .2s calc(var(--k) * 45ms + .14s)}
.chips li.ai:is(:hover,:focus-visible) .ai-name{max-width:0;opacity:0}
.chips li.ai:is(:hover,:focus-visible)::before{opacity:1}
.chips li.ai:is(:hover,:focus-visible) .ai-icons{max-width:16rem;opacity:1}
.chips li.ai:is(:hover,:focus-visible) .ai-icons .ti{opacity:1;transform:none}
.chips .ti img{display:block;width:100%;height:100%;object-fit:contain}
.chips .ai-icons .ti{margin:0}
.chips .ti .mask{margin:0;color:inherit;display:block;width:100%;height:100%;background:currentColor;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain}

/* Generative AI: sparkle badge + one small animation per icon on hover */
.chips li.ai:is(:hover,:focus-visible) .ai-badge svg{animation:ai-twinkle .8s ease-in-out}
.ai-icons .ti{cursor:default}
.ai-icons .ti[data-a=claude]:hover>svg{animation:ai-spin .8s ease-in-out}
.ai-icons .ti[data-a=chatgpt]:hover>svg{animation:ai-spin-r 1s cubic-bezier(.5,0,.2,1)}
.ai-icons .ti[data-a=gemini]:hover>img{animation:ai-twinkle .8s ease-in-out}
.ai-icons .ti[data-a=midjourney]:hover>svg{transform-origin:50% 90%;animation:ai-rock 1s ease-in-out}
.ai-icons .ti[data-a=suno]:hover>svg{animation:ai-flip .7s cubic-bezier(.34,1.56,.64,1)}
.ai-icons .ti[data-a=elevenlabs]:hover rect{transform-box:fill-box;transform-origin:50% 100%;animation:ai-eq .7s ease-in-out}
.ai-icons .ti[data-a=elevenlabs]:hover rect+rect{animation-delay:.14s}
.ai-icons .ti[data-a=topaz]:hover>.mask{animation:ai-hop .7s cubic-bezier(.34,1.56,.64,1)}
.ai-icons .ti[data-a=perplexity]:hover>svg{animation:ai-coin .8s ease-in-out}
@keyframes ai-spin{to{transform:rotate(360deg)}}
@keyframes ai-spin-r{to{transform:rotate(-360deg)}}
@keyframes ai-twinkle{0%,100%{transform:none}40%{transform:scale(1.3) rotate(45deg)}}
@keyframes ai-rock{0%,100%{transform:rotate(0)}25%{transform:rotate(-12deg)}70%{transform:rotate(10deg)}}
@keyframes ai-flip{50%{transform:scaleX(-1) scale(1.15)}}
@keyframes ai-eq{0%,100%{transform:scaleY(1)}30%{transform:scaleY(.35)}60%{transform:scaleY(1.1)}}
@keyframes ai-hop{40%{transform:translate(2px,-2px) scale(1.12)}}
@keyframes ai-coin{50%{transform:scaleX(.05)}}

/* Text and title boxes you add in the editor */
[hidden]{display:none!important}
.blocks:empty{display:none}
.blocks{margin-top:3rem}
main:not(.page)>.blocks{max-width:1100px;margin:0 auto 5rem;padding:0 var(--pad)}
.blk-title{font-size:clamp(1.5rem,3.4vw,2.4rem);font-weight:800;margin:2.5rem 0 .75rem}
.blk-text{color:var(--muted);font-size:1.1rem;max-width:65ch;margin:0 0 1rem}

/* About page: logo + bio on one side; Experience / Education / Tools / Clients on the other, each headed by a speech-bubble tag */
main.page:has(>.about){max-width:1400px;padding-top:clamp(1.75rem,4vw,3.25rem);padding-bottom:2.25rem}
.about{align-items:stretch}
.about-main{display:flex;flex-direction:column;justify-content:center} /* logo + bio sit together in the vertical middle */
.about-main .about-logo{display:block;width:min(480px,100%);height:auto;max-width:none;
  margin-block:calc(min(480px,100%) * -.06) calc(4rem - min(480px,100%) * .06);margin-inline-start:calc(min(480px,100%) * -.084)}
.about-main h1{font-size:clamp(1.8rem,3.2vw,2.5rem);font-weight:800;margin:0 0 1.2rem;animation:none}
.about-main h1:empty,.about-main h1:has(>br:only-child){display:none}
body.editing .about-main h1{display:block;min-height:1.4em;outline:1px dashed var(--muted);outline-offset:4px}
.about-side .block{border-top:0;padding:0;margin-top:1.7rem}
.about-side .block:first-child{margin-top:0}
.block h2{position:relative;isolation:isolate;display:inline-block;margin:0 0 .35rem;padding:.42rem .75rem 1rem;color:var(--on-accent,#fff);font-size:1.02rem;font-weight:800;line-height:1.1;letter-spacing:0}
/* the red bubble is its own layer behind the text, so the shape never depends on what the title's other parts (the hover icon) are doing */
.block h2::before{content:'';position:absolute;inset:0;z-index:-1;background:var(--red);clip-path:polygon(0 0,100% 0,100% 72%,22% 72%,0 100%)}
html[dir=rtl] .block h2::before{clip-path:polygon(0 0,100% 0,100% 100%,78% 72%,0 72%)}

/* no "you" bubble on the page-change loading screen (the arrow stays) */
.pt-out .site-cursor .me,.pt-in .site-cursor .me{opacity:0;transform:translate(-22px,11px) scale(.1)}

/* the moment before a page swap: no custom pointer left frozen on screen */
.pt-nav .site-cursor{opacity:0;transition:opacity .1s}

/* Works with several files: count chip on the card, collage view, back button */
.count{position:absolute;z-index:2;top:.7rem;inset-inline-end:.7rem;display:inline-flex;align-items:center;gap:.3rem;padding:.25rem .6rem;border-radius:99px;background:rgba(0,0,0,.62);color:#fff;font:600 .8rem/1 'Heebo',sans-serif;backdrop-filter:blur(6px)}
.count svg{width:.95rem;height:.95rem}
.modal[data-view=collage] .frame,.modal[data-view=collage] .step{display:none}
.collage{display:flex;flex-direction:column;width:min(1200px,100%);max-height:calc(100vh - 2rem);max-height:calc(100dvh - 2rem);overflow:hidden;padding-top:3.5rem}
.c-scroll{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:.15rem .5rem 1rem 0}
html[dir=rtl] .c-scroll{padding:.15rem 0 1rem .5rem}
.collage h2{flex:none;font-size:1.4rem;margin:0 0 1rem}
.c-grid{display:block;opacity:0;transition:opacity .3s}
.cbody{display:flex;gap:14px;align-items:flex-start}
.clast{display:flex;justify-content:center;gap:14px;margin-top:14px}
.clast .cell{flex:0 0 calc((100% - 14px * (var(--cn) - 1)) / var(--cn));min-width:0}
.c-grid.ready{opacity:1}
.ccol{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:14px}
.cell{display:block;position:relative;width:100%;margin:0 0 .9rem;padding:0;border:0;background:#111;border-radius:6px;overflow:hidden;cursor:pointer;break-inside:avoid;transition:transform .3s var(--ease),box-shadow .3s}
.cell:hover,.cell:focus-visible{transform:translateY(-3px) scale(1.01);box-shadow:0 14px 34px -12px rgba(0,0,0,.75)}
.cell img,.cell video{display:block;width:100%;height:auto;min-height:4rem;pointer-events:none}
.cell .play{position:absolute;inset-block-end:.7rem;inset-inline-start:.7rem;width:2rem;height:2rem;border-radius:50%;background:rgba(0,0,0,.62)}
.cell .play::before{content:'';position:absolute;inset:.55rem .55rem .55rem .72rem;background:#fff;clip-path:polygon(0 0,100% 50%,0 100%)}
html[dir=rtl] .cell .play::before{inset:.55rem .72rem .55rem .55rem;clip-path:polygon(100% 0,0 50%,100% 100%)}

/* prev/next arrows stay above the media on narrower screens */
.step{z-index:1001}
.step{text-shadow:0 2px 12px rgba(0,0,0,.7)}

/* Scrollbars: thin and quiet, no arrow buttons, instead of the default system ones (collage, editor panels, the page) */
@supports selector(::-webkit-scrollbar){
  ::-webkit-scrollbar{width:8px;height:8px;background:transparent}
  ::-webkit-scrollbar-track{background:transparent}
  ::-webkit-scrollbar-thumb{background:var(--red);border-radius:8px;border:2px solid transparent;background-clip:content-box} /* the accent colour */
  ::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--red) 78%,#fff);background-clip:content-box}
  ::-webkit-scrollbar-button,::-webkit-scrollbar-corner{display:none;width:0;height:0}
}
@supports not selector(::-webkit-scrollbar){
  *{scrollbar-width:thin;scrollbar-color:var(--red) transparent}
}

/* Work-page filter tabs (Agency work / Freelance / Personal) */
.filters{display:flex;flex-wrap:wrap;gap:.6rem;max-width:1600px;margin:1.25rem auto 0;padding:0 var(--pad)}
.filters[hidden]{display:none}
.fbtn{font:500 .95rem 'Heebo',sans-serif;color:var(--muted);background:transparent;border:1px solid var(--line);border-radius:99px;padding:.4rem 1.1rem;cursor:pointer;transition:color .2s,background .2s,border-color .2s}
.fbtn:hover{color:var(--text);border-color:var(--text)}
.fbtn.on{background:var(--red);border-color:var(--red);color:var(--on-accent,#fff)}
body.editing .filters{display:none}
.ftoggle{display:none}
.fpanel{display:contents} /* computers: the tabs sit in one row, exactly as before */
.card.pop{animation:card-in .5s var(--ease) both}
@keyframes card-in{from{opacity:0;transform:translateY(14px) scale(.98)}}

/* Picture zoom: full-screen stage with the original file */
.media.zoomable{cursor:zoom-in}
.zoombtn{position:absolute;z-index:3;bottom:.75rem;inset-inline-end:.75rem;width:2.4rem;height:2.4rem;padding:0;border:0;border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.6);color:#fff;backdrop-filter:blur(6px);cursor:pointer;opacity:.85;transition:opacity .2s,background .2s}
.zoombtn svg{width:1.2rem;height:1.2rem}
.zoombtn:hover{opacity:1;background:var(--red)}
.zoombtn[hidden]{display:none}
#zstage{position:absolute;inset:0;z-index:1000;background:#000;overflow:hidden;touch-action:none;cursor:zoom-in;-webkit-user-select:none;user-select:none}
#zstage[hidden]{display:none}
#zstage.zoomed{cursor:grab}
#zstage.zoomed:active{cursor:grabbing}
#zstage img{position:absolute;left:0;top:0;max-width:none;transform-origin:0 0;will-change:transform;pointer-events:none;-webkit-user-drag:none}
#zstage::after{content:'';position:absolute;top:.75rem;left:.75rem;width:150px;height:40px;background:var(--logo,url(assets/logo.png)) no-repeat center/contain;opacity:.4;pointer-events:none}
.zbar{position:absolute;z-index:2;top:1rem;left:50%;translate:-50% 0;display:flex;align-items:center;gap:2px;padding:.25rem;border-radius:99px;background:rgba(20,20,20,.75);backdrop-filter:blur(8px)}
.zbar button{min-width:2.3rem;height:2.3rem;padding:0 .6rem;border:0;border-radius:99px;background:transparent;color:#fff;font:600 1rem/1 'Heebo',sans-serif;cursor:pointer;transition:background .2s}
.zbar button:hover{background:var(--red)}
.zbar [data-z=pct]{min-width:3.8rem;font-weight:500;font-size:.85rem}
.modal.zooming .step{display:none}

/* "Click to zoom" bubble (same shape and pulse as the "you" bubble) and the zoom magnifier cursor */
.site-cursor .tip{position:absolute;left:22px;top:-11px;translate:0 -100%;transform-origin:0 100%;white-space:nowrap;opacity:0;transform:translate(-22px,11px) scale(.1);filter:drop-shadow(0 3px 5px rgba(0,0,0,.35));transition:transform .4s cubic-bezier(.34,1.56,.64,1),opacity .2s}
.site-cursor .tip b{display:block;transform-origin:0 100%;background:var(--red);color:var(--on-accent,#fff);font:800 13px/1 'Bricolage Grotesque','Heebo',system-ui,sans-serif;padding:8px 13px 19px;clip-path:polygon(0 0,100% 0,100% calc(100% - 11px),24px calc(100% - 11px),0 100%);animation:me-pulse 2.4s ease-in-out infinite}
html[lang=he] .site-cursor .tip b{font-family:'Heebo',system-ui,sans-serif;font-weight:800}
.site-cursor.zoomhint .tip{opacity:1;transform:none}
.site-cursor.zoomhint .me,.site-cursor.zoom .me{opacity:0;transform:translate(-22px,11px) scale(.1)}
.site-cursor.click .tip,.site-cursor.zoom .tip{opacity:0;transform:translate(-22px,11px) scale(.1)}
.site-cursor.zoom .ck{opacity:0;transform:scale(.3)}
.site-cursor .mag{position:absolute;left:-20px;top:-20px;width:44px;height:44px;opacity:0;scale:.4;transition:opacity .15s,scale .3s cubic-bezier(.34,1.56,.64,1)}
.site-cursor.zoom .mag{opacity:1;scale:1}
.site-cursor .mag svg{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 2px 4px rgba(0,0,0,.4))}
.site-cursor .mag .o{stroke:var(--red);stroke-width:5}
.site-cursor .mag .w{stroke:#fff;stroke-width:2.2}
.site-cursor .mag .o .plus,.site-cursor .mag .o .minus{stroke-width:3.4}
.site-cursor .mag .w .plus,.site-cursor .mag .w .minus{stroke-width:1.8}
html[data-zs=out] .site-cursor .mag .plus{display:none}
html:not([data-zs=out]) .site-cursor .mag .minus{display:none}
html .site-cursor.zin .mag .minus{display:none}html .site-cursor.zin .mag .plus{display:inline}
html .site-cursor.zout .mag .plus{display:none}html .site-cursor.zout .mag .minus{display:inline}
.site-cursor.zin .mag svg{animation:mag-in .4s cubic-bezier(.34,1.56,.64,1)}
.site-cursor.zout .mag svg{animation:mag-out .4s cubic-bezier(.34,1.56,.64,1)}
@keyframes mag-in{0%{transform:scale(1)}40%{transform:scale(1.3) rotate(-8deg)}100%{transform:scale(1)}}
@keyframes mag-out{0%{transform:scale(1)}40%{transform:scale(.72) rotate(8deg)}100%{transform:scale(1)}}

/* the two bubbles swap cleanly: "you" leaves quickly, then "Click to zoom" pops in (no overlap) */
.site-cursor.zoomhint .me{transition-duration:.16s}
.site-cursor.zoomhint .tip{transition-delay:.1s}

/* Language-switch bubble: pops in the centre of the screen, holds a moment, floats away */
.lang-pop{position:fixed;left:50%;top:50%;z-index:2147482500;translate:-50% -50%;display:none;pointer-events:none;filter:drop-shadow(0 16px 34px rgba(0,0,0,.5))}
.lang-pop svg{display:block;width:clamp(220px,34vw,420px);height:auto;overflow:visible}
.lang-pop .bg{fill:var(--red)}
.lang-pop .fg{fill:var(--on-accent,#fff);transform-box:fill-box;transform-origin:50% 100%;animation:lp-letter .6s calc(.12s + var(--i) * .1s) cubic-bezier(.34,1.56,.64,1) both}
.lang-pop.on{display:block;animation:lp-pop 1.25s cubic-bezier(.2,.8,.2,1) both}
.lang-pop::before{content:'';position:absolute;z-index:-1;left:50%;top:50%;width:190%;aspect-ratio:1;translate:-50% -50%;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--red) 50%,transparent),transparent 62%);animation:lp-glow 1.25s ease-out both}
@keyframes lp-pop{
  0%{opacity:0;transform:scale(.3) rotate(-10deg) translateY(36px)}
  18%{opacity:1;transform:scale(1.12) rotate(2deg) translateY(0)}
  30%{transform:scale(1) rotate(0)}
  74%{opacity:1;transform:scale(1) rotate(0)}
  100%{opacity:0;transform:scale(.72) rotate(3deg) translateY(-28px)}}
@keyframes lp-glow{0%{scale:.3;opacity:0}22%{opacity:1}100%{scale:1.15;opacity:0}}
@keyframes lp-letter{0%{opacity:0;transform:translateY(55%) scale(.5)}100%{opacity:1;transform:none}}

/* Language-switch veil: solid full-screen cover with a dozen letters of the new language, hides the instant change */
.lang-veil{position:fixed;inset:0;z-index:2147482400;display:none;pointer-events:none;overflow:hidden;background:radial-gradient(circle at 50% 50%,color-mix(in srgb,var(--red) 16%,var(--page,var(--bg))),var(--page,var(--bg)) 72%)} /* fully solid: nothing of the page shows through */
.lang-veil.on{display:block;animation:lv-fade 1.3s ease both}
.lang-veil i{position:absolute;left:var(--x);top:var(--y);font:800 var(--s)/1 'Bricolage Grotesque','Heebo',system-ui,sans-serif;font-style:normal;color:var(--red);opacity:0;transform:translate(-50%,-50%) rotate(var(--r));animation:lv-letter 1.3s calc(var(--i) * 32ms) cubic-bezier(.34,1.56,.64,1) both}
.lang-veil i.o{color:transparent;-webkit-text-stroke:.035em var(--red)}
@keyframes lv-fade{0%{opacity:0}18%{opacity:1}76%{opacity:1}100%{opacity:0}}
@keyframes lv-letter{0%{opacity:0;scale:.2}20%{opacity:.9;scale:1}70%{opacity:.9;scale:1.04}100%{opacity:0;scale:1.45}}

/* Bubbles that open downward near the top of the screen, and the meme-mode bubble over the light/dark button */
.site-cursor.click.memetip .tip{opacity:1;transform:none}
.site-cursor.tipbelow .tip{top:12px;left:26px;translate:0 0;transform-origin:0 0;transform:translate(-26px,-12px) scale(.1)}
.site-cursor.tipbelow .tip b{transform-origin:0 0;padding:19px 13px 8px;clip-path:polygon(0 0,24px 11px,100% 11px,100% 100%,0 100%)}
.site-cursor.tipbelow.zoomhint .tip,.site-cursor.tipbelow.click.memetip .tip{transform:none}
.site-cursor.tipbelow.click:not(.memetip) .tip{opacity:0}

/* Meme mode: the picture of where the light / dark button is taking you */
.meme-pop{position:fixed;inset:0;z-index:2147482600;display:none;place-items:center;pointer-events:none}
.meme-pop.on{display:grid}
.meme-pop .mp-bg{position:absolute;inset:0;background:rgba(0,0,0,.66);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);animation:mp-bg 2.25s ease both}
.meme-pop .mp-flash{position:absolute;inset:0;background:#fff;opacity:0;display:none}
.meme-pop.to-light .mp-flash{display:block;animation:mp-flash 2.25s ease-out both}
.meme-pop img{position:relative;width:min(78vw,460px);height:auto;border-radius:16px;box-shadow:0 26px 80px rgba(0,0,0,.6);animation:mp-img 2.25s cubic-bezier(.2,.8,.2,1) both}
@keyframes mp-bg{0%{opacity:0}9%{opacity:1}88%{opacity:1}100%{opacity:0}}
@keyframes mp-flash{0%,15%{opacity:0}19%{opacity:.95}46%{opacity:0}100%{opacity:0}}
@keyframes mp-img{0%{opacity:0;transform:scale(.3) rotate(-8deg)}12%{opacity:1;transform:scale(1.07) rotate(1.5deg)}20%{transform:scale(1) rotate(0)}88%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8) translateY(22px)}}

/* Contact heading in the same font as the sentence under it */
main.page:has(.rows) h1{font-family:'Heebo',system-ui,sans-serif;letter-spacing:-.03em}
html[lang=he] main.page:has(.rows) h1{letter-spacing:0}

/* Light / dark switch: solid cover with the sun and moon icons in the middle, hides the instant change */
.mode-veil::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 50% 50%,color-mix(in srgb,var(--red) 16%,transparent),transparent 72%)}
.mode-veil .rays,.mode-veil .moon{transform-origin:12px 12px}
.mode-veil .rays{animation:t-spin 4s linear infinite}
.mode-veil .moon{animation:t-rock 1s ease-in-out infinite alternate}
.mode-veil .star{stroke-width:.6;opacity:0;transform-box:fill-box;transform-origin:center;animation:t-twinkle 1.3s ease-in-out infinite}

/* meme mode: the cover behind the meme is solid too */
.meme-pop .mp-bg{background:var(--page,var(--bg));backdrop-filter:none;-webkit-backdrop-filter:none;transition:background-color .3s}

.c-grid .cell{margin:0}


/* Back-to-top button: a small version of the brand speech bubble with an arrow that shoots up when pressed */
#totop{position:fixed;left:calc(var(--tx,88) * 1%);top:calc(var(--ty,86) * 1%);translate:-50% -50%;z-index:150;width:3.2rem;height:3.5rem;padding:0;border:0;background:none;color:var(--on-accent,#fff);display:grid;place-items:center;cursor:pointer;opacity:0;scale:.4;pointer-events:none;filter:drop-shadow(0 8px 12px rgba(0,0,0,.45));transition:opacity .25s,scale .4s cubic-bezier(.34,1.56,.64,1);-webkit-tap-highlight-color:transparent}
#totop.show{opacity:1;scale:1;pointer-events:auto}
#totop.ghost{opacity:.4}
#totop:active{scale:.92}
#totop .tb-bg{position:absolute;inset:0;background:var(--red);clip-path:polygon(0 0,100% 0,100% calc(100% - 12px),20px calc(100% - 12px),0 100%)}
#totop svg{position:relative;width:1.55rem;height:1.55rem;margin-top:-.4rem}
#totop::after{content:'';position:absolute;left:50%;bottom:55%;width:4px;height:70px;margin-left:-2px;border-radius:4px;background:linear-gradient(to top,var(--red),transparent);opacity:0;pointer-events:none}
#totop.shoot{animation:tb-hop .75s}
#totop.shoot svg{animation:tb-shoot .75s cubic-bezier(.5,0,.3,1)}
#totop.shoot::after{animation:tb-streak .75s ease-out}
@keyframes tb-shoot{0%{translate:0 0}38%{translate:0 -240%;opacity:0}39%{translate:0 240%;opacity:0}70%{opacity:1}100%{translate:0 0;opacity:1}}
@keyframes tb-hop{0%,100%{translate:-50% -50%}20%{translate:-50% calc(-50% + 4px)}45%{translate:-50% calc(-50% - 10px)}}
@keyframes tb-streak{0%,10%{opacity:0;scale:1 .2;translate:0 0}35%{opacity:.9;scale:1 1;translate:0 -30px}100%{opacity:0;scale:1 1.4;translate:0 -140px}}

/* Maintenance page: logo only (not clickable), content centred */
.maint .brand{pointer-events:none;cursor:default}
.maint main.page{min-height:62vh;display:flex;flex-direction:column;justify-content:center}

/* Maintenance-page mini-game */
.mgame{margin-top:2.5rem;width:min(100%,560px)}
.mgame h2{font:500 1rem/1.4 'Heebo',system-ui,sans-serif;letter-spacing:0;color:var(--muted);margin:0 0 .7rem}
.mgame canvas{display:block;width:100%;aspect-ratio:3/2;border-radius:14px;border:1px solid var(--line);touch-action:manipulation;cursor:pointer;outline:none;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
.mgame canvas:focus-visible{outline:2px solid var(--red);outline-offset:3px}

/* Showreel tab: hangs under the header on a computer (the video pulls down); on a phone it sits on the bottom edge and the video pushes up to the middle of the screen */
#reel-bd{position:fixed;inset:0;z-index:89;background:rgba(0,0,0,.5);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);opacity:0;pointer-events:none;transition:opacity .45s} /* the page behind is darkened and blurred */
#reel-bd.on{opacity:1;pointer-events:auto}
#reel{--snap:cubic-bezier(.4,0,.2,1);--bounce:cubic-bezier(.34,1.5,.64,1);position:fixed;left:50%;top:calc(var(--hh,72px) - 1px);translate:-50% 0;z-index:90;width:min(960px,92vw);display:grid;justify-items:center;pointer-events:none}
.reel-box{position:relative;z-index:1;width:100%;height:0;overflow:hidden;background:#000;border-radius:0 0 18px 18px;transition:height .45s var(--snap)} /* above the tab, so the 1px the tab tucks under it never shows */
#reel.open .reel-box{height:var(--h,360px);pointer-events:auto;transition:height .55s cubic-bezier(.3,1.25,.5,1)}
.reel-box video{display:block;width:100%;height:var(--h,360px);background:#000;object-fit:contain}
.reel-tab{position:relative;z-index:0;margin-top:-1px;pointer-events:auto;display:flex;align-items:stretch;background:var(--red);color:var(--on-accent,#fff);border-radius:0 0 22px 22px;overflow:hidden;box-shadow:0 8px 14px -6px rgba(0,0,0,.55);transition:box-shadow .3s,filter .2s,border-radius .38s var(--bounce)}
.reel-tab:hover{filter:brightness(1.1)}
#reel.open .reel-tab{box-shadow:none}
.reel-main{display:flex;flex-direction:column-reverse;align-items:center;gap:.3rem;padding:.5rem 1.2rem .55rem 1.5rem;padding-inline:1.5rem 1.2rem;border:0;background:none;color:inherit;font:800 1.05rem/1.1 'Bricolage Grotesque','Heebo',system-ui,sans-serif;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:padding .38s var(--bounce),gap .3s var(--snap)}
.reel-main .lbl{display:block;white-space:nowrap;max-width:14rem;max-height:1.6rem;overflow:hidden;transition:max-width .34s var(--snap),max-height .3s var(--snap),opacity .2s linear}
.reel-main .ar{width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:8px solid currentColor;transition:rotate .5s cubic-bezier(.34,1.56,.64,1);animation:reel-bob 1.6s ease-in-out 3.5s infinite}
.reel-main:hover .ar{animation-duration:.8s}
#reel.open .ar{rotate:180deg;animation:none}
.reel-min{flex:none;width:2.3rem;display:grid;place-items:center;padding:0;border:0;border-inline-start:1px solid rgba(255,255,255,.35);background:none;color:inherit;opacity:.9;cursor:pointer;transition:width .34s var(--snap),opacity .2s,background .2s}
.reel-min:hover{background:rgba(0,0,0,.2);opacity:1}
.reel-min svg{width:.8rem;height:.8rem}
#reel.open .reel-min{display:none}
#reel.open .reel-main{padding-inline:1.5rem}
.reel-tab.min{border-radius:0 0 16px 16px}
.reel-tab.min .reel-main{gap:0;padding:.3rem 1.3rem .38rem}
.reel-tab.min .lbl{max-width:0;max-height:0;opacity:0}
.reel-tab.min .reel-min{width:0;opacity:0;border-width:0;pointer-events:none}
/* a little lengthwise boing whenever the tab collapses or expands, anchored on the edge it hangs from */
.reel-tab.boing{transform-origin:50% 0;animation:reel-boing .4s var(--snap)}
@keyframes reel-boing{0%{scale:1 1}40%{scale:.96 1.2}100%{scale:1 1}}
@keyframes reel-bob{50%{translate:0 3px}}
@keyframes reel-bob-up{50%{translate:0 -3px}}
@media (max-width:820px){
  #reel{top:auto;bottom:0;left:0;right:0;margin-inline:auto;translate:0 0;width:min(calc(100% - 1.5rem),720px);display:flex;flex-direction:column-reverse;align-items:center;transition:translate .45s var(--snap)}
  #reel.open{translate:0 calc(var(--lift,0px) * -1);transition:translate .55s cubic-bezier(.3,1.2,.5,1)}
  .reel-tab.boing{transform-origin:50% 100%}
  .reel-box{border-radius:18px}
  .reel-tab{margin-top:0;margin-bottom:-1px;border-radius:22px 22px 0 0}
  .reel-tab.min{border-radius:16px 16px 0 0}
  .reel-main{flex-direction:column;padding-bottom:calc(.5rem + env(safe-area-inset-bottom))}
  .reel-tab.min .reel-main{padding-bottom:calc(.3rem + env(safe-area-inset-bottom))}
  .reel-main .ar{rotate:180deg;animation-name:reel-bob-up}
  #reel.open .ar{rotate:0deg}
  body.has-reel{padding-bottom:calc(3.8rem + env(safe-area-inset-bottom))}
}

/* Showreel tab entrance: it slides out from behind the header (bottom edge on a phone) stretched, then stretches lengthwise and returns to its shape. The stretch is anchored on the edge it is attached to, so it never lets go of the page */
#reel.pre .reel-tab{opacity:0;translate:0 -130%}
#reel.enter .reel-tab{transform-origin:50% 0;animation:reel-drop .6s both,reel-ping .45s .22s ease-out}
@keyframes reel-drop{
  0%{opacity:0;translate:0 -115%;scale:1 1;animation-timing-function:cubic-bezier(.4,0,.2,1)}
  5%{opacity:1}
  46%{translate:0 0;scale:.96 1.24;animation-timing-function:cubic-bezier(.2,.8,.3,1)}
  100%{translate:0 0;scale:1 1}}
@keyframes reel-pop{
  0%{opacity:0;translate:0 115%;scale:1 1;animation-timing-function:cubic-bezier(.4,0,.2,1)}
  5%{opacity:1}
  46%{translate:0 0;scale:.96 1.24;animation-timing-function:cubic-bezier(.2,.8,.3,1)}
  100%{translate:0 0;scale:1 1}}
@keyframes reel-ping{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--red) 65%,transparent)}100%{box-shadow:0 0 0 22px transparent}}
@media (max-width:820px){
  #reel.pre .reel-tab{translate:0 130%}
  #reel.enter .reel-tab{transform-origin:50% 100%;animation:reel-pop .6s both,reel-ping .45s .22s ease-out}
}

@media (min-width:821px){
  #reel{clip-path:inset(0 -60px -80px -60px)} /* clips only the top edge (the header's bottom line), so the tab emerges from it instead of showing through the see-through header */
}

/* About titles: on hover the "you" bubble steps aside and an icon pops into the title bubble (the tag grows to make room) */
.block h2::after{content:'';position:absolute;top:.2rem;inset-inline-end:.75rem;width:1.6rem;height:1.5rem;background:var(--on-accent,#fff);-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat;scale:0;rotate:-30deg;opacity:0;pointer-events:none;transition:scale .45s cubic-bezier(.34,1.56,.64,1) .05s,rotate .45s cubic-bezier(.34,1.56,.64,1) .05s,opacity .2s .05s}
.block h2{transition:padding .38s cubic-bezier(.34,1.35,.64,1)}
@media (hover:hover){
  body:not(.editing) .block h2:hover{padding-inline-end:2.75rem}
  body:not(.editing) .block h2:hover::after{scale:1;rotate:0deg;opacity:1}
}
body.editing .block h2::after{display:none}
.block h2[data-i=exp_t]{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 102.99 94.78'%3E%3Cdefs%3E%3Cstyle%3E .st0 { fill: %23fff; } .st1 { fill: none; } .st2 { clip-path: url(%23clippath); } %3C/style%3E%3CclipPath id='clippath'%3E%3Crect class='st1' x='7.27' y='7.46' width='86.85' height='74.39'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg class='st2'%3E%3Cpath class='st0' d='M38.23,19.88h24.97c.02-.08.05-.13.05-.17,0-1.93,0-3.87,0-5.8,0-.36-.2-.4-.49-.4-8.02,0-16.04,0-24.05,0-.37,0-.49.13-.49.5.02,1.08,0,2.17,0,3.26v2.63ZM7.27,46.12v-19.35c.05-.05.12-.1.13-.16.32-2.04,1.24-3.72,2.89-5.02,1.4-1.11,2.95-1.67,4.71-1.68,2.5-.02,5.01.01,7.51.01,2.59,0,5.17,0,7.75,0h1.94v-.66c0-2.37.04-4.75-.01-7.12-.06-2.52,2.07-4.68,4.71-4.68,9.18.01,18.37,0,27.56,0,1.32,0,2.48.38,3.43,1.33.8.8,1.36,1.73,1.39,2.88.05,1.9.01,3.81.01,5.71v2.54c.31,0,.54,0,.77,0,2.49,0,4.98-.01,7.47-.02,2.8,0,5.61.02,8.41,0,1.86-.01,3.57.39,5.09,1.54,1.25.95,2.13,2.15,2.68,3.61.15.41.28.83.43,1.25v19.83c-.09,0-.18-.01-.28-.01-11.04,0-22.08,0-33.12,0H27.18c-6.64,0-13.27,0-19.91.01'/%3E%3Cpath class='st0' d='M94.12,50.93v24.54s-.11.08-.12.12c-.3,1.7-1.19,3.07-2.43,4.23-1.39,1.3-3.05,2.01-4.95,2.01-23.94.01-47.88.01-71.83,0-1.32,0-2.59-.37-3.69-1.08-2.01-1.31-3.33-3.13-3.69-5.56,0-.07-.08-.13-.13-.19v-24.07c.91,0,1.82,0,2.73,0h29.76c.01.22.03.41.03.59v7.18c0,1.71,1.39,3.1,3.1,3.1,5.21,0,10.41-.02,15.62.01,1.72,0,3.21-1.53,3.18-3.2-.04-2.34-.03-4.68-.04-7.02,0-.2.02-.4.03-.62.17-.01.3-.03.44-.03,5.33,0,10.66,0,15.99,0,5.33,0,10.66,0,15.99-.01'/%3E%3C/g%3E%3Crect class='st0' x='44.64' y='50.97' width='12.17' height='5.99'/%3E%3C/svg%3E")}
.block h2[data-i=edu_t]{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 102.99 94.78'%3E%3Cdefs%3E%3Cstyle%3E .st0 { fill: %23fff; } .st1 { fill: none; } .st2 { clip-path: url(%23clippath); } %3C/style%3E%3CclipPath id='clippath'%3E%3Crect class='st1' x='2.17' y='14.59' width='97.81' height='66.9'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg class='st2'%3E%3Cpath class='st0' d='M26.27,40.43c2.51-1.2,4.88-2.13,7.25-3.05,5.95-2.3,11.83-4.79,17.92-6.69.63-.2,1.23-.48,1.76-.9.84-.69,1.1-1.73.68-2.78-.41-1.03-1.3-1.15-2.22-1.11-.86.05-1.7.28-2.51.57-7.99,2.89-15.85,6.13-23.74,9.28-5.56,2.22-8.55,6.21-9.24,12.06-.05.43-.14.85-.2,1.28-.12.81.1,1.41.75,2,2.03,1.84,2.19,4.7.38,6.77-.64.73-.74,1.4-.62,2.33.51,4.28,1.15,8.56.28,12.87-.61,3.03-2.06,5.58-4.55,7.46-1.34,1.01-2.79,1.29-4.39.59-1.76-.77-3.45-1.67-5.09-2.68-.71-.44-.69-.85-.2-1.4,1.15-1.28,2.38-2.5,3.43-3.87,2.99-3.89,4.71-8.32,5.35-13.18.08-.6-.12-.99-.6-1.24-2.94-1.52-3.07-6.48.07-8.2.54-.3.56-.84.62-1.38.31-3.04.85-6.03,2.13-8.83.44-.97.97-1.9,1.64-2.71.44-.54.26-.77-.29-.99-2.06-.82-4.21-1.36-6.32-2.03-1.2-.38-2.4-.74-3.53-1.3-.79-.39-1.29-.98-1.3-1.84-.01-.83.62-1.32,1.29-1.62,1.93-.87,3.99-1.39,6-2.06,12.46-4.17,24.95-8.28,37.38-12.56,2.38-.82,4.46-.82,6.81-.03,13.23,4.49,26.5,8.86,39.75,13.26,1.06.35,2.16.65,3.21,1.04.96.36,1.84.89,1.84,2.09,0,1.22-.93,1.68-1.9,2.01-3.35,1.13-6.71,2.23-10.06,3.35-11.53,3.85-23.06,7.71-34.58,11.58-1.1.37-2.14.26-3.21-.1-5.55-1.86-11.09-3.71-16.64-5.56-2.38-.79-4.76-1.58-7.32-2.43'/%3E%3Cpath class='st0' d='M82.69,51.17c0,1.83-.04,3.65,0,5.48.07,2.59-.99,4.61-2.95,6.22-3.17,2.6-6.92,3.96-10.81,4.98-8.69,2.27-17.48,2.54-26.35,1.44-4.95-.61-9.77-1.67-14.32-3.79-1.7-.79-3.17-1.9-4.66-3.01-.74-.55-.69-.99-.24-1.61.79-1.09,1.38-2.27,1.45-3.64.14-2.87-.58-5.39-3.13-7.06-.36-.24-.37-.5-.37-.83-.03-1.43.24-2.83.49-4.23.12-.66.39-.75.99-.58,2.9.83,5.69,1.95,8.54,2.92,5.84,1.99,11.68,4,17.6,5.78,2.47.74,4.75.6,7.15-.24,8.14-2.84,16.31-5.57,24.48-8.33,2.15-.73,2.15-.71,2.14,1.53,0,1.66,0,3.32,0,4.98'/%3E%3C/g%3E%3C/svg%3E")}
.block h2[data-i=tools_t]{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 102.99 94.78'%3E%3Cdefs%3E%3Cstyle%3E .st0 { fill: %23fff; } %3C/style%3E%3C/defs%3E%3Cpath class='st0' d='M84.78,72.1c-2.3,2.75-4.59,5.51-6.89,8.26l-1.91,2.29-.24-2.97-1.03-12.82-1.03-12.82-.22-2.73,2.18,1.66,10.21,7.83,10.21,7.83,2.37,1.81-2.96.36c-3.56.44-7.12.87-10.68,1.31'/%3E%3Cpath class='st0' d='M28.67,22.7l7,.66c.49.05.66.68.26.97l-5.73,4.07c-2.6,1.85-4.27,4.75-4.56,7.93l-.64,7.02c-.05.5-.68.67-.97.26l-4.07-5.76c-1.85-2.61-4.74-4.29-7.91-4.59l-7-.66c-.49-.05-.66-.69-.26-.97l5.73-4.07c2.6-1.85,4.27-4.75,4.56-7.93l.64-7.02c.04-.5.68-.67.97-.26l4.07,5.76c1.85,2.61,4.74,4.29,7.91,4.59'/%3E%3Cpolygon class='st0' points='60.45 48.66 47.48 40.34 47.48 56.98 60.45 48.66'/%3E%3Cpolygon class='st0' points='79.89 25.31 79.89 34.57 79.89 35.79 81.11 35.79 90.37 35.79 91.59 35.79 91.59 34.57 91.59 25.31 91.59 24.09 90.37 24.09 81.11 24.09 79.89 24.09 79.89 25.31'/%3E%3Cpolygon class='st0' points='13.47 61.31 13.47 70.57 13.47 71.79 14.69 71.79 23.96 71.79 25.17 71.79 25.17 70.57 25.17 61.31 25.17 60.09 23.96 60.09 14.69 60.09 13.47 60.09 13.47 61.31'/%3E%3Cg%3E%3Cpath class='st0' d='M17.53,29.14v4.87c.9.58,1.74,1.27,2.47,2.08v-4.49h5.92c.48-.89,1.06-1.72,1.75-2.47h-10.13Z'/%3E%3Cpolygon class='st0' points='84.55 31.6 84.55 34.57 87.02 34.57 87.02 29.14 81.1 29.14 81.1 31.6 84.55 31.6'/%3E%3Cpath class='st0' d='M28.58,31.6h50.09v-2.47H31.13l-.27.19c-.89.63-1.66,1.4-2.28,2.27Z'/%3E%3Cpolygon class='st0' points='87.02 37.01 84.55 37.01 84.55 58.27 87.02 60.16 87.02 37.01'/%3E%3Cpath class='st0' d='M20,58.87v-19l-.96-1.36c-.44-.62-.95-1.18-1.5-1.67v22.04h2.47Z'/%3E%3Cpolygon class='st0' points='20 65.72 20 61.31 17.53 61.31 17.53 68.19 23.95 68.19 23.95 65.72 20 65.72'/%3E%3Cpolygon class='st0' points='87.02 63.22 84.55 61.33 84.55 65.72 75.84 65.72 76.03 68.19 87.02 68.19 87.02 63.22'/%3E%3Cpolygon class='st0' points='73.39 65.72 26.39 65.72 26.39 68.19 73.59 68.19 73.39 65.72'/%3E%3C/g%3E%3C/svg%3E")}
.block h2[data-i=clients_t]{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 102.99 94.78'%3E%3Cdefs%3E%3Cstyle%3E .st0 { fill: %23fff; } .st1 { fill: none; } .st2 { clip-path: url(%23clippath); } %3C/style%3E%3CclipPath id='clippath'%3E%3Crect class='st1' x='27.24' y='4.86' width='48.5' height='85.05'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg class='st2'%3E%3Cpath class='st0' d='M70.29,23.66c0,10.38-8.42,18.8-18.8,18.8s-18.8-8.42-18.8-18.8S41.11,4.86,51.49,4.86s18.8,8.42,18.8,18.8'/%3E%3Cpath class='st0' d='M62.91,89.91h-22.84c-10.78,0-15.33-10.8-11.47-20.55l5.35-13.53c1.74-4.41,7.09-7.41,12.16-7.41h10.76c5.08,0,10.42,3,12.16,7.41l5.35,13.53c3.86,9.74-.69,20.55-11.47,20.55'/%3E%3C/g%3E%3C/svg%3E")}

/* About page: hover the big logo and the "you" bubble turns into a "me" bubble, while the logo grows a little */
.site-cursor .me2{position:absolute;left:22px;top:-11px;translate:0 -100%;transform-origin:0 100%;opacity:0;transform:translate(-22px,11px) scale(.1);filter:drop-shadow(0 3px 5px rgba(0,0,0,.35));transition:transform .45s cubic-bezier(.34,1.56,.64,1),opacity .2s}
.site-cursor .me2 svg{display:block;width:54px;height:auto;transform-origin:0 100%;animation:me-pulse 2.4s ease-in-out infinite}
.site-cursor .me2 .bg{fill:var(--red)}
.site-cursor .me2 .fg{fill:var(--on-accent,#fff)}
.site-cursor.isme .me{opacity:0;transform:translate(-22px,11px) scale(.1);transition-duration:.16s}
.site-cursor.isme .me2{opacity:1;transform:none;transition-delay:.08s}
.pt-out .site-cursor .me2,.pt-in .site-cursor .me2{opacity:0!important}
.about-main .about-logo{transition:transform .5s cubic-bezier(.34,1.56,.64,1);transform-origin:8.4% 50%}
html[dir=rtl] .about-main .about-logo{transform-origin:91.6% 50%}
@media (hover:hover){.about-main .about-logo:hover{transform:scale(1.06)}}

/* Cursor while scrolling: the pointer morphs into a small scroll pill (same white body and thin red outline as the pointer); its red thumb slides to the top when you scroll up and to the bottom when you scroll down, and chevrons stream in that direction */
.site-cursor .scr{position:absolute;left:-13px;top:-23.5px;width:26px;height:47px;opacity:0;pointer-events:none}
.site-cursor .scr svg{display:block;width:100%;height:100%;overflow:visible;fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 1px var(--red)) drop-shadow(0 0 1.5px var(--red)) drop-shadow(0 2px 4px rgba(0,0,0,.3))}
.site-cursor .scr .mp{fill:#fff;paint-order:stroke;stroke-width:7.31} /* 3.8 units x 1.25 px = the pointer's own stroke */
.site-cursor .scr .tg{opacity:0;scale:.4;transform-box:fill-box;transform-origin:center;translate:0 11.75px;transition:opacity .2s,scale .3s cubic-bezier(.34,1.56,.64,1),translate .3s cubic-bezier(.4,0,.2,1)}
.site-cursor .scr .th{fill:var(--red);stroke:none;transform-box:fill-box;transition:fill .25s}
.site-cursor.morphing .scr{opacity:1}
.site-cursor.morphing .ck{opacity:0;transition:none;animation:none}
.site-cursor.pill .tg{opacity:1;scale:1}
.site-cursor.pill.sdown .tg{translate:0 23.5px}
.site-cursor.pill.sup .tg{translate:0 0}
.site-cursor.sdown .me,.site-cursor.sup .me,.site-cursor.sdown .me2,.site-cursor.sup .me2{opacity:0;transform:translate(-22px,11px) scale(.1)}
.site-cursor .sc{position:absolute;left:-4px;top:28px;width:8px;height:30px;pointer-events:none;opacity:0;transition:opacity .15s .1s}
.site-cursor.sup .sc{top:-58px}
.site-cursor.sdown .sc,.site-cursor.sup .sc{opacity:1}
.site-cursor .sc i{position:absolute;left:0;top:0;width:8px;height:8px;border:solid #fff;border-width:0 2.4px 2.4px 0;rotate:45deg;opacity:0;filter:drop-shadow(0 0 1px var(--red)) drop-shadow(0 0 1.5px var(--red))}
.site-cursor.sup .sc i{rotate:225deg}
.site-cursor.sdown .sc i{animation:sc-fall .7s ease-in infinite}
.site-cursor.sup .sc i{animation:sc-rise .7s ease-in infinite}
.site-cursor .sc i:nth-child(2){animation-delay:.12s}
.site-cursor .sc i:nth-child(3){animation-delay:.24s}
@keyframes sc-fall{0%{opacity:0;translate:0 -4px}25%{opacity:1}100%{opacity:0;translate:0 20px}}
@keyframes sc-rise{0%{opacity:0;translate:0 26px}25%{opacity:1}100%{opacity:0;translate:0 2px}}

/* option: no "you" bubble next to the pointer (Settings in the editor) */
html.no-you .site-cursor .me{display:none} /* only the "you" bubble; the "me" bubble on the About logo keeps working */

/* pill <-> pointer: no pop when it turns back into the pointer; from the click pointer it keeps the click pointer's red body and returns to it */
.site-cursor.nopop .ck{animation:none}
.site-cursor .scr .mp{transition:fill .25s,stroke .25s}
.site-cursor .scr svg{transition:filter .25s}
.site-cursor.click .scr .mp{fill:var(--red)}
.site-cursor.click .scr svg{filter:drop-shadow(0 0 0 transparent) drop-shadow(0 0 0 transparent) drop-shadow(0 1px 3px rgba(0,0,0,.5))}

/* the pill follows the pointer's colours: normal = white body + red thumb, over a clickable area = inverted (red body + white thumb); it blends from one to the other */
.site-cursor.click .scr .th{fill:#fff}
@keyframes th-squash-d{0%{scale:1 1}22%{scale:1.16 .8}52%{scale:.95 1.12}78%{scale:1.02 .98}100%{scale:1 1}}
@keyframes th-squash-u{0%{scale:1 1}22%{scale:1.16 .8}52%{scale:.95 1.12}78%{scale:1.02 .98}100%{scale:1 1}}
/* a small squash and stretch when the thumb reaches the end it is travelling to (squashed against that end, then stretched back) */
.site-cursor.pill.sdown .th{transform-origin:50% 100%;animation:th-squash-d .46s .24s both}
.site-cursor.pill.sup .th{transform-origin:50% 0%;animation:th-squash-u .46s .24s both}

/* Light / dark switch: a solid cover with an hourglass. The mode you leave sits in the top bulb, the mode you enter in the bottom one; the sand drains (easing in and out) from the top bulb into the bottom one, the hourglass flips, grows a little for a moment, and the cover fades away. Meanwhile the cover's colour glides to the new mode's */
.mode-veil{position:fixed;inset:0;z-index:2147482400;display:none;pointer-events:none;overflow:hidden;background-color:var(--page,var(--bg));transition:background-color .8s cubic-bezier(.45,0,.25,1)}
.mode-veil.on{display:block;animation:mv-fade5 2.3s linear both}
@keyframes mv-fade5{0%{opacity:0}9%{opacity:1}85%{opacity:1}100%{opacity:0}}
.mv-hg{--w:clamp(100px,22vmin,190px);position:absolute;inset:0;margin:auto;width:var(--w);height:calc(var(--w) * 5 / 3);color:var(--text);opacity:0;transition:color .8s cubic-bezier(.45,0,.25,1);filter:drop-shadow(0 10px 24px rgba(0,0,0,.28));animation:mv-hg 2.3s both}
.mv-hg > svg{display:block;width:100%;height:100%;overflow:visible}
.mv-hg .cap{fill:var(--red)}
.mv-hg .glass{fill:color-mix(in srgb,currentColor 7%,transparent);stroke:none}
.mv-hg .glass-line{fill:none;stroke:currentColor;stroke-width:5;stroke-linejoin:round;transition:stroke .8s}
.mv-hg .sand{fill:color-mix(in srgb,var(--red) 85%,transparent);transform-box:fill-box}
.mv-hg .st{transform-origin:50% 100%;animation:mv-top 2.3s both}
.mv-hg .sb{transform-origin:50% 100%;animation:mv-bot 2.3s both}
.mv-hg .ss{transform-origin:50% 0%;fill:var(--red);animation:mv-str 2.3s both}
.mv-hg .ic{transform-box:fill-box;transform-origin:center;animation:mv-ic 2.3s both}
@keyframes mv-hg{
  0%{opacity:0;scale:.6;rotate:0deg;animation-timing-function:cubic-bezier(.34,1.56,.64,1)}
  13%{opacity:1;scale:1;rotate:0deg}
  37%{scale:1;rotate:0deg;animation-timing-function:cubic-bezier(.6,0,.2,1)}
  67.5%{scale:1;rotate:180deg;animation-timing-function:cubic-bezier(.34,1.56,.64,1)}
  74%{scale:1.16;rotate:180deg}
  80%{scale:1.16;rotate:180deg;animation-timing-function:cubic-bezier(.45,0,.25,1)}
  87%{scale:1;rotate:180deg}
  100%{opacity:1;scale:1;rotate:180deg}}   /* after the flip it grows a little for a moment, then settles while the cover fades */
@keyframes mv-ic{0%,37%{rotate:0deg;animation-timing-function:cubic-bezier(.6,0,.2,1)}67.5%,100%{rotate:-180deg}} /* turns the opposite way, so the icons stay upright */
@keyframes mv-top{0%,13%{scale:1 1;animation-timing-function:cubic-bezier(.42,0,.58,1)}34.8%,100%{scale:1 0}}   /* the top sand drains (0.5 s), easing in and out */
@keyframes mv-bot{0%,13%{scale:1 0;animation-timing-function:cubic-bezier(.42,0,.58,1)}34.8%,100%{scale:1 1}}   /* the bottom pile grows with it */
@keyframes mv-str{0%{opacity:0;scale:1 1}13%{opacity:1;scale:1 1;animation-timing-function:cubic-bezier(.42,0,.58,1)}34.7%{opacity:1;scale:1 .146}34.8%,100%{opacity:0;scale:1 .146}}   /* the thin stream shortens as the pile rises, on the same easing */


/* the click pill = the click pointer's look: red body inside the same white ring (4.75 px stroke, 2.4 px showing) with its soft dark shadow; the white thumb is drawn a little smaller because white on red looks bigger than red on white */
.site-cursor.click .scr .mp{stroke:#fff}
.site-cursor.click.pill .tg{scale:.88}

/* Zoomed-in picture: the pointer is a hand (white line art with a red edge, like the magnifier), and a closed hand while you drag */
.site-cursor .hnd{position:absolute;left:-16px;top:-16px;width:32px;height:32px;opacity:0;scale:.4;transition:opacity .15s,scale .3s cubic-bezier(.34,1.56,.64,1)}
.site-cursor.hand .hnd{opacity:1;scale:1}
.site-cursor.hand.grab .hnd{scale:.9}
.site-cursor .hnd svg{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 2px 4px rgba(0,0,0,.4))}
.site-cursor .hnd .o{stroke:var(--red);stroke-width:5}
.site-cursor .hnd .w{stroke:#fff;stroke-width:2.2}
.site-cursor .hnd .cl{display:none}
.site-cursor.grab .hnd .op{display:none}
.site-cursor.grab .hnd .cl{display:inline}
.site-cursor.hand .ck{opacity:0;transform:scale(.3)}
.site-cursor.hand .me,.site-cursor.hand .me2{opacity:0;transform:translate(-22px,11px) scale(.1)}
.site-cursor.hand .tip{opacity:0}
#zstage.zoomed{cursor:grab}
#zstage.dragging{cursor:grabbing}

/* collage with files of different shapes: full-width rows, nothing left over */
.cjust{display:flex;flex-direction:column;gap:14px}
.jrow{display:flex;gap:14px;align-items:stretch}
.jrow .cell{flex:none;min-width:0}
.jrow .cell img,.jrow .cell video{width:100%;height:100%;min-height:0;object-fit:cover}

/* phones: the filter tabs sit in the middle, in even rows */
@media (max-width:820px){
  .filters{justify-content:center;gap:.5rem}
}

/* the page's own scrollbar: the browser's is hidden (computers with a mouse), this thin accent-coloured bar replaces it */
html.own-scrollbar{scrollbar-width:none}
html.own-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}
#sbar{position:fixed;top:0;right:0;bottom:0;width:16px;z-index:120;display:none;touch-action:none}
#sbar.on{display:block}
#sthumb{position:absolute;top:0;right:3px;width:6px;min-height:48px;border-radius:6px;background:var(--red);transition:width .15s,right .15s,background .15s;will-change:transform}
#sbar:hover #sthumb,#sbar.drag #sthumb{width:10px;right:2px;background:color-mix(in srgb,var(--red) 78%,#fff)}


/* About page, hovering the big logo: the bubble can be the photo instead of the "me" text bubble (Settings, Optional Features) */
.site-cursor .me2-img{display:none;width:104px;height:auto;transform-origin:0 100%;animation:me-pulse 2.4s ease-in-out infinite}
html.me-photo .site-cursor .me2 svg{display:none}
html.me-photo .site-cursor .me2-img{display:block}

@keyframes f-open{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

@media(max-width:720px){
  /* phones: the filter tabs fold under one button; opening it shows them two by two */
  .filters{flex-direction:column;align-items:center;gap:.55rem}
  .ftoggle{display:inline-flex;align-items:center;gap:.5rem;font:500 .95rem 'Heebo',sans-serif;color:var(--text);background:transparent;border:1px solid var(--line);border-radius:99px;padding:.45rem 1rem;cursor:pointer}
  .ftoggle > svg:first-child{width:1rem;height:1rem;flex:none}
  .ftoggle .fcur{font-style:normal;font-size:.8rem;background:var(--red);color:var(--on-accent,#fff);border-radius:99px;padding:.05rem .6rem}
  .ftoggle .fchev{width:.9rem;height:.9rem;flex:none;transition:transform .25s var(--ease)}
  .filters.open .ftoggle .fchev{transform:rotate(180deg)}
  .fpanel{display:none;width:100%;max-width:340px}
  .filters.open .fpanel{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;animation:f-open .22s var(--ease)}
  .fpanel .fbtn{width:100%;text-align:center;padding:.5rem .6rem;font-size:.9rem}
}

@media(max-width:350px){ /* very small phones: a smaller logo and language button so they never touch */
  .brand img{height:28px}
  #lang-toggle{padding:0 .55rem;font-size:.8rem}
}
