@font-face { font-family: "Karantina"; font-weight: 700; font-display: swap; src: url(fonts/karantina-hebrew-700-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Karantina"; font-weight: 700; font-display: swap; src: url(fonts/karantina-latin-700-v2.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Rubik"; font-weight: 400; font-display: swap; src: url(fonts/rubik-hebrew-400-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Rubik"; font-weight: 400; font-display: swap; src: url(fonts/rubik-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Rubik"; font-weight: 700; font-display: swap; src: url(fonts/rubik-hebrew-700-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Rubik"; font-weight: 700; font-display: swap; src: url(fonts/rubik-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Rubik"; font-weight: 400; font-display: swap; src: url(/fonts/rubik-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; font-weight: 700; font-display: swap; src: url(/fonts/rubik-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; font-weight: 400; font-display: swap; src: url(/fonts/rubik-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Rubik"; font-weight: 700; font-display: swap; src: url(/fonts/rubik-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* ============================================================
   Tokens. One accent (mint) + one supporting hue (violet) on a
   neutral violet-tinted base. Light is the default; dark comes from
   the OS setting or the toggle (html[data-theme]).
   ============================================================ */
:root {
  /* light */
  --bg: #F6F5FB;
  --bg-glow: #E7E1FF;
  --surface: #FFFFFF;
  --surface-2: #EEEBF8;
  --line: #DFDAF0;
  --line-strong: #C3BBE3;
  --text: #15112B;
  --muted: #5A5478;
  --sky: #38BDF8;             /* touch light, glows and live states (sky blue) */
  --accent: #2EE09A;          /* button fill, always with --on-accent text */
  --accent-text: #087A4E;     /* accent used as text on --bg / --surface */
  --on-accent: #0B2A1D;
  --violet: #6B4EF0;
  --violet-soft: #D9D0FF;
  --shadow: 0 1px 2px rgba(21, 17, 43, .06), 0 12px 32px -12px rgba(21, 17, 43, .18);

  /* type */
  --display: "Karantina", "Rubik", system-ui, sans-serif;
  --body: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --fs-hero: clamp(88px, 17vw, 184px);
  --fs-h2: clamp(56px, 8vw, 96px);
  --fs-h3: 22px;
  --fs-lead: clamp(18px, 1.7vw, 21px);
  --fs-body: 17px;
  --fs-small: 14px;

  /* shape + space (4px grid) */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;
  --pad: clamp(20px, 5vw, 64px);
  --max: 1200px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0D0A1C;
  --bg-glow: #2A1C66;
  --surface: #161230;
  --surface-2: #201A42;
  --line: #2B2453;
  --line-strong: #43397A;
  --text: #F3F1FF;
  --muted: #ABA4CF;
  --accent: #3DF0A6;
  --accent-text: #4FF2B0;
  --on-accent: #0B2A1D;
  --violet: #8E74FF;
  --violet-soft: #33296B;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0A1C; --bg-glow: #2A1C66; --surface: #161230; --surface-2: #201A42; --line: #2B2453; --line-strong: #43397A;
    --text: #F3F1FF; --muted: #ABA4CF; --accent: #3DF0A6; --accent-text: #4FF2B0; --on-accent: #0B2A1D;
    --violet: #8E74FF; --violet-soft: #33296B; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; font-family: var(--body); font-size: var(--fs-body); line-height: 1.65; color: var(--text);
  background: radial-gradient(1100px 620px at 70% -8%, var(--bg-glow), transparent 70%) no-repeat, var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; z-index: 10; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- illustration palette (inline SVG) ---------- */
.ill { display: block; width: 100%; height: auto; }
.ill { direction: ltr; }
.ill text { font-family: var(--body); unicode-bidi: plaintext; }
.f-surf { fill: var(--surface); }
.f-surf2 { fill: var(--surface-2); }
.f-bg { fill: var(--bg); }
.f-line { fill: var(--line); }
.f-strong { fill: var(--line-strong); }
.f-acc { fill: var(--accent); }
.f-vio { fill: var(--violet); }
.f-vsoft { fill: var(--violet-soft); }
.f-text { fill: var(--text); }
.f-muted { fill: var(--muted); }
.f-on { fill: var(--on-accent); }
.s-line { stroke: var(--line-strong); fill: none; stroke-width: 1.5; }
.s-acc { stroke: var(--accent); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.s-vio { stroke: var(--violet); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s-dash { stroke: var(--line-strong); fill: none; stroke-width: 1.5; stroke-dasharray: 4 6; }
.card-edge { stroke: var(--line); stroke-width: 1.5; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: var(--s-5); min-height: 68px; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; }
.mark .lv { width: 32px; height: 32px; flex: none; display: block; }
.lv-l { fill: var(--text); }
.lv-a { fill: var(--violet); }
.lv-b { fill: #4A30C9; fill: color-mix(in srgb, var(--violet) 72%, #0D0A1C); }
.top nav ul { display: flex; gap: var(--s-5); list-style: none; margin: 0; margin-inline-start: auto; padding: 0; font-size: 15px; }
.top nav ul a { text-decoration: none; color: var(--muted); padding: 8px 0; }
.top nav ul a:hover { color: var(--text); }
.theme { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.theme svg { width: 20px; height: 20px; }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }
@media (max-width: 760px) { .top nav ul { display: none; } .top .lang { margin-inline-start: auto; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: var(--r-md); font: 700 16px/1.2 var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 86%, white); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--violet); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- shared section bits ---------- */
section { padding-block: clamp(56px, 8vw, 96px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 var(--s-3); font-size: var(--fs-small); font-weight: 700; color: var(--accent-text); letter-spacing: .02em; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.h2 { font: 700 var(--fs-h2)/.92 var(--display); margin: 0 0 var(--s-4); letter-spacing: .005em; }
.sub { font-size: var(--fs-lead); color: var(--muted); max-width: 36em; margin: 0 0 var(--s-7); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* ---------- hero ---------- */
.hero { overflow-x: clip; padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-small); color: var(--muted); }
.chip b { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.name { font: 700 var(--fs-hero)/.84 var(--display); margin: var(--s-5) 0 var(--s-3); letter-spacing: .005em; }
.name em { font-style: normal; color: var(--violet); }
.role { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; margin: 0 0 var(--s-3); }
.lede { font-size: var(--fs-lead); color: var(--muted); max-width: 30em; margin: 0 0 var(--s-6); }
.ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero-art { position: relative; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } }

/* ---------- services ---------- */
.svc-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.svc { padding: var(--s-3); display: flex; flex-direction: column; }
.svc .ill-box { background: var(--surface-2); border-radius: calc(var(--r-lg) - 8px); overflow: hidden; }
.svc h3 { font-size: var(--fs-h3); margin: var(--s-5) var(--s-3) var(--s-2); line-height: 1.25; }
.svc p { margin: 0 var(--s-3) var(--s-3); color: var(--muted); }
@media (max-width: 880px) { .svc-list { grid-template-columns: 1fr; } }

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); counter-reset: step; position: relative; }
.step { position: relative; padding: var(--s-5); }
.step .ill { width: 72px; margin-bottom: var(--s-4); }
.step .n { position: absolute; top: var(--s-5); inset-inline-end: var(--s-5); font: 700 40px/1 var(--display); color: var(--line-strong); }
.step h3 { font-size: 19px; margin: 0 0 var(--s-1); }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- work ---------- */
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.proj { padding: var(--s-3); }
.proj .ill-box { background: var(--surface-2); border-radius: calc(var(--r-lg) - 8px); overflow: hidden; }
.proj p { margin: var(--s-4) var(--s-3) var(--s-2); font: 700 34px/1 var(--display); }
.proj p a { color: inherit; text-decoration: none; }
.proj p a:hover { text-decoration: underline; text-underline-offset: 5px; }
.proj .pd { display: block; margin: 0 var(--s-3) var(--s-2); color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 980px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- about ---------- */
.about .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.photo { position: relative; padding: var(--s-3); }
.photo img { border-radius: calc(var(--r-lg) - 8px); background: var(--surface-2); aspect-ratio: 5 / 6; object-fit: cover; width: 100%; }
.photo .tag { position: absolute; inset-inline-start: -12px; bottom: 28px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; font-weight: 700; }
.photo .tag i { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; }
.photo .tag svg { width: 16px; height: 16px; }
.photo .tag, .photo .tag i, .photo img { transition: box-shadow .35s ease, border-color .35s ease, background-color .35s ease; }
.photo.card::after { mix-blend-mode: plus-lighter; background: radial-gradient(150px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.5), rgba(255,255,255,.18) 50%, transparent 100%); }
/* dark theme: the soft light adds brightness (white); the light theme uses the sky-blue one above */
:root[data-theme="dark"] .card:not(.photo)::after { mix-blend-mode: plus-lighter; background: radial-gradient(230px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.75), rgba(255,255,255,.3) 45%, transparent 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card:not(.photo)::after { mix-blend-mode: plus-lighter; background: radial-gradient(230px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.75), rgba(255,255,255,.3) 45%, transparent 100%); } }
.photo.lit img { box-shadow: 0 0 0 3px var(--sky), 0 0 40px color-mix(in srgb, var(--sky) 50%, transparent); }
.photo.lit .tag { border-color: var(--sky); box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--sky) 22%, transparent), 0 0 34px color-mix(in srgb, var(--sky) 55%, transparent); }
.photo.lit .tag i { background: var(--sky); box-shadow: 0 0 18px var(--sky); }
.about-body p { font-size: var(--fs-lead); margin: 0 0 1em; max-width: 34em; }
.facts { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: var(--s-5) 0 0; }
.facts li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
@media (max-width: 880px) { .about .wrap { grid-template-columns: 1fr; } .photo { max-width: 360px; } }

/* ---------- contact ---------- */
.contact-box { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); padding: clamp(24px, 5vw, 56px); background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%); }
.contact-intro .ill { max-width: 360px; margin-block: var(--s-6); }
.form { display: grid; gap: var(--s-4); align-content: start; align-self: start; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r-lg) - 6px); padding: clamp(20px, 3vw, 32px); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field select, .field textarea { font: 400 17px/1.4 var(--body); color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; min-height: 52px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 30%, transparent); }
.field [aria-invalid="true"] { border-color: #E0487A; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form .btn { justify-self: start; }
.form-note { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.form-status { margin: 0; font-weight: 700; min-height: 1.4em; }
.form-status.ok { color: var(--accent-text); }
.form-status.err { color: #E0487A; }
.form-status a { font-weight: 700; }
@media (max-width: 880px) { .contact-box { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: var(--s-6); color: var(--muted); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot p { margin: 0; }

/* ---------- accessibility page ---------- */
.page { max-width: 46em; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--pad); }
.page h1 { font: 700 clamp(64px, 10vw, 104px)/.9 var(--display); margin: 0 0 24px; }
.page h2 { font-size: 22px; margin: 32px 0 8px; }
.page.article h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1; }
.page .byline { color: var(--muted); margin: 0 0 24px; }
.page .back { display: inline-block; margin-bottom: 24px; font-weight: 700; color: var(--accent-text); }
.k-on { stroke: var(--on-accent); }
.k-vio { stroke: var(--violet); }
.k-surf { stroke: var(--surface); }

/* ---------- scroll animation (only when JS has marked the page) ---------- */
.js .reveal, .js [data-r] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in, .js [data-r].in { opacity: 1; transform: none; }
.js .hero-art .ill { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.js .step .ill { transition: transform .5s ease; }
.js .step.in .ill { transform: rotate(-4deg) scale(1.06); }
.work-grid { grid-template-columns: repeat(5, 1fr); gap: var(--s-4); }
.proj p { font-size: 28px; }
.proj.more p { font-family: var(--display); color: var(--accent-text); }
@media (max-width: 1100px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .js .reveal, .js [data-r] { opacity: 1; transform: none; } }

/* ============================================================
   Motion. Everything below is switched off by prefers-reduced-motion
   (see the rule at the top: animation/transition none).
   ============================================================ */
/* scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 20; background: linear-gradient(90deg, var(--accent), var(--violet)); transform-origin: 100% 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* hero name: each word rises out of a mask */
.name .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.name .w > * { display: inline-block; font-style: normal; animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
.name .w:last-child > * { animation-delay: .14s; }
@keyframes rise { from { transform: translateY(105%) rotate(4deg); } to { transform: none; } }
.chip, .role, .lede, .ctas { animation: fadeup .8s ease both; }
.chip { animation-delay: .05s; } .role { animation-delay: .35s; } .lede { animation-delay: .45s; } .ctas { animation-delay: .55s; }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* illustration parts (SVG) */
.ill [class*="a-"] { transform-box: fill-box; transform-origin: center; }
.a-in { animation: slidein 1s cubic-bezier(.2,.8,.2,1) both; }
.a-in.a2 { animation-delay: .25s; }
@keyframes slidein { from { opacity: 0; transform: translateY(28px) scale(.96); } to { opacity: 1; transform: none; } }
.a-bob { animation: bob 5s ease-in-out infinite; }
.a-bob.b2 { animation-delay: -2.4s; }
@keyframes bob { 50% { transform: translateY(-7px); } }
.a-grow { transform-origin: 0 50% !important; animation: grow 1.2s .8s cubic-bezier(.2,.8,.2,1) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
.a-sun { animation: sun 4s ease-in-out infinite; }
@keyframes sun { 50% { transform: scale(1.18); } }
.a-pulse { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.a-pop { animation: pop 3.6s ease-in-out infinite; }
@keyframes pop { 0%, 55% { transform: scale(1); } 65% { transform: scale(1.12); } 75%, 100% { transform: scale(1); } }
.a-cursor { animation: cursor 4.5s ease-in-out infinite; }
@keyframes cursor { 0%, 100% { transform: translate(0, 0); } 45% { transform: translate(-70px, -52px); } 55% { transform: translate(-70px, -52px) scale(.88); } 70% { transform: translate(-70px, -52px); } }

/* work thumbnails: play when the card enters the screen */
.a-bar { transform-origin: 50% 100% !important; }
.reveal:not(.in) .a-bar { transform: scaleY(0); }
.reveal.in .a-bar { animation: barup .8s calc(var(--d) * .1s + .3s) cubic-bezier(.2,.8,.2,1) both; }
@keyframes barup { from { transform: scaleY(0); } to { transform: none; } }
.a-water { animation: fill 6s ease-in-out infinite alternate; }
@keyframes fill { from { transform: translateY(46px); } to { transform: translateY(-34px); } }
.a-wave { animation: wave 2.4s linear infinite; transform-origin: 0 0 !important; }
@keyframes wave { to { transform: translateX(-40px); } }
.a-drop { animation: drop 3s ease-in infinite; }
.a-drop.d2 { animation-delay: -1.5s; }
@keyframes drop { 0% { transform: translateY(-14px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(30px); opacity: 0; } }
.a-ring { stroke-dashoffset: 100; }
.reveal.in .a-ring { animation: ring 1.6s .4s cubic-bezier(.3,.7,.2,1) forwards; }
@keyframes ring { to { stroke-dashoffset: 25; } }
.a-match { animation: match 4s ease-in-out infinite; }
@keyframes match { 0%, 100% { transform: translate(24px, 124px); } 50% { transform: translate(24px, 120px) scale(1.015); } }
.a-dot { animation: dots 1.4s ease-in-out infinite; animation-delay: calc(var(--d) * .18s); }
/* stagger index: a data attribute, since the CSP blocks inline style="" */
[data-d="0"] { --d: 0; } [data-d="1"] { --d: 1; } [data-d="2"] { --d: 2; } [data-d="3"] { --d: 3; } [data-d="4"] { --d: 4; }
@keyframes dots { 40% { transform: translateY(-14px); } }

/* cards: a soft glow that follows the pointer */
.card { position: relative; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--sky) 26%, transparent), transparent 70%); }
@media (hover: hover) { .card:hover::after { opacity: 1; } .svc:hover, .proj:hover, .step:hover { transform: translateY(-4px); } }
.svc, .proj, .step { transition: transform .3s ease, opacity .6s ease; }
.js .reveal { transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.hero-art { transition: transform .2s ease-out; transform: perspective(900px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); }

/* ribbon */
.ribbon { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); padding-block: 14px; direction: ltr; }
.track { display: flex; width: max-content; gap: 28px; align-items: center; animation: marquee 38s linear infinite; font: 700 34px/1 var(--display); direction: rtl; white-space: nowrap; }
.track span { color: var(--text); }
.track i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.track span:nth-of-type(3n) { color: var(--violet); }
@keyframes marquee { to { transform: translateX(-50%); } }
.ribbon:not(.draggable):hover .track { animation-play-state: paused; }
.ribbon.draggable { cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.ribbon.draggable.dragging { cursor: grabbing; }

/* ---------- 3D orb behind the hero picture ---------- */
.hero-art { position: relative; }
.orb { position: absolute; inset: -14% -10%; width: 120%; height: 128%; z-index: 0; pointer-events: none; }
.hero-art .ill { position: relative; z-index: 1; }

/* ---------- micro-interactions: small cues that point at the next step ---------- */
.top nav ul a { position: relative; transition: color .2s; }
.top nav ul a::after { content: ""; position: absolute; inset-inline: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--sky); transform: scaleX(0); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.top nav ul a:hover::after, .top nav ul a.on::after { transform: scaleX(1); }
.top nav ul a.on { color: var(--text); }
[data-mag] { transition: transform .25s cubic-bezier(.2,.8,.2,1), background-color .15s ease; }
.btn-accent { position: relative; }
.btn-accent::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--accent); opacity: 0; pointer-events: none; }
.js-ready .hero .btn-accent::before { animation: ping 2.4s 2.6s ease-out 2; }
@keyframes ping { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.18, 1.5); } }
.btn svg { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.btn:hover svg { transform: rotate(-12deg) scale(1.12); }
.field { transition: transform .2s ease; }
.field:focus-within { transform: translateY(-2px); }
.field:focus-within label { color: var(--accent-text); }
.field label { transition: color .2s; }
.theme { transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .2s; }
.theme:hover { border-color: var(--violet); }
.theme.spin { transform: rotate(180deg); }
@media (max-width: 880px) { .orb { inset: -8% -6%; width: 112%; height: 116%; } }

/* scroll-linked type: set from site.js through the individual transform properties,
   so they do not clash with the entrance animations that use `transform`. */
.name { transform-origin: 100% 0; will-change: translate, scale, opacity; }
.h2 { will-change: translate; }
main { overflow-x: clip; }

/* ---------- questionnaire page + prices ---------- */
.brief { max-width: 760px; }
.brief .h2 { font-size: clamp(48px, 7vw, 80px); }
.brief fieldset.field { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.brief legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 6px; }
.opts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.opt span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--bg); font-size: 16px; transition: background-color .15s, border-color .15s; }
.opt input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.opt input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
#brief-done:focus { outline: none; }
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin-block: var(--s-6); }
.price { padding: var(--s-5); }
.price h3 { margin: 0 0 var(--s-2); font-size: 20px; }
.price .amt { margin: 0 0 var(--s-2); font: 700 44px/1 var(--display); color: var(--accent-text); display: flex; align-items: baseline; gap: var(--s-2); }
.price .amt small { font: 400 15px var(--body); color: var(--muted); }
.price .desc { margin: 0; color: var(--muted); font-size: 16px; }
.addons { grid-column: 1 / -1; padding: var(--s-5); }
.addons h3 { margin: 0 0 var(--s-3); font-size: 18px; }
.addons ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.addons li { display: flex; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-2); border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .prices { grid-template-columns: 1fr; } }

/* copy answers */
.copy-box { margin-top: 1.5rem; display: grid; gap: .6rem; justify-items: start; }
.copy-box textarea { width: 100%; font: inherit; padding: .8rem; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; color: inherit; }

/* flip price cards: the card only grows while flipped */
.price.flip { position: relative; padding: 0; perspective: 1200px; background: none; border: 0; box-shadow: none; transition: height .55s cubic-bezier(.2,.7,.2,1); align-self: start; }
.price.flip > .face { padding: var(--s-5); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow); backface-visibility: hidden; transition: transform .55s cubic-bezier(.2,.7,.2,1), opacity .3s; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); position: relative; }
.price.flip > .back, .price.flip.flipped > .front { position: absolute; inset: 0 0 auto 0; pointer-events: none; opacity: 0; }
.price.flip > .back { transform: rotateY(180deg); }
.price.flip.flipped > .front { transform: rotateY(-180deg); }
.price.flip.flipped > .back { position: relative; inset: auto; transform: none; opacity: 1; pointer-events: auto; }
.price .face h4 { margin: var(--s-2) 0 0; font-size: 15px; color: var(--accent-text); }
.price .face ul { margin: 0; padding-inline-start: 1.1em; display: grid; gap: 4px; font-size: 15px; color: var(--muted); }
.price .flip-btn { margin-top: var(--s-2); padding-block: .5rem; }
@media (prefers-reduced-motion: reduce) { .price.flip, .price.flip > .face { transition: none; } }
.copy-alt { width: 100%; }
.copy-alt summary { cursor: pointer; color: var(--muted); font-size: 14px; margin-bottom: .5rem; }

.legal-links { margin-top: var(--s-6); font-size: 15px; color: var(--muted); }
.legal-links a { color: inherit; }

/* Language switch (native <details>; lang.js closes it on outside click and remembers the choice). */
.top .wrap { gap: var(--s-3); }
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding-inline: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font-size: 14px; font-weight: 700; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lang[open] summary::after { transform: translateY(1px) rotate(225deg); }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 10; min-width: 150px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); }
.lang li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding-inline: 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 15px; }
.lang li a:hover, .lang li a:focus-visible { background: var(--surface-2, var(--line)); }
.lang li a[aria-current="true"] { color: var(--accent-text); font-weight: 700; }
.lang li a[aria-current="true"]::after { content: "\2713"; }
/* Other scripts: Karantina only has Hebrew + Latin, so Russian and Arabic headings fall back to Rubik bold, which is much wider. */
html[lang="ru"], html[lang="ar"] { --fs-hero: clamp(56px, 11vw, 124px); --fs-h2: clamp(34px, 5.2vw, 62px); }
html[lang="ru"] .h2, html[lang="ar"] .h2 { line-height: 1.12; letter-spacing: 0; }
html[lang="ru"] .name, html[lang="ar"] .name { line-height: 1.08; letter-spacing: 0; }
html[lang="ru"] .brief .h2, html[lang="ar"] .brief .h2 { font-size: clamp(34px, 5.2vw, 62px); }
html[lang="ru"] .track, html[lang="ar"] .track { font-size: 26px; }
html[lang="ar"] body { line-height: 1.85; }
.about .wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
@media (max-width: 880px) { .about .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Language suggestion bar (lang.js) */
.lang-suggest { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 20; max-width: 560px; margin-inline: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow); font-size: 15px; }
.lang-suggest span { flex: 1 1 200px; }
.lang-suggest .btn { min-height: 44px; padding-block: 8px; }
.lang-suggest-x { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }

