/* Ram Malca: tokens, app shell, pages */
:root {
  --paper: #ffffff;
  --paper-2: #f3f3f0;
  --paper-3: #e9e9e4;
  --ink: #141414;
  --ink-2: #5b5a55;
  --orange: #ff4f1a;
  --blue: #2747ff;
  --lime: #d9f25c;
  --on-orange: #141414;
  --on-blue: #ffffff;
  --accent: var(--ink);
  --on-accent: var(--paper);

  --font: "Noto Sans Hebrew", "Noto Sans", system-ui, sans-serif;
  --m: clamp(16px, 2.4vw, 32px);
  --wrap: 1360px;
  --bar: 64px;
  --gap: clamp(56px, 7vw, 96px);
  --r: 0px; /* square corners, like the logo */
  --ease: cubic-bezier(.23, 1, .32, 1);
  --t: 220ms;
}
html[data-space="physical"] { --accent: var(--orange); --on-accent: var(--on-orange); }
html[data-space="digital"] { --accent: var(--blue); --on-accent: var(--on-blue); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #141414; --paper-2: #1e1e1c; --paper-3: #2a2a27; --ink: #f4f4f1; --ink-2: #a9a7a0; }
  :root:not([data-theme="light"]):not([data-space]) , :root:not([data-theme="light"])[data-space="all"] { --on-accent: #141414; }
}
:root[data-theme="dark"] { --paper: #141414; --paper-2: #1e1e1c; --paper-3: #2a2a27; --ink: #f4f4f1; --ink-2: #a9a7a0; }
:root[data-theme="dark"]:not([data-space]), :root[data-theme="dark"][data-space="all"] { --on-accent: #141414; }

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 16px); }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--font); font-variation-settings: "wdth" 100; -webkit-tap-highlight-color: transparent; transition: background var(--t), color var(--t); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--m); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type */
.display { font-weight: 800; font-variation-settings: "wdth" 72; letter-spacing: -0.02em; line-height: .9; }
h1, h2, h3 { font-weight: 800; font-variation-settings: "wdth" 76; letter-spacing: -0.015em; line-height: 1; }
h2 { font-size: clamp(32px, 4.4vw, 60px); }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.1; }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; max-width: 46ch; }
.muted { color: var(--ink-2); }

/* buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 0; font-weight: 600; font-size: 16px; background: var(--accent); color: var(--on-accent); transition: transform var(--t) var(--ease), background var(--t), color var(--t); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--paper-2); color: var(--ink); }
.btn .arrow { transition: transform var(--t) var(--ease); }

/* app bar */
.bar { position: sticky; top: 0; z-index: 50; background: var(--paper); transition: background var(--t); }
.bar .wrap { height: var(--bar); display: flex; align-items: center; gap: 20px; }
.mark { display: flex; align-items: center; color: var(--ink); flex: none; }
.logo { display: block; height: auto; overflow: visible; }
.logo-bar { height: 30px; width: auto; }
.symbol-bar { display: none; width: 32px; height: 32px; }
@media (max-width: 600px) { .logo-bar { display: none; } .symbol-bar { display: block; } }
.logo-hero { width: min(100%, 620px); }
.logo-foot { width: 100%; max-height: 260px; }
/* while a page loads, the symbol in the bar turns in quarter turns */
.logo-bar .sym > g > g { transform-box: fill-box; transform-origin: 50% 50%; }
.symbol-bar .sym { transform-box: fill-box; transform-origin: 50% 50%; }
body.loading .symbol-bar .sym, body.loading .logo-bar .sym > g > g { animation: quarter 1.4s cubic-bezier(.7, 0, .2, 1) infinite; }
@keyframes quarter { 0% { transform: rotate(0) } 25% { transform: rotate(90deg) } 50% { transform: rotate(180deg) } 75% { transform: rotate(270deg) } 100% { transform: rotate(360deg) } }
.nav { display: flex; gap: 2px; margin-inline-start: 12px; }
.nav a { white-space: nowrap; padding: 8px 11px; border-radius: 0; font-size: 15.5px; color: var(--ink-2); transition: color var(--t), background var(--t); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.bar .tools { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 0; display: grid; place-items: center; font-size: 14px; font-weight: 600; transition: background var(--t); }

/* the space switch */
.space { position: relative; display: flex; background: var(--paper-2); border-radius: 0; padding: 4px; }
.space button { position: relative; z-index: 1; height: 34px; padding: 0 14px; border-radius: 0; font-size: 14.5px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 7px; transition: color var(--t); }
.space button[aria-pressed="true"] { color: var(--on-accent); }
.space .dot { width: 8px; height: 8px; border-radius: 0; }
.space [data-set="physical"] .dot { background: var(--orange); }
.space [data-set="digital"] .dot { background: var(--blue); }
.space [data-set="all"] .dot { background: linear-gradient(90deg, var(--orange) 50%, var(--blue) 50%); }
.space [aria-pressed="true"] .dot { box-shadow: 0 0 0 2px var(--paper); }
.space .pill { position: absolute; z-index: 0; top: 4px; height: 34px; border-radius: 0; background: var(--accent); transition: right 320ms var(--ease), width 320ms var(--ease), background var(--t); }

/* bottom tabs (phone) */
.tabs { display: none; }

/* main + page transitions */
main { min-height: calc(100svh - var(--bar)); }
main.leaving { opacity: 0; transform: translateY(8px); transition: opacity 160ms ease, transform 160ms ease; }
main.entering { animation: enter 380ms var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }

/* filtering by space */
[data-in] { transition: opacity 260ms ease, transform 260ms var(--ease); }
html[data-space="physical"] [data-in="digital"], html[data-space="digital"] [data-in="physical"] { display: none; }

/* ===== home ===== */
.hero { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(24px, 4vw, 56px); align-items: stretch; padding-top: clamp(16px, 3vw, 40px); }
.hero .text { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding-block: 8px; }
.hero h1 .name { display: block; color: var(--ink); }
.hero h1 .what { display: block; font-size: clamp(22px, 2.3vw, 32px); font-weight: 700; font-variation-settings: "wdth" 85; letter-spacing: -0.01em; margin-top: 18px; line-height: 1.15; }
.rotor { font-size: clamp(22px, 2.3vw, 32px); font-weight: 700; font-variation-settings: "wdth" 85; color: var(--ink-2); height: 1.25em; overflow: hidden; line-height: 1.25; }
.rotor .word { display: inline-block; color: var(--accent); transition: transform 420ms var(--ease), opacity 420ms ease, color var(--t); }
.rotor .word.out { transform: translateY(-100%); opacity: 0; }
.rotor .word.in { transform: translateY(100%); opacity: 0; transition: none; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.stage { position: relative; border-radius: var(--r); overflow: hidden; background: var(--paper-2); min-height: min(64svh, 600px); display: grid; grid-template-rows: 1fr auto; }
.stage .slides { position: relative; overflow: hidden; }
.stage .slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity 600ms ease, transform 1200ms var(--ease); }
.stage .slide.on { opacity: 1; transform: none; }
.stage .slide img { width: 100%; height: 100%; object-fit: cover; }
.stage .caption { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--paper-2); }
.stage .caption .t { flex: 1; min-width: 0; }
.stage .caption b { display: block; font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage .caption span { font-size: 14.5px; color: var(--ink-2); }
.stage .ctrl { display: flex; gap: 6px; }
.stage .ctrl button { width: 40px; height: 40px; border-radius: 0; background: var(--paper); display: grid; place-items: center; font-size: 18px; transition: transform var(--t) var(--ease), background var(--t); }
.stage .ctrl button:active { transform: scale(.92); }
.stage .progress { position: absolute; top: 0; right: 0; left: 0; height: 3px; z-index: 2; display: flex; gap: 4px; padding: 10px 12px 0; }
.stage .progress i { flex: 1; height: 4px; border-radius: 0; background: rgba(255,255,255,.4); overflow: hidden; box-shadow: 0 1px 6px rgb(0 0 0 / .35); }
.stage .progress.held i.now b { animation-play-state: paused; }
.stage .slides { cursor: pointer; }
.stage .progress i b { display: block; height: 100%; width: 0; background: #fff; }
.stage .progress i.done b { width: 100%; }
.stage .progress i.now b { animation: fill var(--dur, 5200ms) linear forwards; }
@keyframes fill { to { width: 100%; } }
.stage .tag { position: absolute; top: 24px; right: 14px; z-index: 2; background: var(--paper); color: var(--ink); font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 0; display: flex; gap: 6px; align-items: center; }
.tag .dot { width: 8px; height: 8px; border-radius: 0; background: var(--orange); }
.tag .dot.digital { background: var(--blue); }

section { padding-top: var(--gap); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.sec-head a { font-weight: 600; font-size: 16px; white-space: nowrap; }

.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.door { border-radius: var(--r); background: var(--paper-2); padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; align-content: start; transition: background var(--t), color var(--t); }
.door .top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.door .chip { font-size: 14px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.door .chip .dot { width: 10px; height: 10px; border-radius: 0; }
.door.p .chip .dot { background: var(--orange); } .door.d .chip .dot { background: var(--blue); }
.door h3 { font-size: clamp(28px, 3vw, 40px); }
.door ul { list-style: none; padding: 0; display: grid; }
.door li a { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; font-weight: 600; font-size: 17px; border-top: 1px solid var(--paper-3); transition: color var(--t), padding var(--t) var(--ease); }
.door .use { font-size: 14.5px; font-weight: 600; padding: 8px 14px; border-radius: 0; background: var(--paper); transition: background var(--t), color var(--t); }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 31%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; display: grid; gap: 12px; }
.card .pic { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--paper-2); position: relative; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.card .pic .tag { top: 12px; }
.card h3 { font-size: 22px; }
.card .meta { font-size: 15px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 12px; }
.rail-nav { display: flex; gap: 6px; }
.rail-nav button { width: 40px; height: 40px; border-radius: 0; background: var(--paper-2); font-size: 18px; transition: background var(--t), color var(--t); }

.clients { display: flex; flex-wrap: wrap; gap: 10px; }
.clients li { list-style: none; padding: 12px 18px; border-radius: 0; background: var(--paper-2); font-weight: 600; font-size: 16px; }

.cta { margin-top: var(--gap); border-radius: var(--r); background: var(--accent); color: var(--on-accent); padding: clamp(36px, 6vw, 80px) clamp(24px, 4vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; transition: background var(--t), color var(--t); }
.cta h2 { font-size: clamp(44px, 7vw, 104px); font-variation-settings: "wdth" 70; }
.cta .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cta .btn { background: var(--paper); color: var(--ink); }
.cta .btn.ghost { background: transparent; color: var(--on-accent); box-shadow: inset 0 0 0 2px currentColor; }

footer { padding: var(--gap) 0 28px; }
footer .big { color: var(--ink); }
footer .row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 15px; color: var(--ink-2); }

/* ===== project page ===== */
.crumbs { padding-top: 20px; font-size: 15px; color: var(--ink-2); display: flex; gap: 8px; }
.p-head { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 56px); align-items: end; padding-top: 20px; }
.p-head h1 { font-size: clamp(48px, 7vw, 108px); font-variation-settings: "wdth" 70; line-height: .9; letter-spacing: -0.025em; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.facts dt { font-size: 14px; color: var(--ink-2); }
.facts dd { font-weight: 700; font-size: 17px; }
.p-hero { margin-top: 28px; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 8; background: var(--paper-2); }
.p-hero img { width: 100%; height: 100%; object-fit: cover; }
.p-body { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 56px); }
.p-body .copy { display: grid; gap: 16px; align-content: start; max-width: 52ch; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gallery figure { border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery figure.wide img { aspect-ratio: 16 / 7; }
.next { margin-top: var(--gap); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px clamp(20px, 3vw, 36px); border-radius: var(--r); background: var(--paper-2); transition: background var(--t), color var(--t); }
.next b { font-size: clamp(24px, 3vw, 40px); font-weight: 800; font-variation-settings: "wdth" 76; }

/* ===== phone ===== */
/* below this width the top links move to the tab bar at the bottom */
@media (max-width: 1180px) {
  .nav { display: none; }
  .tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 60; bottom: 0; right: 0; left: 0; background: var(--paper); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--paper-3); }
  .tabs a, .tabs button { display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 12px; font-weight: 600; color: var(--ink-2); border-radius: 0; }
  .tabs a svg, .tabs button svg { width: 22px; height: 22px; }
  .tabs [aria-expanded="true"] { color: var(--ink); background: var(--paper-2); }
  .sheet:not([hidden]) { display: grid; gap: 4px; position: fixed; z-index: 59; right: 0; left: 0; padding: 8px 8px 6px; background: var(--paper); box-shadow: 0 -1px 0 var(--paper-3), 0 -18px 40px rgb(0 0 0 / .12); }
  .sheet a { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: var(--paper-2); font-size: 17px; font-weight: 700; }
  .sheet a[aria-current="page"] { background: var(--orange); color: var(--on-orange); }
  .tabs a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
  body { padding-bottom: 76px; }
}

@media (max-width: 900px) {
  .bar .cta-top { display: none; }
  .bar .wrap { gap: 10px; }
  .space button { padding: 0 11px; font-size: 14px; }
  .space button .lbl-long { display: none; }
  .hero, .p-head, .p-body { grid-template-columns: 1fr; }
  .stage { min-height: 56svh; }
  .doors { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 78%; }
  .cta { grid-template-columns: 1fr; }
  .rail-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* ===== the double corner as a UI mark ===== */
/* a selected item gets the logo's two corners: orange top right, blue bottom left */
.corner { position: relative; }
.corner::before, .corner::after { content: ""; position: absolute; width: 9px; height: 9px; pointer-events: none; opacity: 0; transition: opacity var(--t), transform var(--t) var(--ease); }
.corner::before { top: 0; right: 0; border-top: 2px solid var(--orange); border-right: 2px solid var(--blue, var(--orange)); border-right-color: var(--orange); transform: translate(3px, -3px); }
.corner::after { bottom: 0; left: 0; border-bottom: 2px solid var(--blue); border-left: 2px solid var(--blue); transform: translate(-3px, 3px); }
.corner[aria-current="page"]::before, .corner[aria-current="page"]::after { opacity: 1; transform: none; }
.sheet { display: none; }
.nav a[aria-current="page"], .tabs a[aria-current="page"], .tabs button[aria-current="page"] { background: none; color: var(--ink); }
/* the space switch: square, the dots become small squares */
.space .dot, .tag .dot, .door .chip .dot { border-radius: 0; }
/* pictures: the corners appear on hover */
.card .pic::before, .card .pic::after { content: ""; position: absolute; z-index: 2; width: 22px; height: 22px; opacity: 0; transition: opacity var(--t), transform 320ms var(--ease); }
.card .pic::before { top: 10px; right: 10px; border-top: 3px solid var(--orange); border-right: 3px solid var(--orange); transform: translate(6px, -6px); }
.card .pic::after { bottom: 10px; left: 10px; border-bottom: 3px solid var(--blue); border-left: 3px solid var(--blue); transform: translate(-6px, 6px); }

/* ===== round 3: header logo after scroll, language flip, headline ===== */
/* on the home page the bar logo waits until the big one scrolls away */
.mark { transition: opacity 320ms var(--ease), transform 320ms var(--ease); }
body.hero-logo .mark { opacity: 0; pointer-events: none; }
body.hero-logo.show-mark .mark { opacity: 1; transform: none; pointer-events: auto; }
/* EN flips to עב on the way out */
.lang { position: relative; overflow: hidden; }
.lang span { display: grid; place-items: center; transition: transform 260ms var(--ease); }
.lang .next { position: absolute; inset: 0; transform: translateY(100%); }
.lang.flip .now { transform: translateY(-100%); }
.lang.flip .next { transform: none; }
/* the headline: the third word keeps changing */
.what.rotor { height: auto; overflow: visible; color: var(--ink); }
.what .slot { display: inline-block; overflow: hidden; vertical-align: bottom; height: 1.2em; }
.what .word { color: var(--accent); }
.hero .actions { margin-top: 0; }
.sec-head .lead { max-width: 44ch; color: var(--ink-2); }
/* physical and digital together: the double corner */
.both, .space [data-set="all"] .dot { display: inline-block; position: relative; width: 11px; height: 11px; flex: none; background: none !important; border: 0 !important; box-shadow: none !important; }
.both::before, .space [data-set="all"] .dot::before { content: ""; position: absolute; top: 0; right: 0; width: 9px; height: 9px; border-top: 2.5px solid var(--orange); border-right: 2.5px solid var(--orange); box-sizing: border-box; }
.both::after, .space [data-set="all"] .dot::after { content: ""; position: absolute; bottom: 0; left: 0; width: 6px; height: 7px; border-bottom: 2.5px solid var(--blue); border-left: 2.5px solid var(--blue); box-sizing: border-box; }

/* ===== round 4 ===== */
/* the logo flight between the hero and the bar is a view transition; nothing else on the page fades */
::view-transition-group(brand) { animation-duration: 720ms; animation-timing-function: cubic-bezier(.34, 1.3, .64, 1); }
::view-transition-old(brand), ::view-transition-new(brand) { height: 100%; width: auto; object-fit: contain; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
@supports (view-transition-name: none) { .mark { transition: none; } }
body.hero-logo.show-mark [data-intro] svg { visibility: hidden; }
/* the changing word, letter by letter */
.what .ch { display: inline-block; }
/* section head with its line under the title */
.sec-head.stack { display: grid; justify-items: start; gap: 12px; }
.sec-head.stack .lead { font-size: clamp(18px, 1.5vw, 21px); }
/* door buttons: pressed shows "back to all", and the other door steps back */
.door .use .on { display: none; }
html[data-space="physical"] .door.p .use, html[data-space="digital"] .door.d .use { color: var(--on-accent); background: var(--accent); }
html[data-space="physical"] .door.p .use .on, html[data-space="digital"] .door.d .use .on { display: inline; }
html[data-space="physical"] .door.p .use .off, html[data-space="digital"] .door.d .use .off { display: none; }
.door { transition: opacity 320ms var(--ease), background var(--t), color var(--t); }
html[data-space="physical"] .door.d, html[data-space="digital"] .door.p { opacity: .38; }
@media (max-width: 900px) {
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}
/* page changes that move the logo: the rest of the page cross-fades quickly */
html.vt-nav::view-transition-old(root) { animation: 160ms ease both vt-out; }
html.vt-nav::view-transition-new(root) { animation: 260ms 80ms ease both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
/* the hero logo is moved by the scroll: keep it light */
[data-intro] svg { transform-origin: 0 0; will-change: transform; position: relative; z-index: 70; }  /* flies over the bar, not under it */
/* less space between the hero and the first section */
.hero + section { padding-top: clamp(40px, 5vw, 64px); }

/* ===== service pages ===== */
.svc-head { display: grid; justify-items: start; gap: 18px; padding-top: clamp(20px, 3vw, 40px); max-width: 860px; }
.svc-head h1 { font-size: clamp(40px, 6vw, 84px); font-variation-settings: "wdth" 70; line-height: .95; letter-spacing: -0.02em; }
.svc-head .chip { font-size: 14px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.svc-head .chip .dot { width: 10px; height: 10px; background: var(--orange); }
.svc-head .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.svc-head + section { padding-top: clamp(40px, 5vw, 64px); }
/* what I produce: four rooms */
.kinds { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kinds li { background: var(--paper-2); padding: 24px 22px; display: grid; gap: 10px; align-content: start; min-height: 190px; }
.kinds b { font-size: 22px; font-weight: 800; font-variation-settings: "wdth" 80; }
.kinds span { color: var(--ink-2); }
.kinds a { color: var(--ink); font-weight: 600; white-space: nowrap; }
/* how I work: steps on one line, the line is the floor */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 26px 18px 0 18px; display: grid; gap: 8px; align-content: start; border-top: 3px solid var(--ink); }
.steps li::before { content: ""; position: absolute; top: -7.5px; right: 18px; width: 12px; height: 12px; background: var(--ink); }
.steps li.key::before { top: -13.5px; width: 24px; height: 24px; background: var(--orange); }   /* the step that carries the most weight */
.steps b { font-size: 21px; font-weight: 800; font-variation-settings: "wdth" 80; }
.steps span { color: var(--ink-2); font-size: 16px; }
/* questions */
.faq { display: grid; max-width: 860px; }
.faq details { border-top: 2px solid var(--paper-3); }
.faq details:last-child { border-bottom: 2px solid var(--paper-3); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-size: 19px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 6px; border-top: 3px solid var(--orange); border-right: 3px solid var(--orange); transform: rotate(135deg); transition: transform var(--t) var(--ease); }
.faq details[open] summary::after { transform: rotate(-45deg); }
.faq p { padding: 0 0 22px; color: var(--ink-2); max-width: 60ch; }

/* ===== contact ===== */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 72px); align-items: start; padding-top: clamp(20px, 3vw, 40px); }
.contact .svc-head { padding-top: 0; position: sticky; top: calc(var(--bar) + 24px); }
.form { display: grid; gap: 18px; }
.form legend { font-weight: 700; margin-bottom: 10px; font-size: 17px; }
.kinds-pick { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kinds-pick legend { width: 100%; }
.kinds-pick label { position: relative; cursor: pointer; }
.kinds-pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.kinds-pick span { display: block; padding: 10px 16px; background: var(--paper-2); font-weight: 600; font-size: 15.5px; transition: background var(--t), color var(--t); }
.kinds-pick input:checked + span { background: var(--accent); color: var(--on-accent); }
.kinds-pick input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.field input, .field textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--paper-2); border: 0; border-bottom: 3px solid var(--paper-3); padding: 12px 14px; border-radius: 0; transition: border-color var(--t); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.form .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form .error { color: #c42b0a; font-weight: 600; }
.form .sent { font-weight: 700; }
@media (max-width: 900px) {
  .kinds { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { border-top: 0; border-right: 3px solid var(--ink); padding: 0 22px 22px; }
  .steps li::before { top: 4px; right: -7.5px; }
  .steps li.key::before { top: 0; right: -13.5px; }
  .contact, .row2 { grid-template-columns: 1fr; }
  .contact .svc-head { position: static; }
}
/* the digital service page wears blue */
.digital-page .svc-head .chip .dot, .digital-page .steps li.key::before { background: var(--blue); }
/* a project with no picture yet: a field of colour with its name */
.pic.tile { display: grid; place-items: center; padding: 20px; text-align: center; background: var(--orange); color: var(--on-orange); font-weight: 800; font-variation-settings: "wdth" 72; font-size: clamp(30px, 3vw, 42px); line-height: 1; }
.digital-page .pic.tile { background: var(--blue); color: var(--on-blue); }
/* after a page change the title takes focus for screen readers; it should not draw a frame */
h1[tabindex="-1"]:focus { outline: none; }
.contact .direct { font-weight: 600; line-height: 1.8; }
.contact .direct a { border-bottom: 2px solid var(--accent); }
/* a four-step process */
.steps.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps.steps-4 { grid-template-columns: 1fr; } }

/* ===== projects ===== */
.filter-row { display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: center; margin: 28px 0 22px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
/* a switch keeps its own colour even where the page sets the accent */
html[data-space="physical"] .space .pill { background: var(--orange); }
html[data-space="digital"] .space .pill { background: var(--blue); }
html[data-space="physical"] .space button[aria-pressed="true"] { color: var(--on-orange); }
html[data-space="digital"] .space button[aria-pressed="true"] { color: var(--on-blue); }

/* off the home page: the page decides the accent, and the header switch becomes a label */
html:has(main[data-here="physical"]) { --accent: var(--orange); --on-accent: var(--on-orange); }
html:has(main[data-here="digital"]) { --accent: var(--blue); --on-accent: var(--on-blue); }
html:has(main[data-here="both"]) { --accent: var(--ink); --on-accent: var(--paper); }
html:has(main[data-here="none"]) { --accent: var(--ink); --on-accent: var(--paper); }
.bar .space { overflow: hidden; }
.bar .space .here { display: none; position: relative; overflow: hidden; transition: background-color 480ms var(--ease), color 480ms var(--ease); height: 42px; padding: 0 16px; align-items: center; font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.bar .space .here > span { display: flex; align-items: center; gap: 8px; }
.bar .space .here > .ghost { position: absolute; inset: 0; padding: 0 16px; pointer-events: none; }
.here[data-for="physical"] { background: var(--orange); color: var(--on-orange); }
.here[data-for="digital"] { background: var(--blue); color: var(--on-blue); }
.here[data-for="both"] { background: var(--paper-2); color: var(--ink); }
html:has(main[data-here]) .bar .space { background: none; padding: 0; }
html:has(main[data-here="none"]) .bar .space { display: none; }
html:has(main[data-here]) .bar .space > button, html:has(main[data-here]) .bar .space > .pill { display: none; }
html:has(main[data-here]) .bar .space .here { display: flex; }
.filters button { padding: 10px 16px; background: var(--paper-2); font-weight: 600; font-size: 15.5px; color: var(--ink-2); transition: background var(--t), color var(--t); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 18px; }
.pgrid .card .pic { aspect-ratio: 4 / 3; }
.pgrid .card.big { grid-column: span 2; grid-row: span 2; }
.pgrid .card.big .pic { aspect-ratio: auto; height: 100%; min-height: 420px; }
.pgrid .card.off { display: none; }
.pic.tile.blue { background: var(--blue); color: var(--on-blue); }
.pic.tile.ink { background: var(--ink); color: var(--paper); }
.empty { color: var(--ink-2); padding: 24px 0; }
@media (max-width: 900px) {
  .pgrid { grid-template-columns: 1fr; }
  .pgrid .card.big { grid-column: auto; grid-row: auto; }
  .pgrid .card.big .pic { min-height: 0; aspect-ratio: 4 / 3; }
}

/* project page: tall photos, captions, outbound links */
.gallery figure.tall img { aspect-ratio: 3 / 4; }
.gallery figcaption { padding: 10px 14px 12px; font-size: 14px; color: var(--ink-2); }
.p-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.p-credit { font-size: 13px; color: var(--ink-2); }
.p-hero.tile { aspect-ratio: 16 / 6; font-size: clamp(40px, 6vw, 96px); }
.p-body.solo { grid-template-columns: minmax(0, 1fr); }

/* about */
.about-head { padding-top: 20px; display: grid; gap: 18px; max-width: 900px; }
.about-head h1 { font-size: clamp(88px, 15vw, 220px); font-variation-settings: "wdth" 70; line-height: .9; letter-spacing: -0.025em; }
.host { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.host .copy { display: grid; gap: 16px; max-width: 46ch; }
.host .copy p { font-size: clamp(18px, 1.6vw, 21px); }
.film { background: var(--paper-2); }
.film img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.film figcaption { padding: 10px 14px 12px; font-size: 14px; color: var(--ink-2); }
.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.more article { display: grid; gap: 12px; align-content: start; padding: 24px; background: var(--paper-2); }
.more h3 { font-size: 24px; font-weight: 800; font-variation-settings: "wdth" 76; }
.more .btn { justify-self: start; }
.more .film.small img { aspect-ratio: 4 / 3; }
@media (max-width: 1100px) { .more { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .host, .more { grid-template-columns: 1fr; } }

@media (max-width: 600px) { .kinds { grid-template-columns: 1fr; } .kinds li { min-height: 0; } }
.more-dj { background: var(--ink) !important; color: var(--paper); }
.dj-trigger { display: inline-flex; align-items: center; gap: 12px; font: inherit; color: inherit; cursor: pointer; }
.dj-trigger .vinyl { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, var(--lime) 0 3px, #0b0b0b 3.5px 7px, #2b2b2b 7.5px 8px, #0b0b0b 8.5px 11px, #2b2b2b 11.5px 12px, #0b0b0b 12.5px); background-image: conic-gradient(from 0deg, transparent 0 30deg, rgb(255 255 255 / .35) 50deg, transparent 70deg 210deg, rgb(255 255 255 / .2) 230deg, transparent 250deg), radial-gradient(circle, var(--lime) 0 3px, #0b0b0b 3.5px 7px, #2b2b2b 7.5px 8px, #0b0b0b 8.5px 11px, #2b2b2b 11.5px 12px, #0b0b0b 12.5px); }


/* hover only where there is a real pointer: on phones a tap would leave it stuck */
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
  .btn:hover .arrow { transform: translateX(-4px); }
  .nav a:hover { color: var(--ink); background: var(--paper-2); }
  .icon-btn:hover { background: var(--paper-2); }
  .stage .ctrl button:hover { background: var(--accent); color: var(--on-accent); }
  .sec-head a:hover { color: var(--accent); }
  .door li a:hover { padding-inline-start: 8px; }
  .door.p li a:hover { color: var(--orange); } .door.d li a:hover { color: var(--blue); }
  .door.p .use:hover { background: var(--orange); color: var(--on-orange); }
  .door.d .use:hover { background: var(--blue); color: var(--on-blue); }
  .card:hover .pic img { transform: scale(1.04); }
  .rail-nav button:hover { background: var(--accent); color: var(--on-accent); }
  footer .row a:hover { color: var(--ink); }
  .crumbs a:hover { color: var(--ink); }
  .next:hover { background: var(--accent); color: var(--on-accent); }
  .corner:hover::before, .corner:hover::after { opacity: 1; transform: none; }
  .card:hover .pic::before, .card:hover .pic::after { opacity: 1; transform: none; }
}
/* page changes: the page slides like an app screen, the bar and the tabs stay put */
/* only during a page change: a name makes main its own layer, which would trap the flying hero logo under the bar */
html.vt-fwd main, html.vt-back main { view-transition-name: page; }
.bar { view-transition-name: bar; }
.tabs { view-transition-name: tabs; }
::view-transition-group(bar), ::view-transition-group(tabs) { animation: none; }
::view-transition-old(bar), ::view-transition-old(tabs) { display: none; }
::view-transition-new(bar), ::view-transition-new(tabs) { animation: none; }
::view-transition-group(page) { animation: none; }
::view-transition-old(page) { animation: 200ms cubic-bezier(.4, 0, 1, 1) both page-out; }
::view-transition-new(page) { animation: 440ms cubic-bezier(.16, 1, .3, 1) both page-in; }
html.vt-fwd { --from: -56px; --to: 40px; }
html.vt-back { --from: 56px; --to: -40px; }
@keyframes page-out { to { opacity: 0; transform: translateX(var(--to, 0)); } }
@keyframes page-in { from { opacity: 0; transform: translateX(var(--from, 0)); } }
.path { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: p; }
.path li { display: grid; gap: 10px; align-content: start; padding: 24px; background: var(--paper-2); position: relative; }
.path li::before { content: ""; position: absolute; top: 0; right: 0; width: 18px; height: 18px; border-top: 3px solid var(--orange); border-right: 3px solid var(--orange); }
.path li:last-child::before { border-color: var(--blue); }
.path .when { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.path b { font-size: 24px; font-weight: 800; font-variation-settings: "wdth" 76; line-height: 1.1; }
.path p { color: var(--ink-2); }
@media (max-width: 900px) { .path { grid-template-columns: 1fr; } }
.film-open { display: block; width: 100%; padding: 0; cursor: zoom-in; position: relative; }
.dj-trigger .vinyl { animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* English page: left to right inside the Hebrew shell */
.en .about-head .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.en-work { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--paper-3); }
.en-work a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 8px 24px; padding: 20px 4px; border-bottom: 1px solid var(--paper-3); }
.en-work b { font-size: clamp(20px, 2vw, 26px); font-weight: 800; font-variation-settings: "wdth" 80; }
.en-work span { color: var(--ink-2); }
.en-note { margin-top: 18px; color: var(--ink-2); font-size: 15px; }
@media (hover: hover) { .en-work a:hover b { color: var(--accent); } }
@media (max-width: 700px) { .en-work a { grid-template-columns: 1fr; } }

/* "active now": a project that is running as we speak */
.live { display: inline-flex; align-items: center; gap: 7px; vertical-align: middle; padding: 6px 11px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 700; letter-spacing: 0; line-height: 1; font-variation-settings: "wdth" 100; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgb(61 220 132 / .6); animation: live 1.8s ease-out infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgb(61 220 132 / 0); } 100% { box-shadow: 0 0 0 0 rgb(61 220 132 / 0); } }
.p-head h1 .live { font-size: 14px; margin-inline-start: 10px; position: relative; top: -.6em; }
.card .pic .live { position: absolute; top: 12px; left: 12px; z-index: 2; }

/* credits: who took the photo, with a link to them */
.p-hero { position: relative; }
.p-hero figcaption { position: absolute; left: 0; bottom: 0; padding: 6px 10px; background: rgb(0 0 0 / .55); color: #fff; font-size: 12.5px; }
.p-hero figcaption a, .gallery .credit a, .viewer .credit a { text-decoration: underline; text-underline-offset: 2px; }
.gallery .credit { color: var(--ink-2); }
.gallery figure.logo { background: #fff; display: grid; place-items: center; padding: 24px; }
.gallery figure.logo img { aspect-ratio: auto; object-fit: contain; max-height: 220px; width: auto; }
.copy a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.facts dd a { text-decoration: underline; text-underline-offset: 3px; }

/* project photos open full screen, and you can swipe between them */
.p-hero img, .gallery img { cursor: zoom-in; }
.viewer { position: fixed; inset: 0; z-index: 90; background: rgb(14 14 14 / .96); display: grid; align-items: center; }
.viewer[hidden] { display: none; }
.viewer .row { display: flex; align-items: center; gap: 6vw; overflow-x: auto; scroll-snap-type: x mandatory; padding: 56px 8vw 72px; scrollbar-width: none; overscroll-behavior-x: contain; }
.viewer .row::-webkit-scrollbar { display: none; }
.viewer figure { flex: none; scroll-snap-align: center; max-width: 84vw; display: grid; gap: 10px; justify-items: center; }
.viewer img { max-width: 100%; max-height: calc(100svh - 170px); width: auto; height: auto; display: block; }
.viewer figcaption { color: #d8d8d2; font-size: 14px; text-align: center; max-width: 60ch; }
.viewer .x { position: absolute; top: 12px; left: 14px; z-index: 1; width: 44px; height: 44px; color: #fff; font-size: 30px; }
.viewer .n { position: absolute; top: 22px; right: 18px; color: #d8d8d2; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.viewer .go { position: absolute; top: 50%; translate: 0 -50%; z-index: 1; width: 48px; height: 48px; background: rgb(255 255 255 / .1); color: #fff; font-size: 22px; }
.viewer .go.prev { right: 12px; } .viewer .go.next { left: 12px; }
@media (max-width: 700px) { .viewer .go { display: none; } .viewer .row { padding: 56px 4vw 72px; gap: 4vw; } .viewer figure { max-width: 92vw; } }
html.viewer-open, html.viewer-open body { overflow: hidden; }

/* legal pages: privacy and accessibility */
.legal { max-width: 760px; padding-top: 20px; display: grid; gap: 14px; }
.legal h1 { font-size: clamp(44px, 7vw, 88px); font-variation-settings: "wdth" 70; line-height: .95; }
.legal h2 { font-size: 24px; font-weight: 800; margin-top: 18px; }
.legal ul { padding-inline-start: 22px; display: grid; gap: 8px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal .updated { color: var(--ink-2); font-size: 14px; }
.legal-contact { margin: 6px 0; }

/* accessibility menu */
.a11y-btn { position: fixed; z-index: 80; left: 16px; bottom: 16px; width: 48px; height: 48px; display: grid; place-items: center; background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgb(0 0 0 / .2); }
.a11y-btn svg { width: 26px; height: 26px; }
.a11y { position: fixed; z-index: 81; left: 16px; bottom: 74px; width: min(340px, calc(100vw - 32px)); max-height: calc(100svh - 120px); overflow-y: auto; background: var(--paper); color: var(--ink); box-shadow: 0 18px 50px rgb(0 0 0 / .25), 0 0 0 1px var(--paper-3); padding: 16px; display: grid; gap: 14px; }
.a11y[hidden] { display: none; }
.a11y-head { display: flex; justify-content: space-between; align-items: center; }
.a11y-head b { font-size: 20px; font-weight: 800; }
.a11y-head button { width: 36px; height: 36px; font-size: 24px; }
.a11y-size { display: flex; align-items: center; gap: 8px; }
.a11y-size span { flex: 1; font-weight: 600; }
.a11y-size button { width: 44px; height: 40px; background: var(--paper-2); font-weight: 800; }
.a11y-size output { min-width: 48px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.a11y-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-opts button { min-height: 48px; padding: 8px 10px; background: var(--paper-2); font-weight: 600; font-size: 14.5px; text-align: start; }
.a11y-opts button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.a11y-foot { display: flex; justify-content: space-between; align-items: center; font-size: 14.5px; }
.a11y-foot button { padding: 8px 14px; background: var(--paper-2); font-weight: 700; }
.a11y-foot a { text-decoration: underline; }
@media (max-width: 1180px) { .a11y-btn { bottom: calc(84px + env(safe-area-inset-bottom)); width: 44px; height: 44px; } .a11y { bottom: calc(136px + env(safe-area-inset-bottom)); } }

/* the settings themselves */
html.a11y-zoom main, html.a11y-zoom footer { zoom: var(--a11y-zoom); }
html.a11y-contrast { --paper: #000; --paper-2: #111; --paper-3: #fff; --ink: #fff; --ink-2: #fff; --accent: #ffeb3b; --on-accent: #000; --orange: #ffeb3b; --blue: #4dd0ff; --on-orange: #000; --on-blue: #000; }
html.a11y-contrast .card, html.a11y-contrast .kinds li, html.a11y-contrast .path li, html.a11y-contrast .more article { box-shadow: inset 0 0 0 1px #fff; }
html.a11y-mono main, html.a11y-mono .bar, html.a11y-mono footer, html.a11y-mono .tabs { filter: grayscale(1); }
html.a11y-links main a, html.a11y-links footer a, html.a11y-links .bar a { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px solid var(--accent); outline-offset: 2px; }
html.a11y-font body, html.a11y-font body * { font-family: Arial, "Noto Sans Hebrew", sans-serif !important; font-variation-settings: normal !important; letter-spacing: normal !important; }
html.a11y-spacing main p, html.a11y-spacing main li, html.a11y-spacing main dd { line-height: 1.95 !important; word-spacing: .12em; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-focus *:focus { outline: 4px solid #ffeb3b !important; outline-offset: 2px !important; box-shadow: 0 0 0 7px #000 !important; }
