/* ALX VIBES — motion & polish layer */

/* ---------- Typography consistency ---------- */
.about__copy, .about__copy p, .work__desc, .pf-bio p, .pf-list li, .edu-school, .skills li, .langs li, .pf-contacts, .legal p, .legal li { line-height: 1.35; }
.pf-bio p + p { margin-top: .6em; }
.about__copy p + p { margin-top: .6em; }
.about__copy p + p.gap { margin-top: 1.1em; }

/* ---------- Tablet (768–1180): scale the 1920 grid up so nothing turns tiny ---------- */
@media (min-width: 768px) and (max-width: 1180px) {
  :root { --k: calc(100vw / 1280); --gutter: calc(var(--k) * 70); }
  .nav { margin-left: calc(var(--k) * 90); gap: calc(var(--k) * 80); }
  .hero__art { margin-right: calc(var(--k) * 60); }
  .cat-grid { gap: calc(var(--k) * 30) calc(var(--k) * 40); }
  .about { grid-template-columns: calc(var(--k) * 520) 1fr; }
  .about__face { margin-left: calc(var(--k) * 40); }
  .work { grid-template-columns: calc(var(--k) * 480) 1fr; }
  .work--flip { grid-template-columns: 1fr calc(var(--k) * 480); }
  .pf-grid { grid-template-columns: 1.4fr 1fr; }
  .pf-intro { grid-template-columns: calc(var(--k) * 440) 1fr; }
  .carousel__item { width: calc(var(--k) * 300); margin-right: calc(var(--k) * 60); }
}

/* ---------- Portfolio intro: photo squared with the text ---------- */
.pf-intro { align-items: stretch; }
.pf-photo { height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 20%; }
@media (max-width: 767px) { .pf-photo { height: auto; aspect-ratio: 376 / 495; } }

/* ---------- Reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); will-change: transform, opacity; }
.rv.is-in { opacity: 1; transform: none; }
.ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ln > span { display: block; transform: translateY(110%); transition: transform 1s cubic-bezier(.16,1,.3,1); }
.is-in .ln > span, .ln.is-in > span { transform: none; }
.ln:nth-child(2) > span { transition-delay: .1s } .ln:nth-child(3) > span { transition-delay: .2s }
.about__copy p { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.about.is-in .about__copy p { opacity: 1; transform: none; }
.about.is-in .about__copy p:nth-child(2) { transition-delay: .15s } .about.is-in .about__copy p:nth-child(3) { transition-delay: .3s }
.header__bar { position: relative; border-bottom-color: transparent; animation: hdr .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes hdr { from { opacity: 0; transform: translateY(-14px) } }
.header__bar::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--black); animation: ruleIn 1.2s .3s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes ruleIn { to { width: 100% } }

/* skills fill like a percentage */
.skills li { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 12px; }
.skills .bar { grid-column: 1 / -1; }
.skill__pct { font-weight: 600; font-variant-numeric: tabular-nums; }
.skills .bar span { width: 0; transition: width 1.4s cubic-bezier(.2,.7,.2,1) .15s; }
.skills li.is-in .bar span { width: var(--w, 0%); }

/* ---------- Premium hover for text and blocks ---------- */
.nav a, .cat-links a, .pf-contacts a, .legal-links a { position: relative; }
.nav a:hover { opacity: 1; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -.18em; height: 2px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s cubic-bezier(.65,0,.35,1); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.cat-links a { border-bottom-color: transparent; }
.cat-links a:hover { opacity: 1; }
.cat-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--black); transform-origin: left; transition: transform .45s cubic-bezier(.65,0,.35,1); }
.cat-links a:hover::after { transform: scaleX(0); transform-origin: right; }
.cat-links a::before { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--black); transform: scaleX(0); transform-origin: left; transition: transform .45s .1s cubic-bezier(.65,0,.35,1); }
.cat-links a:hover::before { transform: scaleX(1); }