/* ---------- about page (/about) ---------- */
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 24px; }
.crumbs a { color: var(--accent-text); font-weight: 700; }
.about-photo { float: inline-start; width: min(220px, 40%); margin: 0 0 16px; margin-inline-end: 24px; padding: 8px; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 6; object-fit: cover; border-radius: calc(var(--r-lg) - 6px); background: var(--surface-2); }
.about-page h2 { clear: both; }
.about-list { padding-inline-start: 1.2em; }
.about-list li { margin-bottom: 6px; }
@media (max-width: 520px) { .about-photo { float: none; width: min(260px, 100%); margin-inline-end: 0; } }

/* ---------- blog index ---------- */
.post-list { list-style: none; padding: 0; margin: var(--s-5) 0; display: grid; gap: var(--s-4); }
.post-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-4) var(--s-5); }
.post-list h2 { margin: 0 0 6px; font-size: 20px; }
.post-list h2 a { color: inherit; }
.post-list p { margin: 0; color: var(--muted); }

/* ---------- articles: reading layout, related cards, CTA ---------- */
.page.article { max-width: 42em; }
.page.article .back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; text-decoration: none; }
.page.article .back:hover { border-color: var(--violet); }
.page.article h1 { margin-bottom: 16px; text-wrap: balance; }
.page.article .byline { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--line); font-size: 15px; }
.page.article .byline a { color: var(--text); font-weight: 700; text-decoration: none; }
.page.article h2 { position: relative; margin: 44px 0 10px; padding-inline-start: 16px; font-size: clamp(22px, 3vw, 26px); line-height: 1.25; text-wrap: balance; }
.page.article h2::before { content: ""; position: absolute; inset-inline-start: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 3px; background: linear-gradient(var(--violet), var(--accent)); }
.page.article p, .page.article li { font-size: 18px; line-height: 1.85; }
.page.article p { margin: 0 0 1.1em; }
.page.article ul:not(.related-list):not(.post-list) { padding-inline-start: 1.3em; margin: 0 0 1.2em; }
.page.article li::marker { color: var(--violet); }
.page.article li { margin-bottom: 8px; }
.page.article p a, .page.article li a { color: var(--violet); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.page.article .related { margin-top: 56px; }
.page.article .related h2 { margin-top: 0; }
.related-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.page.article .related-list li { margin: 0; padding: 0; }
.page.article .related-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--text); font-size: 17px; line-height: 1.45; font-weight: 500; text-decoration: none; transition: border-color .15s, transform .15s; }
.page.article .related-list a::after { content: "←"; color: var(--violet); font-weight: 700; flex: none; }
.page.article .related-list a:hover { border-color: var(--violet); transform: translateY(-2px); }

