/* Shared motion and interaction layer for every page. */
html{scroll-behavior:smooth;scroll-padding-top:130px}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}}

/* ---------- loader ---------- */
#loader{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background-color:#F5F5F5;transition:opacity .7s ease,visibility .7s ease}
#loader.done{opacity:0;visibility:hidden}
#loader img{width:min(300px,56vw);height:auto;display:block;filter:url(#goo-load)}
html.is-loading{overflow:hidden}
html.pre-ld body::after{content:"";position:fixed;inset:0;z-index:9998;background:#F5F5F5}

/* ---------- sticky top: availability bar + header ---------- */
.avail{position:sticky;top:0;z-index:61}
header.top{position:sticky;top:var(--avail-h,37px);z-index:60;background-color:#F5F5F5}
header.top.scrolled{box-shadow:0 1px 0 rgba(48,41,41,0.12)}
.logo-link img{transition:transform .3s ease}
.logo-link.goo img{filter:url(#goo-hover)}

/* orange dots that breathe */
.pulse{animation:pulse 1.8s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.15}}

/* ---------- buttons: black on hover ---------- */
a[style*="background: #6A55D8"],button[style*="background: #6A55D8"],a[style*="background: #FFFFFF; color: #6A55D8"],a[style*="border: 1px solid #302929; padding: 12px 22px"]{transition:background-color .25s ease,color .25s ease,box-shadow .25s ease}
a[style*="background: #6A55D8"]:hover,button[style*="background: #6A55D8"]:hover,a[style*="background: #FFFFFF; color: #6A55D8"]:hover,a[style*="border: 1px solid #302929; padding: 12px 22px"]:hover{background:#0f0c0c !important;color:#FFFFFF !important;border-color:#0f0c0c !important}
.ink a[style*="background: #6A55D8"]:hover,article[style*="background: #6A55D8"] a:hover{box-shadow:0 0 0 1px rgba(245,245,245,0.45)}

/* ---------- footer links: plain, underline on hover ---------- */
footer a:not([style*="background"]){text-decoration:none !important;text-underline-offset:5px}
footer a:not([style*="background"]):hover{text-decoration:underline !important;color:#F5F5F5 !important}

/* ---------- home hero ---------- */
.hero{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;min-height:calc(100vh - var(--chrome-h,110px));min-height:calc(100svh - var(--chrome-h,110px));padding:72px 40px}
.hero .doodles{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.doodles path{stroke-dasharray:1;stroke-dashoffset:1}
.doodles .d-wine{transform:translate(-20px,-50px)}
.play .doodles .ds{animation:draw var(--t,1.4s) cubic-bezier(.55,.1,.3,1) var(--d,0s) forwards}
@keyframes draw{to{stroke-dashoffset:0}}
.words .w{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.08em;margin-bottom:-.08em}
.words .w>span{display:inline-block;transform:translateY(105%);opacity:0;transition:transform .9s cubic-bezier(.2,.75,.2,1),opacity .9s ease;transition-delay:calc(var(--i) * 70ms)}
.play .words .w>span{transform:none;opacity:1}
.hero .hero-cta{opacity:0;transform:translateY(14px);transition:opacity .8s ease 1s,transform .8s cubic-bezier(.2,.75,.2,1) 1s,background-color .25s ease,color .25s ease}
.play .hero .hero-cta{opacity:1;transform:none}
@media (max-width:720px){.hero{padding:56px 20px}
  .doodles g{transform-box:fill-box;transform-origin:center}
  .doodles .d-wine{transform:translate(370px,-90px) scale(.55)}
  .doodles .d-eye{transform:translate(-385px,-40px) scale(.6)}
  .doodles .d-sprig{transform:translate(400px,0) scale(.6)}
  .doodles .d-daisy{transform:translate(-420px,0) scale(.6)}
  .doodles .d-st1{transform:translate(260px,520px) scale(.6)}
  .doodles .d-st2,.doodles .d-st3,.doodles .d-st4{display:none}}

/* ---------- logo marquee (right to left) ---------- */
.marquee{overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.marquee-track{display:flex;align-items:center;gap:88px;width:max-content;animation:marquee 38s linear infinite}
.marquee-track>*{flex:0 0 auto}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ---------- services strip on home: one by one ---------- */
.svc-strip .seq{opacity:0;transform:translateY(10px);transition:opacity .5s ease,transform .5s ease;transition-delay:calc(var(--i) * 110ms)}
.svc-strip.in .seq{opacity:1;transform:none}
.svc-strip a{text-decoration:none;background-image:linear-gradient(currentColor,currentColor);background-size:0 1px;background-repeat:no-repeat;background-position:0 100%;transition:background-size .3s ease}
.svc-strip a:hover{background-size:100% 1px;color:#302929}

/* ---------- reveal on scroll ---------- */
.rv{opacity:0;transform:translateY(26px);transition:opacity .9s ease,transform .9s cubic-bezier(.2,.75,.2,1);transition-delay:var(--rd,0s)}
.rv.in{opacity:1;transform:none}

/* ---------- marker highlight, left to right ---------- */
mark.mk{background:linear-gradient(#E4DDFC,#E4DDFC) no-repeat 0 0 / 0% 100% !important;transition:background-size 1.3s cubic-bezier(.6,0,.25,1) .35s}
mark.mk.in{background-size:100% 100% !important}

/* ---------- accordions ---------- */
details>summary{-webkit-tap-highlight-color:transparent}
details.faq summary{list-style:none}
details.faq summary::-webkit-details-marker{display:none}
details.faq summary span{display:inline-block;transition:transform .3s ease}
details.faq[open] summary span{transform:rotate(45deg)}

/* ---------- contact form states ---------- */
form .form-msg{font-family:'Chivo Mono',monospace;font-size:12px;letter-spacing:.08em;text-transform:uppercase}
form.sending button{opacity:.6;pointer-events:none}
.thanks{display:flex;flex-direction:column;gap:16px;justify-content:center;min-height:360px}

@media (prefers-reduced-motion: reduce){
  .rv,.words .w>span,.hero .hero-cta,.svc-strip .seq{opacity:1 !important;transform:none !important;transition:none !important}
  .doodles path{stroke-dashoffset:0 !important;animation:none !important}
  mark.mk{background-size:100% 100% !important;transition:none}
  .marquee-track,.pulse{animation:none}
}
/* ---------- About: smaller dots in the "not designing" list ---------- */
section[aria-labelledby="off"] li>span[aria-hidden]{font-size:8px;line-height:1}


/* ---------- "What I believe": words fill in as you scroll ---------- */
.scrub .sw{color:#c9c2c2;transition:color .35s ease}
.scrub .sw.on{color:#302929}
@media (prefers-reduced-motion: reduce){.scrub .sw{color:#302929}}
@media (max-width:720px){.believe{padding-top:88px !important;padding-bottom:80px !important}}

/* pkg-equal: package cards share one height, buttons line up at the bottom */
section[aria-labelledby="ways"] article>a:last-child{margin-top:auto !important}
section[aria-labelledby="ways"] article>div[style*="margin-top: auto"]{margin-top:28px !important}



/* ---------- mobile menu (one set of rules: same layout open and closed, only height and fade animate) ---------- */
.burger{display:none;background:none;border:0;width:44px;height:44px;padding:11px 10px;margin-left:6px;cursor:pointer;-webkit-tap-highlight-color:transparent;outline-offset:2px}
.burger span{display:block;height:1.5px;background:#302929;margin:6px 0;transition:transform .35s cubic-bezier(.4,0,.2,1),opacity .25s ease}
.menu-cta{display:none !important}
@media (max-width:720px){
  html body header.top > div{row-gap:0 !important}
  html body header.top > div > div:last-child > a{display:none !important}
  .burger{display:inline-block}
  html body header.top nav[aria-label="Main"]{display:flex !important;flex-direction:column !important;flex-wrap:nowrap !important;align-items:flex-start !important;justify-content:flex-start !important;gap:20px !important;width:100% !important;order:3;max-height:0;overflow:hidden;opacity:0;visibility:hidden;padding:0 !important;font-size:22px !important;letter-spacing:.06em !important;transition:max-height .5s cubic-bezier(.4,0,.2,1),padding .5s cubic-bezier(.4,0,.2,1),opacity .25s ease,visibility 0s linear .5s}
  html body header.top.menu-open nav[aria-label="Main"]{max-height:480px;opacity:1;visibility:visible;padding:28px 0 26px !important;transition:max-height .5s cubic-bezier(.4,0,.2,1),padding .5s cubic-bezier(.4,0,.2,1),opacity .35s ease .08s,visibility 0s}
  html body header.top nav[aria-label="Main"] .menu-cta{display:inline-block !important;margin-top:8px;text-decoration:none !important;background:#6A55D8;color:#FFFFFF !important;padding:13px 24px;border-radius:999px;font-size:14px;letter-spacing:.08em}
  html body header.top.menu-open .burger span:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
  html body header.top.menu-open .burger span:nth-child(2){opacity:0}
  html body header.top.menu-open .burger span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}
}

/* ---------- project pages motion ---------- */
.proj .ph-media{clip-path:inset(100% 0 0 0);transform:scale(1.06);transition:clip-path 1.3s cubic-bezier(.7,0,.2,1) .15s,transform 1.8s cubic-bezier(.2,.75,.2,1) .15s}
.play.proj .ph-media{clip-path:inset(0 0 0 0);transform:none}
.proj .pv{clip-path:inset(100% 0 0 0);transition:clip-path 1.1s cubic-bezier(.7,0,.2,1) var(--rd,0s),opacity .9s ease var(--rd,0s),transform .9s cubic-bezier(.2,.75,.2,1) var(--rd,0s)}
.proj .pv.in{clip-path:inset(0 0 0 0)}
.proj .sw-in{opacity:0;transform:translateY(30px);transition:opacity .7s ease var(--rd,0s),transform .8s cubic-bezier(.2,.75,.2,1) var(--rd,0s)}
.proj .sw-in.in{opacity:1;transform:none}
.proj .next-thumb{transition:transform .7s cubic-bezier(.2,.75,.2,1)}
.proj a:hover .next-thumb{transform:scale(1.04) rotate(-1deg)}
@media (prefers-reduced-motion: reduce){.proj .ph-media,.proj .pv,.proj .sw-in{clip-path:none !important;opacity:1 !important;transform:none !important;transition:none !important}}

/* ---------- hero doodles: Hadar's own drawings, drawn in then gently alive ---------- */
.words{position:relative}
.uline{position:absolute;pointer-events:none;overflow:visible;z-index:-1}
.dd,.dd .df{transform-box:fill-box;transform-origin:center}
.play .dd-sparkles .df{animation:twinkle 2.8s ease-in-out 3.2s infinite}
@keyframes twinkle{0%,100%{transform:scale(1) rotate(0);opacity:1}50%{transform:scale(.84) rotate(10deg);opacity:.7}}
.play .dd-plane .df{animation:floaty 5s ease-in-out 3.4s infinite}
@keyframes floaty{0%,100%{transform:translate(0,0)}50%{transform:translate(-8px,-10px)}}
.play .dd-heart .df{animation:beat 3.4s ease-in-out 3.6s infinite}
@keyframes beat{0%,100%{transform:scale(1)}8%{transform:scale(1.14)}16%{transform:scale(1)}}
.play .dd-burst .df{animation:flick 2.6s ease-in-out 3.2s infinite}
@keyframes flick{0%,100%{opacity:1}50%{opacity:.35}}
.play .dd-rainbow .df{animation:sway 4.5s ease-in-out 3.5s infinite}
@keyframes sway{0%,100%{transform:rotate(0)}50%{transform:rotate(-6deg)}}
@media (prefers-reduced-motion: reduce){.dd .df{animation:none !important}}
@media (max-width:720px){
  .hero .doodles{opacity:1}
  .doodles .dd-swirl{transform:translate(-28px,-155px) scale(0.45)}
  .doodles .dd-heart{transform:translate(-524px,3px) scale(0.7)}
  .doodles .dd-burst{transform:translate(-382px,4px) scale(0.7)}
  .doodles .dd-rainbow{transform:translate(-603px,-92px) scale(0.7)}
  .doodles .dd-arrow{transform:translate(-952px,41px) scale(0.7)}
  .doodles .dd-rings{transform:translate(-1348px,-69px) scale(0.7)}
  .doodles .dd-sparkles{transform:translate(-1786px,-35px) scale(0.7)}
  .doodles .dd-notebook{transform:translate(-593px,550px) scale(0.65)}
  .doodles .dd-pen{transform:translate(-286px,506px) scale(0.65)}
  .doodles .dd-plane{transform:translate(-1638px,544px) scale(0.6)}
  .doodles .dd-jar{transform:translate(-1836px,588px) scale(0.65)}
}

/* hero render stability: keep doodles and headline on their own layers */
.hero .doodles{will-change:transform;transform:translateZ(0);backface-visibility:hidden}
.hero .words{transform:translateZ(0);isolation:isolate}
.hero.drawn .doodles .ds{animation:none}


/* ---------- hero v3: faster, flowing draw; bigger on desktop and mobile ---------- */
.play .doodles .ds{animation-timing-function:linear}
.play .dd-sparkles .df{animation-delay:2.1s}
.play .dd-plane .df{animation-delay:2.3s}
.play .dd-heart .df{animation-delay:2.4s}
.play .dd-burst .df{animation-delay:2.1s}
.play .dd-rainbow .df{animation-delay:2.3s}
@media (min-width:721px){
  .hero{min-height:max(calc(100vh - var(--chrome-h,110px)),calc(42.3vw + 40px));min-height:max(calc(100svh - var(--chrome-h,110px)),calc(42.3vw + 40px))}
  .hero > svg.doodles:not(.uline){inset:auto;left:50%;top:50%;width:106%;height:auto;aspect-ratio:3049/1215;transform:translate(-50%,-50%) translateZ(0)}
}
@media (max-width:720px){
  .doodles .dd-swirl{transform:translate(-28px,-155px) scale(0.56)}
  .doodles .dd-heart{transform:translate(-524px,3px) scale(0.88)}
  .doodles .dd-burst{transform:translate(-382px,4px) scale(0.88)}
  .doodles .dd-rainbow{transform:translate(-603px,-92px) scale(0.88)}
  .doodles .dd-arrow{transform:translate(-952px,41px) scale(0.88)}
  .doodles .dd-rings{transform:translate(-1348px,-69px) scale(0.88)}
  .doodles .dd-sparkles{transform:translate(-1786px,-35px) scale(0.88)}
  .doodles .dd-notebook{transform:translate(-593px,550px) scale(0.82)}
  .doodles .dd-pen{transform:translate(-286px,506px) scale(0.82)}
  .doodles .dd-plane{transform:translate(-1638px,544px) scale(0.75)}
  .doodles .dd-jar{transform:translate(-1836px,588px) scale(0.82)}
}

/* ---------- doodles that show up again while scrolling ---------- */
.sdoodle{position:absolute;pointer-events:none;overflow:visible;height:auto}
.sdoodle .ds{stroke-dasharray:1;stroke-dashoffset:1}
.sdoodle.in .ds{animation:draw var(--t,.6s) linear var(--d,0s) forwards}
#work h2,#believe,#love{position:relative}
.sd-trail{width:clamp(92px,9vw,140px);left:calc(100% + 14px);top:.15em}
#believe .sd-sparkles{width:20px;left:calc(100% + 12px);top:-14px}
#love .sd-heart{width:22px;left:calc(100% + 10px);top:-12px}
section[aria-labelledby="what"]{position:relative}
.sd-swirl{width:clamp(70px,7vw,120px);left:calc(50% - 50vw - 18px);top:40px}
@media (max-width:1100px){.sd-swirl{display:none}}
@media (max-width:720px){.sd-trail{width:78px;left:calc(100% + 8px)}}
.sdoodle.done.sd-sparkles .df{animation:twinkle 2.8s ease-in-out infinite}
.sdoodle.done.sd-heart .df{animation:beat 3.4s ease-in-out infinite}
.sdoodle .df{transform-box:fill-box;transform-origin:center}
@media (prefers-reduced-motion: reduce){.sdoodle .ds{stroke-dashoffset:0;animation:none}.sdoodle .df{animation:none !important}}

/* ---------- doodle tweaks v2 ---------- */
.play .dd-sparkles .df,.sdoodle.done.sd-sparkles .df{animation:none}
#believe .sd-sparkles{width:30px;left:calc(100% + 14px);top:-24px}
#love .sd-heart{width:36px;left:calc(100% + 12px);top:-22px}
@media (max-width:720px){#love .sd-heart{width:27px;top:-16px}}
.bl{position:relative;display:inline-block}
.bl .sd-trail{width:clamp(90px,8vw,124px);left:auto;right:calc(100% + 10px);top:auto;bottom:.3em}
@media (max-width:720px){.bl .sd-trail{width:64px;right:calc(100% + 6px)}}
#work h2 .sd-arrow{width:clamp(54px,5vw,82px);left:calc(100% + 18px);top:50%;transform:translateY(-50%)}
#what{position:relative}
#what .sd-pen{width:clamp(34px,3vw,50px);left:calc(100% + 16px);top:50%;transform:translateY(-55%)}
@media (max-width:720px){.dk-card{margin-top:56px}.dk-card img{aspect-ratio:4 / 5 !important;object-position:50% 50% !important}}
#believe{display:inline-block}

/* ---------- round 3: calmer motion, doodles lower on desktop ---------- */
.play .dd-burst .df{animation:none}
.sd-pen .df{stroke:#302929;stroke-width:3;stroke-linejoin:round}
#what .sd-pen{width:clamp(50px,4.4vw,70px)}
.hb{display:none}
@media (max-width:720px){.hb{display:block}.doodles .dd-burst{display:none}}
@media (min-width:721px){
  .hero{overflow-x:clip;overflow-y:visible}
  .hero > svg.doodles:not(.uline){overflow:visible}
  .doodles .dd-pen{transform:translateY(230px)}
  .doodles .dd-notebook{transform:translateY(200px)}
  .doodles .dd-jar{transform:translateY(240px)}
  .doodles .dd-plane{transform:translateY(210px)}
}
.proj .ph-media{clip-path:none;opacity:0;transform:translateY(12px);transition:opacity 1s ease .1s,transform 1.2s cubic-bezier(.2,.75,.2,1) .1s}
.play.proj .ph-media{clip-path:none;opacity:1;transform:none}
.proj .pv{clip-path:none;opacity:0;transform:translateY(16px);transition:opacity .9s ease var(--rd,0s),transform 1s cubic-bezier(.2,.75,.2,1) var(--rd,0s)}
.proj .pv.in{clip-path:none;opacity:1;transform:none}
.proj .sw-in{transform:translateY(10px)}
.proj a:hover .next-thumb{transform:scale(1.02)}

/* ---------- round 4 ---------- */
@media (min-width:721px){
  .hero > svg.doodles:not(.uline){aspect-ratio:3049 / 1360;transform:translate(-50%,-44.67%) translateZ(0);overflow:hidden}
}
@media (max-width:720px){
  .bl .sd-trail{width:94px;right:calc(100% + 6px)}
  img[style*="min-width: 260px"]{flex:1 1 100% !important}
}
#work{scroll-margin-top:calc(var(--chrome-h,110px) + 8px)}
@media (max-width:720px){.bl .sd-trail{width:94px;left:-30px;right:auto;bottom:calc(100% + 2px)}}

/* ---------- round 5: hero contained again (no flicker), mobile starts empty ---------- */
@media (min-width:721px){
  .hero{overflow:hidden;min-height:max(calc(100vh - var(--chrome-h,110px)),calc(47.3vw + 16px));min-height:max(calc(100svh - var(--chrome-h,110px)),calc(47.3vw + 16px));padding-bottom:calc(72px + 5.04vw)}
  .hero > svg.doodles:not(.uline){top:calc(50% - 2.52vw);overflow:hidden}
}
@media (max-width:720px){
  .hero:not(.placed) svg.doodles{visibility:hidden}
  .hero:not(.placed) .doodles .ds{animation-play-state:paused}
}
@media (min-width:721px){.play .dd-plane .df,.play .dd-heart .df,.play .dd-rainbow .df{animation:none}}

/* ---------- process icons (Hadar's drawings, drawn in on scroll) ---------- */
.step-ic{height:84px;display:flex;align-items:flex-end}
.step-ic svg{height:100%;width:auto;overflow:visible}
.step-ic .ds{stroke-dasharray:1;stroke-dashoffset:1}
.step-ic.in .ds{animation:draw var(--t,.3s) linear var(--d,0s) forwards}
@media (max-width:720px){.step-ic{height:68px}}
@media (prefers-reduced-motion: reduce){.step-ic .ds{stroke-dashoffset:0;animation:none}}

/* ---------- project pages: alter row, mobile hero, gallery width, next project ---------- */
.alt-row2{display:grid;grid-template-columns:9fr 9fr 8fr;gap:20px;align-items:start}
.alt-row2 > div{display:flex;flex-direction:column;gap:20px}
@media (max-width:720px){
  .alt-row2{grid-template-columns:1fr}
  .proj img.ph-media{aspect-ratio:4 / 5 !important;object-fit:cover}
  .proj section > div[style*="padding: 0 40px 120px"]{padding-left:0 !important;padding-right:0 !important}
  .proj a:has(.next-thumb) > div{flex-direction:column;align-items:stretch;gap:24px;padding:48px 20px 72px}
  .proj .next-thumb{width:100% !important;aspect-ratio:4 / 3 !important}
}
@media (max-width:720px){
  .proj section > div[style*="padding: 0 40px 120px"]{margin-left:-20px !important;margin-right:-20px !important}
  .proj a[href^="/work-"] > div{flex-direction:column !important;align-items:stretch !important;gap:24px !important;padding:48px 0 72px !important}
}

/* process icons: one row height, each drawing sized to match */
.step-ic{height:120px}
.step-ic svg{height:84px}
.step-ic[data-src*="7025f19f"] svg{height:102px}
.step-ic[data-src*="26dbd70d"] svg{height:120px}
@media (max-width:720px){.step-ic{height:96px}.step-ic svg{height:68px}.step-ic[data-src*="7025f19f"] svg{height:82px}.step-ic[data-src*="26dbd70d"] svg{height:96px}}
.legal h2{margin:48px 0 14px;font-family:'Chivo Mono',monospace;font-weight:500;font-size:12px;letter-spacing:.08em;text-transform:uppercase}
.legal p{margin:0 0 16px}
.legal strong{font-weight:500}
.legal a{text-decoration:underline;text-underline-offset:3px}

/* ---------- Hebrew / RTL ---------- */
.lang-sw{text-decoration:none;border:1px solid rgba(48,41,41,.35);border-radius:999px;padding:2px 10px;margin-top:-3px}
.lang-sw:hover{background:#302929;color:#F5F5F5}
html[lang=he] body{font-family:'Chivo','Noto Sans Hebrew',sans-serif}
html[lang=he] [style*="font-family: 'Chivo Mono'"],html[lang=he] nav,html[lang=he] .menu-cta{font-family:'Chivo Mono','Noto Sans Hebrew',monospace !important;letter-spacing:.03em !important}
html[dir=rtl] #work h2 .sd-arrow{left:auto;right:calc(100% + 18px);transform:translateY(-50%) scaleX(-1)}
html[dir=rtl] #what .sd-pen{left:auto;right:calc(100% + 16px);transform:translateY(-55%) scaleX(-1)}
html[dir=rtl] #believe .sd-sparkles{left:auto;right:calc(100% + 14px)}
html[dir=rtl] #love .sd-heart{left:auto;right:calc(100% + 12px)}
html[dir=rtl] .bl .sd-trail{right:auto;left:calc(100% + 10px);transform:scaleX(-1)}
@media (max-width:720px){html[dir=rtl] .bl .sd-trail{left:auto;right:-30px;transform:scaleX(-1)}}
html[dir=rtl] .hero .uline,html[dir=rtl] .hero .hb{right:auto;bottom:auto}
html[dir=rtl] a{unicode-bidi:plaintext}
html[dir=rtl] input[type=email]{direction:ltr;text-align:right}

/* ---------- round 2: language toggle, RTL fixes, larger small Hebrew ---------- */
.lang-sw{display:inline-flex !important;direction:ltr;align-items:center;gap:2px;padding:2px !important;border:1px solid rgba(48,41,41,.35);border-radius:999px;text-decoration:none !important;margin-top:-4px;font-family:'Chivo Mono',monospace !important;letter-spacing:.06em !important}
.lang-sw:hover{background:none;color:inherit}
.lang-sw span{display:block;padding:4px 9px;border-radius:999px;font-size:11px;line-height:1;transition:background-color .2s ease,color .2s ease}
.lang-sw span.on{background:#302929;color:#F5F5F5}
.lang-sw:hover span:not(.on){background:rgba(48,41,41,.1)}
@media (max-width:720px){.lang-sw span{font-size:14px;padding:6px 12px}}
html[dir=rtl] header > div > a:first-child{display:flex !important;justify-content:flex-start}
html[dir=rtl] mark.mk{background-position:100% 0 !important;-webkit-box-decoration-break:clone;box-decoration-break:clone}
html[lang=he] main [style*="font-size: 11px"],html[lang=he] section [style*="font-size: 11px"]{font-size:13px !important}
html[lang=he] section [style*="font-size: 12px"]{font-size:14px !important}
html[lang=he] header nav,html[lang=he] header [style*="font-size: 13px"],html[lang=he] section [style*="font-size: 13px"]{font-size:15px !important}
html[lang=he] .avail{font-size:13px !important}

/* ---------- round 3: sliding language switch, bigger brand logos, RTL marquee ---------- */
.lang-sw{position:relative;isolation:isolate}
.lang-sw::before{content:"";position:absolute;z-index:-1;top:2px;bottom:2px;left:2px;width:calc(50% - 2px);border-radius:999px;background:#302929;transition:transform .32s cubic-bezier(.65,0,.25,1)}
.lang-sw.he::before{transform:translateX(100%)}
.lang-sw span{background:none !important;color:#302929}
.lang-sw:not(.he) span:first-child,.lang-sw.he span:last-child{color:#F5F5F5}
.lang-sw span{transition:color .32s ease}
.marquee,.marquee-track{direction:ltr}
section[aria-label="Brands I've worked with"]{padding-top:40px !important;padding-bottom:104px !important;border-bottom:1px solid rgba(48,41,41,.18)}
section[aria-label="Brands I've worked with"] [role="img"]{height:92px !important}
section[aria-label="Brands I've worked with"] img{height:92px !important;width:auto}
@media (max-width:720px){section[aria-label="Brands I've worked with"] [role="img"],section[aria-label="Brands I've worked with"] img{height:64px !important}section[aria-label="Brands I've worked with"]{padding-bottom:72px !important}}
section[aria-label="Brands I've worked with"] [role="img"],section[aria-label="Brands I've worked with"] img{max-width:210px !important}
@media (max-width:720px){section[aria-label="Brands I've worked with"] [role="img"],section[aria-label="Brands I've worked with"] img{max-width:150px !important}}

html[lang=he] *{font-family:'Chivo','Noto Sans Hebrew',sans-serif !important}

@media (min-width:721px){html[lang=he] .doodles .dd-burst{transform:translate(-90px,15px)}html[lang=he] .hero svg.uline{margin-top:10px}}

/* ---------- contact on mobile: intro, then form, then the ways to reach me ---------- */
@media (max-width:720px){
  section#top:has(> form#form){flex-direction:column !important;flex-wrap:nowrap !important;gap:24px !important;align-items:stretch !important}
  section#top:has(> form#form) > div:first-child{display:contents !important}
  section#top:has(> form#form) > div:first-child > span{align-self:flex-start}
  section#top > form#form{order:1;flex:none !important;margin-top:12px}
  section#top:has(> form#form) > div:first-child > dl{order:2;margin-top:32px !important}
}

/* ---------- packages: opening one card no longer stretches the others ---------- */
div:has(> article > details){align-items:start !important}
@media (min-width:721px){div:has(> article > details) > article > p{min-height:6.4em}}

/* ---------- brand strip: new Wine BaKerem lockup, calmer rhea ---------- */
section[aria-label="Brands I've worked with"] [aria-label="rhea"]{height:54px !important}
section[aria-label="Brands I've worked with"] [aria-label="Wine BaKerem"]{height:62px !important;max-width:none !important}
@media (max-width:720px){
  section[aria-label="Brands I've worked with"] [aria-label="rhea"]{height:38px !important}
  section[aria-label="Brands I've worked with"] [aria-label="Wine BaKerem"]{height:44px !important}
}

/* highlights: background reaches past the words without pushing lines in (Safari) */
mark{padding:0 !important;box-shadow:5px 0 0 #E4DDFC,-5px 0 0 #E4DDFC}
mark.mk{box-shadow:0 0 0 transparent,0 0 0 transparent;transition:background-size 1.3s cubic-bezier(.6,0,.25,1) .35s,box-shadow .3s ease 1.5s}
mark.mk.in{box-shadow:5px 0 0 #E4DDFC,-5px 0 0 #E4DDFC}

/* ---------- On rotation: Spotify player (desktop card, mobile bar) ---------- */
.rot{position:fixed;right:24px;bottom:24px;z-index:55;width:344px;direction:ltr;padding:6px;border:1.5px solid #6A55D8;border-radius:18px;background:rgba(245,245,245,.92);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 12px 32px rgba(48,41,41,.12);opacity:0;transform:translateY(16px);pointer-events:none;transition:opacity .45s ease,transform .55s cubic-bezier(.2,.8,.2,1)}
.rot.show{opacity:1;transform:none;pointer-events:auto}
.rot-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#6A55D8;color:#F5F5F5;border-radius:12px;padding:0 6px 0 16px;height:46px}
.rot-open{flex:1;align-self:stretch;display:flex;align-items:center;gap:10px;background:none;border:0;color:inherit;padding:0;cursor:pointer;font-family:'Chivo Mono',monospace !important;font-size:12px;letter-spacing:.1em;text-transform:uppercase;text-align:left}
.rot-eq{display:inline-flex;align-items:flex-end;gap:2px;height:11px}
.rot-eq i{display:block;width:2px;height:100%;background:#E4DDFC;border-radius:1px;transform-origin:bottom;animation:roteq 1.1s ease-in-out infinite}
.rot-eq i:nth-child(2){animation-delay:-.4s}.rot-eq i:nth-child(3){animation-delay:-.75s}
@keyframes roteq{0%,100%{transform:scaleY(.35)}50%{transform:scaleY(1)}}
.rot-x{width:34px;height:34px;display:grid;place-items:center;background:none;border:0;border-radius:999px;color:#F5F5F5;cursor:pointer;transition:background .2s}
.rot-x:hover{background:rgba(255,255,255,.14)}
.rot-x svg{width:14px;height:14px}
.rot-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows .45s cubic-bezier(.4,0,.2,1)}
.rot.open .rot-body{grid-template-rows:1fr}
.rot-body > div{overflow:hidden}
.rot-body iframe{display:block;width:100%;height:80px;border:0;border-radius:12px;margin-top:6px;background:#282828}
@media (prefers-reduced-motion: reduce){.rot,.rot-body{transition:none}.rot-eq i{animation:none}}
@media (max-width:720px){
  .rot{left:16px;right:16px;bottom:16px;width:auto;padding:5px;border-radius:16px}
  .rot-bar{height:44px}
}
html[lang=he] .rot .rot-open,html[lang=he] .rot .rot-open span{font-family:'Chivo Mono',monospace !important}

section[aria-label="Brands I've worked with"] [aria-label="Agro Negev"]{height:62px !important}
section[aria-label="Brands I've worked with"] [aria-label="Emerix AI"]{height:44px !important}
@media (max-width:720px){section[aria-label="Brands I've worked with"] [aria-label="Agro Negev"]{height:44px !important}section[aria-label="Brands I've worked with"] [aria-label="Emerix AI"]{height:31px !important}}

/* rhea: same visual size as the other wordmarks, letters centred on the strip's line */
section[aria-label="Brands I've worked with"] [aria-label="rhea"]{height:46px !important;transform:translateY(-12%)}
@media (max-width:720px){section[aria-label="Brands I've worked with"] [aria-label="rhea"]{height:30px !important}}

/* ---------- mobile type scale (compared with Studio Uzi): fuller body text, 12px floor for mono, stronger section titles ---------- */
@media (max-width:720px){
  [style*="font-size: 16px"][style*="font-weight: 300"]{font-size:17px !important;font-weight:400 !important}
  [style*="font-size: 17px"][style*="font-weight: 300"]{font-size:18px !important;font-weight:400 !important}
  [style*="font-size: 18px"][style*="font-weight: 300"],[style*="font-size: 19px"][style*="font-weight: 300"],[style*="clamp(18px, 1.6vw"][style*="font-weight: 300"],[style*="clamp(19px, 1.6vw"][style*="font-weight: 300"]{font-weight:400 !important}
  .legal p,.legal li{font-size:17px;font-weight:400}
  html:not([lang=he]) [style*="font-size: 11px"]{font-size:12px !important}
  h2[style*="clamp(32px, 3.4vw"],h2[style*="clamp(34px, 4vw"]{font-size:37px !important;line-height:1.08 !important}
  h2[style*="clamp(30px, 3vw"],h2[style*="clamp(30px, 3.2vw"]{font-size:34px !important;line-height:1.1 !important}
}

/* ---------- desktop type scale: fuller body text, 12px floor for mono, bigger card titles ---------- */
@media (min-width:721px){
  [style*="font-size: 16px"][style*="font-weight: 300"]{font-size:17px !important;font-weight:400 !important}
  [style*="font-size: 17px"][style*="font-weight: 300"],[style*="font-size: 18px"][style*="font-weight: 300"]{font-size:18px !important;font-weight:400 !important}
  [style*="font-size: 19px"][style*="font-weight: 300"],[style*="clamp(18px, 1.6vw"][style*="font-weight: 300"],[style*="clamp(19px, 1.6vw"][style*="font-weight: 300"]{font-weight:400 !important}
  .legal p,.legal li{font-weight:400}
  html:not([lang=he]) [style*="font-size: 11px"]{font-size:12px !important}
  html:not([lang=he]) .lang-sw span{font-size:12px !important}
  h3[style*="font-size: 30px"]{font-size:35px !important}
  h3[style*="font-size: 32px"]{font-size:36px !important}
}
section[aria-label="Brands I've worked with"] [aria-label="Sienna by Gali"]{height:80px !important}
@media (max-width:720px){section[aria-label="Brands I've worked with"] [aria-label="Sienna by Gali"]{height:56px !important}}