/* paragraphs & list items: a hairline slides in from the side, the text steps aside */
.work__desc, .about__copy p, .pf-bio p, .pf-list li, .langs li, .edu-school, .legal p, .legal li { position: relative; transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .8s, color .3s; }
.work__desc::before, .about__copy p::before, .pf-bio p::before, .edu-school::before, .legal p::before {
  content: ""; position: absolute; left: -18px; top: .25em; bottom: .25em; width: 2px; background: var(--black); transform: scaleY(0); transform-origin: top; transition: transform .45s cubic-bezier(.65,0,.35,1);
}
.work__desc:hover, .about__copy p:hover, .pf-bio p:hover, .edu-school:hover, .legal p:hover { transform: translateX(10px); }
.work__desc:hover::before, .about__copy p:hover::before, .pf-bio p:hover::before, .edu-school:hover::before, .legal p:hover::before { transform: scaleY(1); }
.pf-list li:hover, .langs li:hover { transform: translateX(8px); }
.pf-list li .dot, .langs li .dot { transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.pf-list li:hover .dot, .langs li:hover .dot { transform: scale(1.45); }
/* headings: letters breathe apart, a line draws underneath */
.work__name, .pf-h, .about__title { transition: letter-spacing .5s cubic-bezier(.2,.7,.2,1); position: relative; width: fit-content; }
.work__name:hover, .pf-h:hover, .about__title:hover { letter-spacing: .04em; }
.work__name::after, .pf-h::after, .about__title::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%; background: var(--black); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.65,0,.35,1); }
.work__name:hover::after, .pf-h:hover::after, .about__title:hover::after { transform: scaleX(1); }
/* blocks */
.work, .pf-block, .plan { transition: background .4s; }
.work:hover { background: #fafafa; }
.work__media a { overflow: hidden; display: block; }
.work__img { transition: filter .6s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.work__media a:hover .work__img { transform: scale(1.035); }
.carousel__item img { transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .6s; }
.carousel__item:hover img { transform: scale(1.06); }
.skills li { transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .8s; }
.skills li:hover { transform: translateX(8px); }

/* category buttons: white curtain + rolling label */
.cat-btn { position: relative; overflow: hidden; isolation: isolate; transition: none; }
.cat-btn:hover { background: var(--black); color: var(--white); }
.cat-btn::before { content: ""; position: absolute; inset: 0; background: var(--white); transform: translateX(-101%); transition: transform .55s cubic-bezier(.76,0,.24,1); z-index: 0; }
.cat-btn:hover::before, .cat-btn:focus-visible::before { transform: none; }
.cat-btn .lbl { position: relative; z-index: 1; display: block; overflow: hidden; line-height: 1.2; color: var(--white); mix-blend-mode: difference; }
.cat-btn .lbl > span { display: block; transition: transform .55s cubic-bezier(.76,0,.24,1); }
.cat-btn .lbl > span + span { position: absolute; left: 0; top: 100%; width: 100%; }
.cat-btn:hover .lbl > span { transform: translateY(-100%); }
.cat-btn .arr { position: absolute; right: calc(var(--k) * 40); top: 50%; width: calc(var(--k) * 44); height: calc(var(--k) * 44); margin-top: calc(var(--k) * -22); z-index: 1; color: var(--white); mix-blend-mode: difference; opacity: 0; transform: translateX(-18px) rotate(-45deg); transition: opacity .4s .15s, transform .5s .15s cubic-bezier(.2,.7,.2,1); }
.cat-btn:hover .arr { opacity: 1; transform: none; }
.cat-btn .arr svg { width: 100%; height: 100%; }
@media (hover: none) { .cat-btn .arr { display: none; } }

/* round arrow buttons, back arrows */
.arrow-btn { position: relative; transition: transform .45s cubic-bezier(.2,.7,.2,1), background .3s; }
.arrow-btn::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--black); opacity: 0; transform: scale(.8); transition: opacity .35s, transform .45s cubic-bezier(.2,.7,.2,1); }
.arrow-btn:hover { transform: rotate(45deg) scale(1.08); }
.arrow-btn:hover::after { opacity: 1; transform: scale(1); }
.back { transition: transform .4s cubic-bezier(.2,.7,.2,1), opacity .2s; }
.back:hover { opacity: 1; transform: translateX(-6px); }
.project__back { cursor: pointer; border-radius: 50%; transition: background .25s, box-shadow .25s; }
.project__back:hover { background: rgba(0,0,0,.05); box-shadow: 0 0 0 2px var(--black); }

/* form */
.field { transition: background .3s, box-shadow .3s; }
.field:hover { background: #e4e4e4; }
.field:focus { box-shadow: inset 0 -3px 0 var(--black); }
.send { position: relative; overflow: hidden; transition: color .3s, letter-spacing .3s; }
.send::before { content: ""; position: absolute; inset: 0; background: var(--white); transform: scaleY(0); transform-origin: bottom; transition: transform .4s cubic-bezier(.76,0,.24,1); }
.send:hover { background: var(--field); letter-spacing: .12em; }
.send:hover::before { transform: none; }
.send span { position: relative; }
.socials a { transition: transform .4s cubic-bezier(.2,.7,.2,1), opacity .2s; }
.socials a:hover { opacity: 1; transform: translateY(-6px) rotate(-6deg); }

/* ---------- Characters ---------- */
.char { display: block; overflow: visible; cursor: pointer; }
.char * { transform-box: view-box; }
.char .part { transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.hero__girl { transform-origin: 50% 100%; animation: breathe 4.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translateY(-3px) scaleY(1.008) } }
.hero__girl .eye { animation: blink 5.5s infinite; }
.hero__girl .eye.l { transform-origin: 59.4px 97.6px; } .hero__girl .eye.r { transform-origin: 97.6px 97.6px; animation-delay: .05s; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1) } 95% { transform: scaleY(.08) } }
.hero__girl .head { transform-origin: 89px 138px; }
.hero__girl .earL { transform-origin: 23px 108px; } .hero__girl .earR { transform-origin: 134px 108px; }
.hero__girl .mouth { transform-origin: 79px 119px; }
.hero__girl.alive { animation: hop .8s cubic-bezier(.34,1.56,.64,1); }
@keyframes hop { 30% { transform: translateY(-16px) rotate(-3deg) } 60% { transform: translateY(0) scaleY(.96) rotate(1deg) } 80% { transform: rotate(-1deg) } }

.hero__girl.alive .earL { animation: swing .9s ease-in-out; } .hero__girl.alive .earR { animation: swing .9s .06s ease-in-out; }
@keyframes swing { 25% { transform: rotate(-16deg) } 60% { transform: rotate(10deg) } 85% { transform: rotate(-4deg) } }
.hero__girl.alive .mouth { transform: scale(1.35, 1.6); }
.hero__girl.alive .eye { animation: none; transform: scale(1.18); }

.hero__cat { transform-origin: 50% 100%; }
.hero__cat .pupil { transition: transform .15s ease-out; }


.hero__cat.alive { animation: catjump .85s cubic-bezier(.34,1.56,.64,1); }
@keyframes catjump { 35% { transform: translateY(-22px) rotate(-5deg) } 65% { transform: translateY(0) scaleY(.93) scaleX(1.05) } 82% { transform: rotate(2deg) } }


@keyframes earL { 40% { transform: rotate(-14deg) } } @keyframes earR { 40% { transform: rotate(14deg) } }



.about__face { transform-origin: 50% 100%; }
.about__face .head { transform-origin: 198px 200px; transition: transform .6s cubic-bezier(.34,1.56,.64,1); }
.about__face .clip { transform-origin: 300px 110px; }
.about__face .ringL { transform-origin: 32px 296px; } .about__face .ringR { transform-origin: 335px 297px; }
.about__face .eye { transform-origin: 130px 267px; animation: blink 6s 1s infinite; }
.about__face .lips { transform-origin: 192px 326px; }
.about__face.alive .head { transform: rotate(-6deg) translateX(-4px); }