.cta { margin: 48px 0 0; padding: clamp(24px, 5vw, 36px); border-radius: var(--r-lg); background: linear-gradient(135deg, var(--violet-soft), var(--surface)); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.page.article .cta h2 { margin: 0 0 8px; padding: 0; font-size: clamp(24px, 4vw, 30px); }
.page.article .cta h2::before { display: none; }
.page.article .cta p { margin: 0 0 20px; font-size: 17px; color: var(--muted); }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-btns .btn { flex: 1 1 200px; }
.page.article .cta .btn { text-decoration: none; color: var(--on-accent); }
.page.article .cta .btn-ghost { color: var(--text); }

/* blog index cards */
.post-list li { position: relative; padding: var(--s-5); transition: border-color .15s, transform .15s; }
.post-list li:hover { border-color: var(--violet); transform: translateY(-2px); }
.post-list h2 a { text-decoration: none; color: inherit; }
.post-list h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.post-list h2 { padding: 0; margin: 0 0 8px; font-size: 21px; line-height: 1.3; }
.post-list h2::before { display: none; }
.post-list p { font-size: 16px; line-height: 1.6; }

/* home About: tidy chips and "more" link */
.about-body .facts { margin-top: var(--s-5); }
p.more a { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s-4); min-height: 48px; padding: 10px 20px; border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 700; text-decoration: none; transition: border-color .15s; }
p.more a::after { content: "←"; color: var(--violet); }
p.more a:hover { border-color: var(--violet); }
p.more { margin: 0; }
.page.article .post-list h2 { margin: 0 0 8px; padding: 0; font-size: 21px; line-height: 1.3; }
.page.article .post-list h2::before { display: none; }
.page.article .post-list h2 a { color: var(--text); text-decoration: none; }
.page.article .post-list p { font-size: 16px; line-height: 1.6; margin: 0; }