@keyframes clipWig { 30% { transform: rotate(8deg) } 65% { transform: rotate(-5deg) } }
.about__face.alive .ringL { animation: swing 1s ease-in-out; } .about__face.alive .ringR { animation: swing 1s .08s ease-in-out; }
.about__face.alive .lips { animation: kiss .8s ease-in-out; }
@keyframes kiss { 30% { transform: scale(1.35) translateX(6px) } 60% { transform: scale(1.1) } }
.about__face.alive .eye { animation: none; transform: scaleY(.1); }
.about__face .eye2o { opacity: 0; transform: scale(.3); transform-origin: 231.8px 270px; transition: opacity .25s, transform .4s cubic-bezier(.34,1.56,.64,1); }
.about__face .eye2 { transition: opacity .2s; }
.about__face.alive .eye2o { opacity: 1; transform: none; }
.about__face.alive .eye2 { opacity: 0; }
.heart { position: absolute; width: 22px; height: 22px; pointer-events: none; animation: heartUp 1.3s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes heartUp { from { opacity: 1; transform: translate(0,0) scale(.4) rotate(-10deg) } 60% { opacity: 1 } to { opacity: 0; transform: translate(60px,-120px) scale(1.2) rotate(15deg) } }
.hero__art, .about { position: relative; }

/* mascot on inner pages: the cat sits in the contact block, right of the form fields, drawn in white on black */
.contact-form { position: relative; z-index: 5; }
.select.is-open { z-index: 6; }
.mascot { position: absolute; left: calc(100% + var(--k) * 70); top: calc(var(--k) * 6); width: calc(var(--k) * 170); pointer-events: none; }
.mascot svg { overflow: visible; }
.mascot svg { width: 100%; height: auto; pointer-events: auto; }
@media (max-width: 767px) { .mascot { display: none; } }

/* ---------- Intro ---------- */
#intro { position: fixed; inset: 0; z-index: 100; background: var(--white); display: grid; place-items: center; }
#intro .intro__logo { width: min(46vw, 320px); height: auto; overflow: visible; }
#intro .intro__logo path { opacity: 0; transform: translateY(14px); animation: introIn .7s cubic-bezier(.2,.7,.2,1) forwards; }
#intro .intro__logo #Vector, #intro .intro__logo #Vector_2 { stroke-dasharray: 160; stroke-dashoffset: 160; fill-opacity: 0; transform: none; opacity: 1; animation: introDraw 1s .05s cubic-bezier(.6,0,.2,1) forwards, introFill .5s 1s forwards; }
#intro .intro__logo #Vector_3 { animation-delay: .55s } #intro .intro__logo #Vector_4 { animation-delay: .65s }
#intro .intro__logo #Vector_5 { animation-delay: .8s } #intro .intro__logo #Vector_6 { animation-delay: .88s } #intro .intro__logo #Vector_7 { animation-delay: .96s } #intro .intro__logo #Vector_8 { animation-delay: 1.04s }
@keyframes introIn { to { opacity: 1; transform: none } }
@keyframes introDraw { to { stroke-dashoffset: 0 } }
@keyframes introFill { to { fill-opacity: 1 } }
#intro.is-out { animation: introOut .9s cubic-bezier(.4,0,.2,1) forwards; pointer-events: none; }
@keyframes introOut { to { opacity: 0; visibility: hidden } }
body.has-intro .header__bar, body.has-intro .header__bar::after { animation-play-state: paused; }
body.has-intro.intro-done .header__bar, body.has-intro.intro-done .header__bar::after { animation-play-state: running; }

/* ---------- Footer bottom bar ---------- */
.footer__bottom { margin-top: calc(var(--k) * 80); padding-top: calc(var(--k) * 28); border-top: 1px solid rgba(255,255,255,.25); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 32px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 10px calc(var(--k) * 34); }
.legal-links a { font-family: var(--body); font-weight: 500; font-size: max(14px, calc(var(--k) * 20)); letter-spacing: .02em; text-transform: uppercase; opacity: .85; }
.legal-links a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s cubic-bezier(.65,0,.35,1); }
.legal-links a:hover { opacity: 1; } .legal-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.copy { margin: 0; font-family: var(--body); font-size: max(13px, calc(var(--k) * 18)); opacity: .6; }
@media (max-width: 767px) { .footer__bottom { margin-top: 28px; padding-top: 16px; } .legal-links { gap: 8px 16px; } .legal-links a { font-size: 13px; } .copy { font-size: 12px; } }