/* whole-card click on blog index: h2 must not be the positioning context */
.page.article .post-list h2 { position: static; }
.post-list li:focus-within { border-color: var(--violet); }
/* CTA buttons: white (not violet) hover/focus marks */
.cta .btn:hover, .cta .btn-ghost:hover { border-color: #fff; }
.cta .btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn-accent:focus-visible { outline-color: #fff; }

/* buttons inside article/about text keep button colors, no link styling */
.page.article a.btn { text-decoration: none; }
.page.article a.btn-accent { color: var(--on-accent); }
.page.article a.btn-ghost { color: var(--text); }
.page.article a.btn:hover { text-decoration: none; }
.page.article p:has(> a.btn) { margin-top: 1.4em; }

/* LTR (English) arrows */
html[dir="ltr"] .page.article .related-list a::after, html[dir="ltr"] p.more a::after { content: "→"; }

/* English headings: the Karantina display subset has no full Latin set, so use the body face */
html[lang="en"] .page.article h1 { font-family: var(--body); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.page.article .form-note { margin: -8px 0 20px; }
.page.article .form-note a { color: var(--violet); text-decoration: none; font-weight: 700; }

/* ============================================================
   motion.js effects. Each one only switches on when motion.js adds
   its class, and motion.js does nothing under prefers-reduced-motion,
   so without JS (or with reduced motion) the plain layout stays.
   ============================================================ */

/* 1. Process line: fills in the reading direction while scrolling, each step lights up as it is reached. */
.steps.flow { --p: 0; padding-top: 40px; }
.steps.flow::before, .steps.flow::after { content: ""; position: absolute; top: 12px; height: 4px; border-radius: 2px; inset-inline: calc((100% - 3 * var(--s-5)) / 8); pointer-events: none; }
.steps.flow::before { background: var(--line); }
.steps.flow::after { background: var(--sky); transform: scaleX(var(--p)); transform-origin: left center; transition: transform .15s linear; }
html[dir="rtl"] .steps.flow::after { transform-origin: right center; }
.steps.flow > .step::before { content: ""; position: absolute; top: -36px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line-strong); transition: background .35s, border-color .35s, box-shadow .35s, transform .35s; }
.steps.flow > .step { transition: transform .3s ease, opacity .6s ease, border-color .4s ease, box-shadow .4s ease; }
.steps.flow > .step .n { transition: color .4s ease; }
.steps.flow > .step.on { border-color: color-mix(in srgb, var(--sky) 60%, var(--line)); }
.steps.flow > .step.on .n { color: color-mix(in srgb, var(--sky) 55%, var(--text)); }
.steps.flow > .step.on::before { background: var(--sky); border-color: var(--sky); transform: scale(1.15); box-shadow: 0 0 0 6px color-mix(in srgb, var(--sky) 24%, transparent); }
@media (max-width: 980px) {
  /* two columns: no line between rows, the steps still light up one after another */
  .steps.flow { padding-top: 0; }
  .steps.flow::before, .steps.flow::after, .steps.flow > .step::before { display: none; }
}
@media (max-width: 560px) {
  /* one column: the line runs down the side */
  .steps.flow { padding-inline-start: 30px; }
  .steps.flow::before, .steps.flow::after, .steps.flow > .step::before { display: block; }
  .steps.flow::before, .steps.flow::after { top: 30px; bottom: 60px; inset-inline: 8px auto; width: 4px; height: auto; }
  .steps.flow::after, html[dir="rtl"] .steps.flow::after { transform: scaleY(var(--p)); transform-origin: center top; }
  .steps.flow > .step::before { top: 24px; left: auto; margin-left: 0; inset-inline-start: -30px; }
}

/* 2. Spatial work gallery: one row in depth, the middle card in front. */
.work-grid.spatial {
  --cw: min(320px, 60vw);
  display: flex; gap: var(--s-4); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(50% - 50vw); padding: 28px calc(50vw - var(--cw) / 2) 64px;
  cursor: grab; -webkit-user-select: none; user-select: none;
}
.work-grid.spatial::-webkit-scrollbar { display: none; }
.work-grid.spatial.dragging { cursor: grabbing; scroll-snap-type: none; }
.work-grid.spatial > .proj { flex: 0 0 var(--cw); scroll-snap-align: center; transition: box-shadow .35s ease, border-color .35s ease; will-change: transform; }
.work-grid.spatial > .proj.is-center { border-color: color-mix(in srgb, var(--sky) 55%, var(--line)); box-shadow: var(--shadow), 0 24px 44px -26px color-mix(in srgb, var(--violet) 55%, transparent); }
.work-grid.spatial > .proj:not(.is-center) { cursor: pointer; }
.work-grid.spatial img, .work-grid.spatial svg { -webkit-user-drag: none; }
.rail-nav { display: flex; justify-content: center; gap: var(--s-3); margin-top: var(--s-2); }
.rail-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: var(--shadow); cursor: pointer; transition: transform .2s ease, opacity .2s ease, background .2s ease; }
.rail-btn svg { width: 22px; height: 22px; }
.rail-btn:hover:not(:disabled) { transform: translateY(-2px); background: var(--surface-2); }
.rail-btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.rail-btn:disabled { opacity: .35; cursor: default; }
/* arrows point the way the cards move: in Hebrew "next" is to the left */
.rail-btn.prev svg { transform: scaleX(-1); }
.rail-btn.play .i-play, .rail-btn.play.paused .i-pause { display: none; }
.rail-btn.play.paused .i-play { display: block; }
html[dir="rtl"] .rail-btn.prev svg { transform: none; }
html[dir="rtl"] .rail-btn.next svg { transform: scaleX(-1); }

/* 3. Touchable cards: tilt toward the pointer, the illustration floats a little above the card. */
.svc.tilting, .step.tilting { transition: transform .12s ease-out, opacity .6s ease, border-color .4s ease; }
.svc .ill-box svg, .step .ill { translate: var(--px, 0px) var(--py, 0px); transition: translate .2s ease-out, transform .5s ease; }
.card.touched::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .svc .ill-box svg, .step .ill { translate: none; } }

/* 4. 3D logo in the "ועוד..." work card (logo3d.js). The dots drawing stays as the fallback without WebGL. */
.proj.more .ill-box { position: relative; }
.logo3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.ill-box.has-3d > svg { visibility: hidden; }
/* the "ועוד..." card: the logo area grows to fill the card, so a tall card has no empty bottom */
.work-grid.spatial > .proj.more { display: flex; flex-direction: column; }
.work-grid.spatial > .proj.more .ill-box { flex: 1 1 auto; min-height: 180px; }
.work-grid.spatial > .proj.more p { margin-bottom: var(--s-4); }
.rail-dots { display: flex; justify-content: center; gap: 8px; margin: -36px 0 var(--s-4); }
.rail-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line-strong); transition: width .3s ease, background .3s ease; }
.rail-dots i.on { width: 24px; background: var(--sky); }