/* ---------- Legal pages ---------- */
.legal { padding-block: calc(var(--k) * 40) calc(var(--k) * 90); max-width: calc(var(--k) * 1100); display: flex; flex-direction: column; }
.legal h1.cat-title { margin-bottom: calc(var(--k) * 24); }
.legal .updated { font-family: var(--body); font-size: max(14px, calc(var(--k) * 20)); opacity: .6; margin: 0 0 calc(var(--k) * 40); }
.legal h2 { font-family: var(--display); font-variation-settings: "YEAR" 1979; font-weight: 400; font-size: max(18px, calc(var(--k) * 28)); margin: calc(var(--k) * 44) 0 calc(var(--k) * 14); line-height: 1.2; }
.legal p, .legal li { font-family: var(--body); font-weight: 500; font-size: max(17px, calc(var(--k) * 26)); margin: 0 0 .7em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal a { text-decoration: underline; text-underline-offset: .15em; }
.legal section[lang="he"] { direction: rtl; text-align: right; margin-top: calc(var(--k) * 70); padding-top: calc(var(--k) * 40); border-top: 1px solid var(--black); }
.legal section[lang="he"] ul { padding-left: 0; padding-right: 1.2em; }
.legal section[lang="he"] p::before { left: auto; right: -18px; }
.legal section[lang="he"] p:hover { transform: translateX(-10px); }
.legal .lang-switch { display: flex; gap: 18px; font-family: var(--body); font-size: max(15px, calc(var(--k) * 20)); margin-bottom: calc(var(--k) * 30); }
.legal .lang-switch a { text-decoration: none; border-bottom: 1px solid var(--black); }
body.he .legal section[lang="he"] { order: 1; margin-top: 0; padding-top: 0; border-top: 0; }
body.he .legal section[lang="en"] { order: 2; margin-top: calc(var(--k) * 70); padding-top: calc(var(--k) * 40); border-top: 1px solid var(--black); direction: ltr; text-align: left; }
body.he .legal > .cat-title, body.he .legal > .updated, body.he .legal > .lang-switch { order: 0; }

/* ---------- Cookie note ---------- */
.cookie { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 30px); opacity: 0; z-index: 90; width: min(92vw, 720px); display: flex; align-items: center; gap: 18px; padding: 14px 16px 14px 22px; background: var(--black); color: var(--white); border-radius: 999px; box-shadow: 0 20px 50px rgba(0,0,0,.25); transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .5s; }
.cookie.is-in { transform: translate(-50%, 0); opacity: 1; }
.cookie p { margin: 0; flex: 1; font-family: var(--body); font-size: 17px; line-height: 1.25; }
.cookie a { text-decoration: underline; text-underline-offset: .15em; margin-left: 6px; }
.cookie button { flex: none; height: 40px; padding: 0 20px; border-radius: 999px; background: var(--white); color: var(--black); font: 600 16px var(--body); letter-spacing: .04em; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.cookie button:hover { transform: scale(1.06); }
@media (max-width: 767px) { .cookie { border-radius: 24px; flex-direction: column; align-items: stretch; padding: 16px 18px; bottom: 12px; } .cookie p { font-size: 15px; } }

/* ---------- Language toggle ---------- */
.lang-toggle { display: inline-grid; place-items: center; width: max(34px, calc(var(--k) * 46)); height: max(34px, calc(var(--k) * 46)); border-radius: 50%; border: 1px solid var(--black); font-family: "Rubik", var(--body); font-weight: 700; font-size: max(13px, calc(var(--k) * 18)); letter-spacing: .04em; transition: background .3s, color .3s, transform .4s cubic-bezier(.34,1.56,.64,1); }
.lang-toggle:hover { background: var(--black); color: var(--white); transform: rotate(-8deg) scale(1.08); }
@media (max-width: 767px) { .lang-toggle { width: 30px; height: 30px; font-size: 12px; } }

/* ---------- Hebrew / RTL ---------- */
body.he .keep-en:not(.cat-links a) { font-family: var(--display) !important; font-variation-settings: "YEAR" 1979 !important; font-weight: 400 !important; }
@media (min-width: 768px) { .nav { align-items: center; } }
body.he { --body: "Rubik", "Heebo", Arial, sans-serif; }
body.he .display, body.he .nav a, body.he .field, body.he .select__list li, body.he .send, body.he .form-done, body.he .legal h2, body.he .cat-btn { font-family: "Rubik", "Heebo", Arial, sans-serif; font-weight: 900; font-variation-settings: normal; }
body.he .nav a, body.he .field, body.he .send, body.he .select__list li { font-weight: 700; }
body.he .hero__title { font-size: calc(var(--k) * 88); line-height: 1.05; }
body.he .legal-links a { text-transform: none; }
[dir="rtl"] .nav { margin-left: 0; margin-right: calc(var(--k) * 220); }
[dir="rtl"] .hero__art { margin-right: 0; margin-left: calc(var(--k) * 177); }
[dir="rtl"] .about__face { margin-left: 0; margin-right: calc(var(--k) * 106); }
[dir="rtl"] .back svg { transform: scaleX(-1); }
[dir="rtl"] .back:hover { transform: translateX(6px); }
[dir="rtl"] .cat-btn::before { transform: translateX(101%); }
[dir="rtl"] .cat-btn:hover::before { transform: none; }
[dir="rtl"] .cat-btn .arr { right: auto; left: calc(var(--k) * 40); transform: translateX(18px) rotate(135deg); }
[dir="rtl"] .cat-btn:hover .arr { transform: rotate(180deg); }
[dir="rtl"] .work__desc::before, [dir="rtl"] .about__copy p::before, [dir="rtl"] .pf-bio p::before, [dir="rtl"] .edu-school::before { left: auto; right: -18px; }
[dir="rtl"] .work__desc:hover, [dir="rtl"] .about__copy p:hover, [dir="rtl"] .pf-bio p:hover, [dir="rtl"] .edu-school:hover, [dir="rtl"] .pf-list li:hover, [dir="rtl"] .langs li:hover, [dir="rtl"] .skills li:hover { transform: translateX(-10px); }
[dir="rtl"] .nav a::after, [dir="rtl"] .work__name::after, [dir="rtl"] .pf-h::after, [dir="rtl"] .about__title::after { transform-origin: right; }
[dir="rtl"] .nav a:hover::after { transform-origin: left; }
[dir="rtl"] .work__media { border-right: 0; border-left: 1px solid var(--black); }
[dir="rtl"] .work--flip .work__media { border-left: 0; border-right: 1px solid var(--black); }
[dir="rtl"] .pf-col-l { border-right: 0; border-left: 1px solid var(--black); }
[dir="rtl"] .pf-col-r { padding-left: 0; padding-right: calc(var(--k) * 34); }
[dir="rtl"] .select__button { text-align: right; }
[dir="rtl"] .mascot { left: auto; right: calc(100% + var(--k) * 70); }
[dir="rtl"] .mascot svg { transform: scaleX(-1); }
[dir="rtl"] .cookie a { margin-left: 0; margin-right: 6px; }
@media (max-width: 767px) { [dir="rtl"] .nav { margin-right: 0; align-items: flex-start; } [dir="rtl"] .hero__art { margin-left: calc(var(--m) * 14); } [dir="rtl"] .about__face { margin-right: 0; } [dir="rtl"] .pf-col-l { border-left: 0; } [dir="rtl"] .pf-col-r { padding-right: 0; } }

@media (prefers-reduced-motion: reduce) {
  .rv, .ln > span, .about__copy p { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__girl, .hero__girl .eye, .hero__cat .eye, .about__face .eye, .header__bar, .header__bar::after { animation: none !important; width: 100%; }
  .skills .bar span { transition: none; width: var(--w) !important; }
}
[dir="rtl"] .carousel { direction: ltr; }
html, body { overflow-x: clip; }
/* phone: hero fits, characters stay whole */
@media (max-width: 767px) {
  .hero { gap: 10px; align-items: flex-end; }
  .hero__title { font-size: min(calc(var(--m) * 46), 11.5vw); flex: 1 1 auto; }
  .hero__art { flex: none; margin-right: 0; gap: 6px; }
  .hero__girl { width: calc(var(--m) * 52); } .hero__cat { width: calc(var(--m) * 46); }
  .more .section-title { text-align: center; }
  .nav { gap: 8px; }
}
@media (max-width: 767px) {
  .hero__title { min-width: 0; flex: 1 1 0; font-size: min(calc(var(--m) * 42), 10.5vw); }
  .hero__art { flex: 0 0 auto; max-width: 42%; justify-content: flex-end; }
  .hero__girl { width: 48%; } .hero__cat { width: 42%; }
}
@media (max-width: 767px) { .hero__title { font-size: min(calc(var(--m) * 38), 8.8vw); } .hero__art { max-width: 38%; } }
@media (max-width: 767px) { .hero__title { font-size: min(calc(var(--m) * 34), 7.4vw); } .hero__art { max-width: 36%; } .hero .ln { overflow: visible; } }
/* portfolio: contacts live in the left column, split by a line */
.pf-block--contacts { border-top: 1px solid var(--black); }
.pf-contacts--in { border-top: 0; padding-block: 0; flex-direction: column; gap: 14px; }
.pf-contacts--in a { position: relative; width: fit-content; }
.pf-contacts--in a + a { padding-top: 14px; border-top: 1px solid var(--black); width: 100%; }
.pf-contacts--in a:hover { text-decoration: none; transform: translateX(8px); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.skills li { display: block; }

/* ---------- Category header: title and the other categories stay on one line ---------- */
@media (min-width: 768px) {
  .cat-head { flex-wrap: nowrap; }
  .cat-head__left { min-width: 0; }
  .cat-title { font-size: min(max(28px, calc(var(--k) * 64)), 4.2vw); white-space: nowrap; }
  .cat-links { flex-wrap: nowrap; flex-shrink: 0; white-space: nowrap; }
  .cat-links a { font-size: min(max(20px, calc(var(--k) * 48)), 3.1vw); }
}

/* ---------- Portfolio lines ---------- */
.pf-grid { border-bottom: 1px solid var(--black); }
.pf-col-r { padding-left: 0; }
.pf-col-r .pf-block { padding-left: calc(var(--k) * 34); }
[dir="rtl"] .pf-col-r { padding-right: 0; }
[dir="rtl"] .pf-col-r .pf-block { padding-left: 0; padding-right: calc(var(--k) * 34); }
.pf-contacts--in a, .pf-contacts--in a:hover { transform: none; transition: padding .45s cubic-bezier(.2,.7,.2,1); }
.pf-contacts--in a:hover { padding-inline-start: 10px; }
@media (max-width: 767px) { .pf-col-r .pf-block, [dir="rtl"] .pf-col-r .pf-block { padding-inline: 0; } }

/* ---------- Hebrew: the hero keeps its English title, font and layout ---------- */
body.he .hero { direction: ltr; }
body.he .hero__title { font-family: "Climate Crisis", "Arial Black", Impact, sans-serif; font-variation-settings: "YEAR" 1979; font-weight: 400; font-size: calc(var(--k) * 96); line-height: 1.2; }
@media (max-width: 767px) { body.he .hero__title { font-size: min(calc(var(--m) * 34), 7.4vw); } }
body.he .hero__art { margin-left: 0; margin-right: calc(var(--k) * 177); }
@media (max-width: 767px) { body.he .hero__art { margin-right: 0; } }

/* ---------- Hebrew sizes: Rubik looks larger than the condensed Alumni Sans at the same size ---------- */
body.he .work__desc { font-size: max(15px, calc(var(--k) * 26)); }
body.he .about__copy { font-size: max(14px, calc(var(--k) * 20)); }
body.he .pf-bio, body.he .pf-list li, body.he .skills li, body.he .langs li, body.he .edu-school, body.he .pf-contacts { font-size: max(15px, calc(var(--k) * 28)); }
body.he .pt-he { font-size: .82em; }
@media (min-width: 768px) { body.he .cat-links a { font-size: min(max(16px, calc(var(--k) * 30)), 2.2vw); } }
@media (max-width: 767px) {
  body.he .work__desc { font-size: calc(var(--m) * 14.5); }
  body.he .about__copy { font-size: calc(var(--m) * 13.5); }
  body.he .pf-bio, body.he .pf-list li, body.he .skills li, body.he .langs li, body.he .edu-school, body.he .pf-contacts { font-size: calc(var(--m) * 15); }
  body.he .cat-links a { font-size: calc(var(--m) * 18); }
}

/* Hebrew project pages: the arrow moves to the right edge and points right, the project name sits to its left */
body.he .pj-title { transform: translateX(var(--dx)); }
body.he .pj-arrow { transform-box: fill-box; transform-origin: center; transform: translateX(var(--dx)) scaleX(-1); }
body.he .project__back { left: calc((100 - var(--l)) * 1cqw - var(--w) * 1cqw) !important; }
body.he .project__back--draw svg { transform: scaleX(-1); }
body.he .pj-band--text .ptext { margin-left: calc(100% - var(--ml) - var(--pw)) !important; }
.ptext p, .ptext li { text-wrap: pretty; }
.ptext h3 { text-wrap: balance; }
/* Branding: the Krunch lion gets air above and below instead of touching the rules */
.work--krunch .work__img { max-height: calc(var(--k) * 410); width: auto; max-width: 88%; }
@media (max-width: 767px) { .work--krunch .work__img { max-height: none; width: 74%; max-width: 74%; padding-block: calc(var(--m) * 14); } }

/* ---------- Portfolio (Oct 16, evening) ---------- */
/* skill bars: rounded like in Figma */
.bar, .skills .bar { border-radius: 999px; }
.bar span { border-radius: 999px; }
/* experience lines keep clear of the vertical rule, in both directions */
.pf-list li { padding-right: 0; padding-inline-end: calc(var(--k) * 90); }
[dir="rtl"] .pf-list li:hover { transform: translateX(-8px); }
/* contacts: mail and phone sit exactly in the middle of their rows, the last row ends on the bottom rule */
@media (min-width: 768px) {
  .pf-col-l { display: flex; flex-direction: column; }
  .pf-col-l > .pf-block:nth-child(2) { flex: 1 0 auto; }
}
.pf-block--contacts { padding-block: 0; }
.pf-contacts--in { gap: 0; }
.pf-contacts--in a, .pf-contacts--in a + a { width: 100%; padding-block: calc(var(--k) * 34); align-items: center; }
.pf-contacts--in a + a { padding-top: calc(var(--k) * 34); border-top: 1px solid var(--black); }
@media (max-width: 767px) { .pf-contacts--in a, .pf-contacts--in a + a { padding-block: calc(var(--m) * 16); } }
/* Hebrew: category names stay English, exactly as in the English version */
body.he .cat-links a.keep-en { font-family: "Alumni Sans", sans-serif !important; font-weight: 400; font-size: max(20px, calc(var(--k) * 48)); }
@media (min-width: 768px) { body.he .cat-links a.keep-en { font-size: min(max(20px, calc(var(--k) * 48)), 3.1vw); } }
@media (max-width: 767px) { body.he .cat-links a.keep-en { font-size: calc(var(--m) * 22); } }
body.he .cat-btn.keep-en { font-size: max(16px, calc(var(--k) * 40)); }
@media (max-width: 767px) { body.he .cat-btn.keep-en { font-size: calc(var(--m) * 20); } }
/* links inside project texts ("here", Google Drive) are red so they never melt into the bold hover text */
.ptext a, .ptext a:visited { color: #E3001B; text-decoration-color: currentColor; }

/* ---------- Phone (Oct 16, evening) ---------- */
@media (max-width: 767px) {
  /* header: logo · language circle · bigger, easier-to-tap menu that grows inward from the right edge */
  .header__bar { justify-content: space-between; gap: 0; }
  .header__bar > .lang-toggle { flex: none; width: 34px; height: 34px; font-size: 12px; }
  .nav { gap: 2px; }
  .nav a { font-size: calc(var(--m) * 15); padding: calc(var(--m) * 5) 0 calc(var(--m) * 5) calc(var(--m) * 14); }
  .nav a::after { bottom: calc(var(--m) * 2); }
  body.he .nav a { padding: calc(var(--m) * 5) calc(var(--m) * 14) calc(var(--m) * 5) 0; }
  /* contact form: no odd indent, bigger and easier to read */
  .field { height: calc(var(--m) * 44); font-size: calc(var(--m) * 15); padding-inline: calc(var(--m) * 14); }
  .select__button { padding-inline: calc(var(--m) * 14); }
  .select__button img { width: calc(var(--m) * 13); }
  .select__list li { font-size: calc(var(--m) * 14); padding: calc(var(--m) * 10) calc(var(--m) * 14); }
  .send { width: calc(var(--m) * 120); height: calc(var(--m) * 42); font-size: calc(var(--m) * 15); margin-top: calc(var(--m) * 4); }
  .footer .section-title { font-size: calc(var(--m) * 20); }
  .contact-form { gap: calc(var(--m) * 12); }
}
/* touch screens: the paragraph that is "lit" gets the same treatment as a hovered one on a computer */
.ptext p, .ptext li { position: relative; }
.ptext p.tf, .ptext li.tf { -webkit-text-stroke-width: .022em; transform: scale(1.018); }
.ptext p::before { content: ""; position: absolute; left: -10px; top: .2em; bottom: .2em; width: 2px; background: currentColor; transform: scaleY(0); transform-origin: top; transition: transform .45s cubic-bezier(.65,0,.35,1); }
.pt-he p::before { left: auto; right: -10px; }
.ptext p.tf::before { transform: scaleY(1); }
.work__desc.tf, .about__copy p.tf, .pf-bio p.tf, .edu-school.tf, .legal p.tf { transform: translateX(10px); }
.work__desc.tf::before, .about__copy p.tf::before, .pf-bio p.tf::before, .edu-school.tf::before, .legal p.tf::before { transform: scaleY(1); }
.pf-list li.tf, .langs li.tf { transform: translateX(8px); }
.pf-list li.tf .dot, .langs li.tf .dot { transform: scale(1.45); }
[dir="rtl"] .work__desc.tf, [dir="rtl"] .about__copy p.tf, [dir="rtl"] .pf-bio p.tf, [dir="rtl"] .edu-school.tf, [dir="rtl"] .pf-list li.tf, [dir="rtl"] .langs li.tf { transform: translateX(-10px); }
@media (max-width: 767px) { .ptext p::before { left: -8px; } .pt-he p::before { right: -8px; left: auto; } }
@media (max-width: 767px) { [dir="rtl"] .nav { align-items: flex-end; } }
@media (max-width: 767px) { .about__title { margin-inline: auto; } }
/* Hebrew contact form: Rubik looks much smaller than the wide English display font at the same size — make it read the same */
body.he .field, body.he .select__label, body.he .send { font-size: max(16px, calc(var(--k) * 30)); }
body.he .select__list li { font-size: max(15px, calc(var(--k) * 26)); }
@media (max-width: 767px) {
  body.he .field, body.he .select__label, body.he .send { font-size: calc(var(--m) * 19); }
  body.he .select__list li { font-size: calc(var(--m) * 17); }
}
/* category rows: no forced tall rows — a work with a short text and a smaller picture doesn't leave an empty band */
@media (min-width: 768px) {
  .work__media { min-height: 0; padding-block: calc(var(--k) * 40); }
}

/* ---------- Portfolio, Hebrew (Oct 26) ---------- */
body.he .pf-name { font-size: max(36px, calc(var(--k) * 86)); line-height: 1.02; }
@media (max-width: 767px) { body.he .pf-name { font-size: calc(var(--m) * 38); } }
/* skill names are English words: same font and size as the English version */
body.he .skills li { font-family: "Alumni Sans", sans-serif; font-size: max(17px, calc(var(--k) * 36)); font-weight: 400; }
@media (max-width: 767px) { body.he .skills li { font-size: calc(var(--m) * 18); } }
/* left column: the spare height is shared — experience gets a little more air below, education sits in the middle of its block,
   contact rows are taller — instead of one big hole under the school name */
@media (min-width: 768px) {
  .pf-col-l > .pf-block:nth-child(1) { flex: 1 0 auto; }
  .pf-col-l > .pf-block:nth-child(2) { flex: 1.4 0 auto; display: flex; flex-direction: column; justify-content: center; }
  .pf-contacts--in a, .pf-contacts--in a + a { padding-block: calc(var(--k) * 46); }
}

/* ---------- Contact card (computer) ---------- */
.cc { position: fixed; z-index: 120; width: max-content; max-width: min(92vw, 380px); background: var(--white); color: var(--black); border: 2px solid var(--black); border-radius: 18px; padding: 18px 20px 18px; box-shadow: 0 24px 60px rgba(0,0,0,.28); opacity: 0; transform: translateY(8px) scale(.97); transition: opacity .25s, transform .35s cubic-bezier(.34,1.56,.64,1); font-family: var(--body); }
.cc.is-in { opacity: 1; transform: none; }
.cc__x { position: absolute; top: 8px; inset-inline-end: 10px; width: 30px; height: 30px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--black); }
.cc__x:hover { background: #eee; }
.cc__label { margin: 0 0 2px; font-family: var(--display); font-variation-settings: "YEAR" 1979; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
body.he .cc__label { font-family: "Rubik", sans-serif; font-weight: 700; }
.cc__val { margin: 0 34px 14px 0; font-size: 26px; line-height: 1.2; white-space: nowrap; }
body.he .cc__val { margin: 0 0 14px 34px; font-family: "Rubik", sans-serif; font-size: 22px; }
.cc__row { display: flex; gap: 8px; flex-wrap: wrap; }
.cc__btn { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--black); color: var(--white); border: 2px solid var(--black); font: 600 17px/1 var(--body); letter-spacing: .03em; transition: background .2s, color .2s, transform .3s cubic-bezier(.34,1.56,.64,1); }
.cc__btn:hover { transform: translateY(-2px); }
.cc__btn--ghost { background: var(--white); color: var(--black); }
.cc__btn--ghost:hover { background: var(--black); color: var(--white); }

/* ---------- Accessibility menu ---------- */
.a11y-btn { position: fixed; z-index: 110; left: 22px; bottom: 22px; width: 54px; height: 54px; border-radius: 50%; background: var(--black); color: var(--white); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--white), 0 10px 30px rgba(0,0,0,.25); transition: transform .35s cubic-bezier(.34,1.56,.64,1), bottom .4s; }
.a11y-btn svg { width: 30px; height: 30px; }
.a11y-btn:hover, .a11y-btn.is-open { transform: scale(1.08) rotate(-6deg); }
.a11y-btn:focus-visible { outline: 3px solid #1a73e8; outline-offset: 3px; }
body:has(.cookie.is-in) .a11y-btn { bottom: 100px; }
.a11y { position: fixed; z-index: 111; left: 22px; bottom: 90px; width: min(340px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow: auto; background: var(--white); color: var(--black); border: 2px solid var(--black); border-radius: 20px; padding: 16px; box-shadow: 0 24px 70px rgba(0,0,0,.3); font-family: var(--body); }
.a11y[hidden] { display: none; }
body:has(.cookie.is-in) .a11y { bottom: 168px; }
.a11y__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.a11y__title { margin: 0; font-family: var(--display); font-variation-settings: "YEAR" 1979; font-size: 20px; }
.a11y[lang="he"] .a11y__title, .a11y[lang="he"] button, .a11y[lang="he"] a, .a11y[lang="he"] span { font-family: "Rubik", sans-serif; }
.a11y[lang="he"] .a11y__title { font-weight: 900; }
.a11y__x { width: 32px; height: 32px; border-radius: 50%; font-size: 24px; line-height: 1; }
.a11y__x:hover { background: #eee; }
.a11y__zoom { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid var(--black); border-radius: 14px; margin-bottom: 10px; font-size: 18px; }
.a11y__zoom > div { display: flex; align-items: center; gap: 10px; }
.a11y__z { width: 40px; height: 34px; border-radius: 999px; background: var(--black); color: var(--white); font: 700 16px/1 var(--body); }
.a11y__zoomval { min-width: 46px; text-align: center; font-variant-numeric: tabular-nums; }
.a11y__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y__opt { min-height: 52px; padding: 8px 10px; border: 1px solid var(--black); border-radius: 14px; font: 500 17px/1.15 var(--body); text-align: center; transition: background .2s, color .2s; }
.a11y__opt:hover { background: #f0f0f0; }
.a11y__opt[aria-pressed="true"] { background: var(--black); color: var(--white); }
.a11y__z:focus-visible, .a11y__opt:focus-visible, .a11y__reset:focus-visible, .a11y__foot a:focus-visible, .a11y__x:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
.a11y__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 17px; }
.a11y__reset { text-decoration: underline; text-underline-offset: .2em; }
.a11y__foot a { text-decoration: underline; text-underline-offset: .2em; font-weight: 600; }
@media (max-width: 767px) {
  .a11y-btn { left: 12px; bottom: 12px; width: 46px; height: 46px; }
  .a11y-btn svg { width: 26px; height: 26px; }
  .a11y { left: 12px; bottom: 70px; }
  body:has(.cookie.is-in) .a11y-btn { bottom: 150px; }
}
/* the settings themselves (the menu itself is never affected) */
html.a11y-zoomed body > *:not(.a11y):not(.a11y-btn):not(.cc):not(.cookie) { zoom: var(--a11y-zoom, 1); }
html.a11y-contrast body > *:not(.a11y):not(.a11y-btn) { filter: contrast(1.45); }
html.a11y-gray body > *:not(.a11y):not(.a11y-btn) { filter: grayscale(1); }
html.a11y-contrast.a11y-gray body > *:not(.a11y):not(.a11y-btn) { filter: grayscale(1) contrast(1.45); }
html.a11y-links a:not(.a11y-btn):not(.cc__btn) { outline: 2px solid #1a73e8 !important; outline-offset: 2px; text-decoration: underline !important; background-color: #fff6a8 !important; color: #000 !important; }
html.a11y-font body, html.a11y-font body * { font-family: Arial, "Rubik", sans-serif !important; letter-spacing: .01em !important; }
/* stop animations: every animation jumps straight to its finished state (so nothing is left hidden half-way, e.g. the menu) */
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; animation-play-state: running !important; transition-duration: .001s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
html.a11y-still .carousel__track { animation: none !important; }
html.a11y-still .carousel { overflow-x: auto; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 10-7 1 4 8-3 1-4-8-5 5z' fill='%23000' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E") 4 2, auto !important; }
/* phone: captions-links under the two mockups at the end of Letter & More */
.pj-band { position: relative; }
.pj-mlink { position: absolute; z-index: 3; transform: translateX(-50%); white-space: nowrap; font-family: var(--body); font-weight: 700; font-size: calc(14 / 393 * 100cqw); line-height: 1.2; text-decoration: underline; text-underline-offset: .2em; color: var(--black); padding: 4px 6px; }
body.he .pj-mlink { font-family: "Rubik", sans-serif; font-size: calc(12.5 / 393 * 100cqw); }

/* ---------- Phone (Oct 26) ---------- */
@media (max-width: 767px) {
  .a11y-btn { bottom: calc(34px + env(safe-area-inset-bottom, 0px)); }
  .a11y { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  /* portfolio: skill bars run the whole width */
  .skills li { grid-template-columns: 1fr auto; }
  .skills .bar, .bar { width: 100%; }
  /* illustration page: the David drawing is as big as the other covers */
  .work--david .david { width: 86%; max-height: none; margin-block: calc(var(--m) * 10); }
}
/* touch screens: the "lit" paragraph is clearly visible */
@media (hover: none) {
  .ptext p.tf, .ptext li.tf { -webkit-text-stroke-width: .05em; transform: scale(1.035); }
  .ptext p::before { width: 3px; }
  .work__desc.tf, .about__copy p.tf, .pf-bio p.tf, .edu-school.tf, .legal p.tf, .pf-list li.tf, .langs li.tf { -webkit-text-stroke: .04em currentColor; }
}
/* phone: contact sheet from the bottom */
.cc-shade { position: fixed; inset: 0; z-index: 119; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s; }
.cc-shade.is-in { opacity: 1; }
.cc.cc--sheet { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: 100%; max-width: none; border-radius: 22px 22px 0 0; border-width: 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.cc.cc--sheet.is-in { transform: none; }
.cc--sheet .cc__val { font-size: 30px; margin-bottom: 18px; }
.cc--sheet .cc__row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.cc--sheet .cc__btn { height: 52px; justify-content: center; font-size: 19px; }
.cc--sheet .cc__x { top: 14px; inset-inline-end: 14px; width: 36px; height: 36px; font-size: 26px; }
/* parts borrowed from the desktop layout (Buffer phone) stay inside the page margins */
.pj-band--desk { margin-inline: 7.12%; margin-block: calc(2.5 * 1cqw); }
/* portfolio: a clear gap between the dot and the text (languages, contacts) */
.langs li, .pf-contacts a { gap: max(12px, calc(var(--k) * 16)); }
.pf-list li { column-gap: 0; }
@media (max-width: 767px) {
  .langs li, .pf-contacts--in a { gap: calc(var(--m) * 12); }
  .langs .dot, .pf-contacts .dot { flex: none; }
}

/* mockup credit (required by mockupfree.co): vertical on the right of the contact block (computer), under SEND (phone) */
.footer { position: relative; }
.credit { position: absolute; right: calc(var(--k) * 26); top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; font-family: "Alumni Sans", sans-serif !important; font-weight: 400; font-size: max(16px, calc(var(--k) * 36)); line-height: 1; color: var(--white); letter-spacing: .01em; opacity: .9; transition: opacity .2s; }
.credit:hover { opacity: 1; text-decoration: underline; }
[dir="rtl"] .credit { right: auto; left: calc(var(--k) * 26); }
@media (max-width: 767px) {
  /* phone: vertical too, at the right edge, centred on the row of contact icons */
  .credit { top: var(--credit-b, 70%); transform: translateY(-100%); right: calc(var(--m) * 10); font-size: calc(var(--m) * 15); }
  [dir="rtl"] .credit { left: auto; right: calc(var(--m) * 10); }
}
/* the contact-block cat sits on the side opposite the mockupfree credit: left (English), right (Hebrew) */
.mascot { left: auto; right: calc(100% + var(--k) * 70); }
[dir="rtl"] .mascot { right: auto; left: calc(100% + var(--k) * 70); }
[dir="rtl"] .mascot svg { transform: none; }
