/* r6 — shared base + header (picked: alt/header/c "מגירה עם תמונות").
   Each page adds its own sheet: home.css, works.css, work.css */
/* fonts (audit 23.10, finding 1): all three on our own server, preloaded by each page; "fallback" waits a moment for the font
   instead of drawing another one first, and if it is still late the stand-in is Arial scaled to the same width (measured), so
   a late swap moves nothing. Inter Tight is one variable file (400-700), Latin only; Hebrew is Narkis */
@font-face { font-family: "DB"; src: url("../shared/NarkisBlock-Regular.woff2") format("woff2"); font-weight: 400; font-display: fallback; unicode-range: U+0590-05FF, U+FB1D-FB4F, U+20AA; }
@font-face { font-family: "DB"; src: url("../shared/NarkisBlock-Bold.woff2") format("woff2"); font-weight: 700; font-display: fallback; unicode-range: U+0590-05FF, U+FB1D-FB4F, U+20AA; }
@font-face { font-family: "Inter Tight"; src: url("../shared/InterTight-latin.woff2") format("woff2"); font-weight: 400 700; font-display: fallback; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DB-fb"; src: local("Arial"); font-weight: 400; size-adjust: 102%; unicode-range: U+0590-05FF, U+FB1D-FB4F, U+20AA; }
@font-face { font-family: "DB-fb"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 700; size-adjust: 104.2%; unicode-range: U+0590-05FF, U+FB1D-FB4F, U+20AA; }
@font-face { font-family: "IT-fb"; src: local("Arial"); font-weight: 400 500; size-adjust: 95.9%; }
@font-face { font-family: "IT-fb"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 700; size-adjust: 95.7%; }
:root { --bg: #f1efeb; --ink: #0d0d0d; --mute: #5f5b55; --line: #d6d2ca; --x: 32px; --r: 6px; --head: 88px; --ease: cubic-bezier(.2, .7, .1, 1); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.5 "DB", "DB-fb", "Inter Tight", "IT-fb", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video { display: block; }
ul, ol { list-style: none; }
button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; }
[lang="en"] { font-family: "Inter Tight", "IT-fb", system-ui, sans-serif; }
.pad { padding-inline: var(--x); }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
/* the dark pills ("דברו איתי", the 404's first button, previous/next): their ring stands on the beige outside them, so it is ink,
   not their beige text, which vanished there (a11y audit 24.10) */
.cta:focus-visible, .skip:focus-visible, .wk .pill:focus-visible, .nf .go a:focus-visible { outline-color: var(--ink); }

/* the single work page is dark (alt/work/a); the header follows it */
body.dark { --bg: #0b0b0b; --ink: #f1efeb; --mute: #8b877f; --line: #262523; }

/* ===== header: name, one button to write, one to open ===== */
.top { position: fixed; z-index: 30; top: 0; right: 0; left: 0; height: var(--head); display: flex; justify-content: space-between; align-items: center; padding-inline: var(--x);
  border-radius: 0; border: 1px solid transparent; transition: top .5s var(--ease), right .5s var(--ease), left .5s var(--ease), height .5s var(--ease), padding .5s var(--ease), border-radius .5s var(--ease), background-color .4s, border-color .4s, box-shadow .4s; }
/* the logo is drawn inline in the page's ink colour (dark on light, light on the dark work page): one small file, no hidden twin */
.top .logo { color: var(--ink); }
.top .logo .lg { display: block; height: 30px; width: auto; transition: height .5s var(--ease); }
.acts { display: flex; align-items: center; gap: 10px; }
.cta { display: flex; align-items: center; height: 40px; padding-inline: 18px; border-radius: 40px; background: var(--ink); color: var(--bg); font-size: 15px; transition: background-color .25s, color .25s; }
@media (hover: hover) { .cta:hover { background: #2a2826; } }
@media (hover: hover) { .dark .cta:hover { background: #fff; } }
.burger { display: flex; align-items: center; gap: 12px; height: 40px; padding-inline: 16px 14px; border-radius: 40px; border: 1px solid var(--line); font-size: 15px; transition: border-color .25s, background-color .25s; }
.dark .burger { border-color: #3a3936; }
@media (hover: hover) { .burger:hover, .dark .burger:hover { border-color: var(--ink); } }
.burger .w { position: relative; display: block; height: 1.5em; overflow: hidden; }
.burger .w span { display: block; transition: transform .45s var(--ease); }
.burger i { position: relative; width: 16px; height: 10px; }
.burger i::before, .burger i::after { content: ""; position: absolute; right: 0; left: 0; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger i::before { top: 1px; } .burger i::after { top: 7.5px; }
.open .burger .w span { transform: translateY(-100%); }
.open .burger i::before { top: 4.25px; transform: rotate(45deg); }
.open .burger i::after { top: 4.25px; transform: rotate(-45deg); }
/* scrolled: the bar gathers into a small floating frame */
.top.float { top: 12px; right: 12px; left: 12px; height: 60px; padding-inline: 20px 10px; border-radius: 14px; background: rgba(241, 239, 235, .88); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-color: rgba(214, 210, 202, .9); box-shadow: 0 12px 34px -18px rgba(0, 0, 0, .28); }
.dark .top.float, .top.float.ink { background: rgba(11, 11, 11, .84); border-color: rgba(58, 57, 54, .9); box-shadow: 0 12px 34px -18px rgba(0, 0, 0, .8); }
/* over the black "דברו איתי" at the foot of every page the floating bar turns dark with it, the strip above it too (his note 24.10) */
.top.float.ink { --bg: #0b0b0b; --ink: #f1efeb; --mute: #8b877f; --line: #3a3936; color: var(--ink); }
body:not(.dark).open .top.float.ink { --bg: #f1efeb; --ink: #0d0d0d; --mute: #5f5b55; --line: #d6d2ca; background: var(--bg); border-color: transparent; box-shadow: none; }
@media (hover: hover) { .top.ink .cta:hover { background: #fff; } }
.top.float .logo .lg { height: 24px; }
.top.float .cta, .top.float .burger { height: 38px; }
.open .top.float { background: var(--bg); box-shadow: none; }
.spacer { height: var(--head); }

/* ===== the drawer ===== */
.scrim { position: fixed; inset: 0; z-index: 20; background: rgba(13, 13, 13, .32); opacity: 0; pointer-events: none; transition: opacity .45s; }
.dark .scrim { background: rgba(0, 0, 0, .6); }
.drawer { position: fixed; z-index: 25; top: 0; right: 0; left: 0; background: var(--bg); padding: calc(var(--head) + 36px) var(--x) 36px; border-radius: 0 0 18px 18px;
  transform: translateY(-102%); transition: transform .7s var(--ease), box-shadow .7s; }
.open .drawer { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); }
.drawer .in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: stretch; }
.drawer ul { display: flex; flex-direction: column; justify-content: center; }
.drawer li { overflow: hidden; }
.drawer li a { display: flex; align-items: center; gap: 18px; font-weight: 700; font-size: clamp(44px, 5.4vw, 84px); line-height: 1.08; color: var(--ink); transform: translateY(100%); transition: transform .8s var(--ease), color .3s; }
.drawer ul a { color: #8a857c; }
.dark .drawer ul a { color: #6f6b65; }
.drawer ul a:hover, .drawer ul a.hot, .drawer ul a:focus-visible, .dark .drawer ul a:hover, .dark .drawer ul a.hot, .dark .drawer ul a:focus-visible { color: var(--ink); }
.drawer ul a:focus-visible { outline: 0; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .14em; }
.drawer li a .th { display: none; }
.drawer .pv { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #dcd8d1; align-self: center; }
.dark .drawer .pv { background: #1b1b1a; }
.drawer .pv > * { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(1.04); transition: opacity .55s, transform 1.2s var(--ease); }
.drawer .pv > .on { opacity: 1; transform: none; }
.drawer .pv img { object-fit: cover; }
.drawer .pv img.gray { filter: grayscale(1); object-position: 50% 28%; }
.drawer .pv .card { background: var(--ink); color: var(--bg); display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 32px; }
.drawer .pv .card a { font-size: clamp(22px, 2.2vw, 34px); line-height: 1.15; letter-spacing: -.01em; text-align: right; }
.drawer .pv .card a + a { opacity: .6; font-size: 18px; }
.drawer .pv figcaption { position: absolute; inset: auto 0 0 0; height: auto; top: auto; padding: 44px 20px 16px; color: #fff; font-size: 15px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); transform: none; }
.drawer .pv figure { margin: 0; }
.drawer .pv figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drawer .foot { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; opacity: 0; transition: opacity .4s; }
.drawer .foot a { color: var(--mute); transition: color .2s; }
.drawer .foot a:hover, .drawer .foot a:focus-visible { color: var(--ink); }
.open .scrim { opacity: 1; pointer-events: auto; }
.open .drawer { transform: none; }
.open .drawer li a { transform: none; }
.open .drawer li:nth-child(1) a { transition-delay: .12s, 0s; } .open .drawer li:nth-child(2) a { transition-delay: .17s, 0s; }
.open .drawer li:nth-child(3) a { transition-delay: .22s, 0s; } .open .drawer li:nth-child(4) a { transition-delay: .27s, 0s; }
.open .drawer li:nth-child(5) a { transition-delay: .32s, 0s; }
.open .drawer .foot { opacity: 1; transition-delay: .35s; }
/* the page behind the open menu does not scroll (header.js sets the class; scrollbar-gutter keeps the width) (audit 10, C7) */
html.menu-open { overflow: hidden; }

@media (max-width: 760px) {
  :root { --x: 16px; --head: 60px; }
  .top .logo .lg { height: 21px; }
  .top.float { top: 8px; right: 8px; left: 8px; height: 52px; padding-inline: 14px 7px; border-radius: 12px; }
  .top.float .logo .lg { height: 19px; }
  .acts { gap: 6px; }
  .cta { height: 36px; padding-inline: 14px; font-size: 14px; }
  .burger { height: 36px; padding-inline: 12px; font-size: 14px; gap: 10px; }
  .top.float .cta, .top.float .burger { height: 36px; }
  .drawer { bottom: 0; border-radius: 0; padding: calc(var(--head) + 20px) var(--x) calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
  .drawer .in { display: flex; flex-direction: column; flex: 1; }
  .drawer .pv { display: none; }
  .drawer ul { flex: 1; justify-content: flex-start; }
  .drawer li { border-bottom: 1px solid var(--line); }
  .drawer li a { justify-content: space-between; font-size: 34px; padding-block: 12px; }
  .drawer ul a, .dark .drawer ul a { color: var(--ink); }
  .drawer li a .th { display: block; width: 72px; height: 54px; border-radius: 6px; object-fit: cover; flex: none; background: #dcd8d1; }
  .drawer li a .th.gray { filter: grayscale(1); object-position: 50% 28%; }
  .drawer li a .th.ink { background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 500 26px/1 "Inter Tight", "IT-fb", sans-serif; }
  .drawer .foot { margin-top: 24px; gap: 8px 20px; }
}
@media (prefers-reduced-motion: reduce) { .top, .drawer, .drawer li a { transition: none; } }

/* ===== the menu (his pick 22.10, option b "הצצה פנימה"): the pane shows a small copy of what each section holds (header.js) ===== */
.drawer.m-b { --tile: #e5e1da; --tile2: #d9d5cd; --soft: #8a857c; }
.dark .drawer.m-b { --tile: #171716; --tile2: #222120; --soft: #6f6b65; }
.drawer .sep { color: var(--soft); }
.drawer .ar { font: 400 .5em/1 "Inter Tight", "IT-fb", system-ui, sans-serif; font-style: normal; }

/* b — a real look inside: the pane shows a small copy of what each section holds */
.drawer.m-b .in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
.drawer.m-b li a { font-size: clamp(44px, 4.9vw, 78px); }
.drawer.m-b li a .mini { display: none; }
.drawer.m-b .pv { aspect-ratio: 3 / 2; width: min(100%, 900px, (100vh - 330px) * 1.5); justify-self: end; background: var(--tile); border-radius: 14px; }
.drawer.m-b .pv > * { display: flex; flex-direction: column; }
.drawer.m-b .k { font-size: 14px; color: var(--mute); }
/* works: nine films playing, the count under them */
.drawer.m-b .pw { padding: 10px; gap: 10px; }
.drawer.m-b .mo { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 6px; min-height: 0; }
.drawer.m-b .tl { position: relative; overflow: hidden; border-radius: 6px; background: var(--tile2); }
.drawer.m-b .tl video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drawer.m-b .bar { display: flex; align-items: baseline; gap: 14px; padding: 2px 8px 6px; font-size: 15px; color: var(--mute); }
.drawer.m-b .bar b { color: var(--ink); font-weight: 700; }
.drawer.m-b .bar .go { margin-inline-start: auto; color: var(--ink); }
.drawer.m-b .bar .ar { font-size: 15px; }
/* about: the wink, and the first sentence of the about text */
.drawer.m-b .pa { flex-direction: row; }
.drawer.m-b .pa .ph { width: 42%; height: 100%; object-fit: cover; object-position: 50% 30%; flex: none; }
.drawer.m-b .pa .tx { flex: 1; display: flex; flex-direction: column; padding: 30px 30px 28px; gap: 10px; }
.drawer.m-b .pa .q { font-weight: 700; font-size: clamp(20px, 1.75vw, 28px); line-height: 1.28; margin-bottom: auto; }
.drawer.m-b .pa .m { font-size: 15px; line-height: 1.4; color: var(--mute); padding-top: 10px; border-top: 1px solid var(--line); }
.drawer.m-b .pa .m + .m { border-top: 0; padding-top: 0; }
/* awards: the medal count and the festivals, line by line */
.drawer.m-b .pr { padding: 26px 30px 22px; justify-content: space-between; }
.drawer.m-b .pr .tp { display: flex; align-items: center; gap: 16px; }
.drawer.m-b .pr .tp b { font: 500 clamp(56px, 5vw, 84px)/.9 "Inter Tight", "IT-fb", sans-serif; letter-spacing: -.04em; }
.drawer.m-b .pr .tp span { font-size: 16px; line-height: 1.3; color: var(--mute); }
.drawer.m-b .pr .tp .ty { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); }
.drawer.m-b .pr .ty i { width: 10px; height: 10px; border-radius: 50%; margin-inline-start: 10px; }
.drawer.m-b .pr .ty i:first-child { margin-inline-start: 0; }
.drawer .gold { --medal: #d2ab52; } .drawer .silver { --medal: #c3c5c7; } .drawer .bronze { --medal: #bd855a; }
.drawer.m-b .pr .ty i { background: var(--medal); }
.drawer.m-b .fl > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 5px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.35; }
.drawer.m-b .fl > div span + span { color: var(--mute); text-align: left; }
/* press: the three latest headlines */
.drawer.m-b .pp { padding: 22px 26px; gap: 11px; justify-content: center; }
.drawer.m-b .pp .k { margin-bottom: 1px; }
.drawer.m-b .hl { display: flex; gap: 16px; align-items: center; padding-top: 11px; border-top: 1px solid var(--line); }
.drawer.m-b .pv .hl img { position: static; width: 22%; aspect-ratio: 16 / 10; height: auto; flex: none; border-radius: 6px; object-fit: cover; opacity: 1; transform: none; background: var(--tile2); }
.drawer.m-b .hl div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.drawer.m-b .hl .h { font-weight: 700; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drawer.m-b .hl .h[lang="en"] { font-weight: 500; text-align: right; }
.drawer.m-b .hl .s { font-size: 13px; color: var(--mute); }
/* contact: the card, his face small in the corner */
.drawer.m-b .pv .card { justify-content: space-between; padding: 30px 32px; }
.drawer.m-b .pv .card > div { display: flex; flex-direction: column; gap: 6px; }
.drawer.m-b .pv .card .cr { flex-direction: row; align-items: center; gap: 12px; }
.drawer.m-b .pv .card .me { position: static; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; opacity: 1; transform: none; }
.drawer.m-b .pv .card .k { color: inherit; opacity: .6; font-size: 15px; }
.drawer.m-b .pv .card a { font-size: clamp(26px, 2.6vw, 40px); }
.drawer.m-b .pv .card a + a { font-size: 20px; }
.drawer.m-b .pv .card .ln { font-size: 15px; opacity: .6; }
.drawer.m-b .pv .card .sep { color: inherit; }

@media (max-width: 760px) {
  /* b on a phone: each word is a card with its own small look inside, scrolling when the screen is short */
  .drawer.m-b .in { min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-inline: -4px; padding-inline: 4px; }
  .drawer.m-b ul { gap: 7px; flex: none; }
  .drawer.m-b li { border-bottom: 0; border-radius: 14px; }
  .drawer.m-b li a { display: block; padding: 11px 14px 13px; border-radius: 14px; background: var(--tile); font-size: 25px; line-height: 1.15; }
  .drawer.m-b ul a:focus-visible { text-decoration: none; outline: 2px solid var(--ink); outline-offset: 2px; }
  .drawer.m-b li a .mini { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; font-size: 14px; line-height: 1.4; font-weight: 400; color: var(--mute); }
  .drawer.m-b .mini b { font-weight: 700; color: var(--ink); font-size: 15px; }
  .drawer.m-b .mini .mt { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .drawer.m-b .mr .mt { -webkit-line-clamp: 2; }
  .drawer.m-b .ms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 6px; }
  .drawer.m-b .ms img { width: 100%; aspect-ratio: 16 / 9; border-radius: 5px; object-fit: cover; background: var(--tile2); }
  .drawer.m-b .mr { display: flex; align-items: center; gap: 12px; }
  .drawer.m-b .mini .me { width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 25%; background: var(--tile2); }
  .drawer.m-b li:last-child a { background: var(--ink); color: var(--bg); }
  .drawer.m-b li:last-child .mini, .drawer.m-b li:last-child .sep { color: inherit; }
  .drawer.m-b li:last-child .mini .mt + .mt { opacity: .6; }
  .drawer.m-b li:last-child .mini .mt:first-child { font-size: 18px; }
  .drawer.m-b .foot { margin-top: 20px; }
}

/* print works as hard-cut slideshows of their own images (slides.js) */
.slides { position: absolute; inset: 0; display: block; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; visibility: hidden; }
.slides img.on { visibility: visible; }

/* round 7, mobile audit 2 (approved 21.10): bigger tap areas */
@media (max-width:760px){.cta,.burger,.end .copy{position:relative}.cta::after,.burger::after,.end .copy::after{content:'';position:absolute;inset:-4px -3px}.wk .after a{padding-block:11px}.drawer .foot a{padding-block:10px}}

/* audit 3 (approved 21.10) */
/* a hidden "skip the wall" link, shown on the first Tab */
.skip:focus { position: fixed !important; width: auto; height: auto; margin: 0; clip: auto; overflow: visible; z-index: 40; top: 12px; right: 12px; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 40px; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .top, .drawer, .scrim, .spacer, .hero, .aw-float, .skip, .wk .play, .wk .next, .wk .after, .wk .more, .lb, video, .end .copy, .wl .zoom, .mpause { display: none !important; }
  html, body, body.dark { background: #fff !important; color: #000 !important; --bg: #fff; --ink: #000; --mute: #555; --line: #ccc; }
  .end { background: #fff !important; color: #000 !important; margin-top: 24px; }
  .end h2, .end .sub, .end footer { color: #000 !important; }
  .wk .reveal, .clients [data-rv] { opacity: 1 !important; transform: none !important; }
  .wk .screen { background: none !important; }
  .about .panel { break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10px; }
  .press a[href^="http"]::after { content: none; }
}

/* round 12 (21.10): who he is, one small grey line next to the logo */
.top .role { margin-inline: 22px auto; font-size: 15px; color: var(--mute); white-space: nowrap; }
@media (max-width:760px) { .top .logo { transform: translateY(-8px); } .top .role { position: absolute; right: var(--x); top: 36px; margin: 0; font-size: 12px; } .top.float .logo { transform: none; } .top.float .role { display: none; } }

/* the page width since 22.10 (audit 4): every page takes the home hero's width; header.js works it out and sets --x on <html>.
   --x0 is the narrowest margin, --hh the hero's height: one screen under the header, never lower than --hmin (below that the
   hero is taller than the screen and scrolls, audit 4 T5), --hg the gap between its works */
:root { --x0: 32px; --hg: 6px; --hmin: 520px; --hh: max(var(--hmin), calc(100vh - var(--head))); }
@supports (height: 100svh) { :root { --hh: max(var(--hmin), calc(100svh - var(--head))); } }
/* phones: room between the grey role line under the logo and the first row of works (audit 4): a taller bar, the logo as high as before */
@media (max-width: 760px) { :root { --x0: 16px; --hg: 4px; --hmin: 460px; --head: 66px; } .top .logo { transform: translateY(-11px); } }
/* the same width on every page: the scrollbar's place is kept on a short page too (audit 4, T7) */
html { scrollbar-gutter: stable; }
/* the logo and the buttons stand exactly on the page edge: the header's 1px border comes off its padding (audit 4, T14) */
.top { padding-inline: calc(var(--x) - 1px); }
@media (max-width: 760px) { .top .role { right: calc(var(--x) - 1px); } }
/* the floating header keeps to the same page width, its logo and buttons over the hero's edges */
.fitpage .top.float { right: max(12px, calc(var(--x) - 21px)); left: max(12px, calc(var(--x) - 11px)); }
@media (max-width: 760px) { .fitpage .top.float { right: max(8px, calc(var(--x) - 15px)); left: max(8px, calc(var(--x) - 8px)); } }
/* no sideways slide of the header on load (audit 4, T2): the script in each page's <head> sets the width saved at this window
   size before the first paint; a first visit (nothing saved yet) shows the page once header.js has set it, after 1.5s at the latest */
html.fitload .top { transition: none; }
/* the smallest phones (320): with the hero's margin the bar is a little narrower, so the buttons stay on one line */
.cta, .burger { white-space: nowrap; }
@media (max-width: 360px) { .top .logo .lg { height: 18px; } .cta { padding-inline: 11px; } .burger { padding-inline: 10px 9px; gap: 8px; } .acts { gap: 5px; } .top .role { font-size: 11px; } }
html.fitwait body > *:not(#intro) { animation: r6-show 0s 1.5s both; }
@keyframes r6-show { from { visibility: hidden; } to { visibility: visible; } }

/* the menu's previews are pictures only (his note 22.10): the about pane is the wink alone, awards and press are picture grids */
.drawer.m-b .pa .ph { width: 100%; }
.drawer.m-b .mo.c3r2 { grid-template-rows: repeat(2, 1fr); }
.drawer.m-b .mo .tl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drawer.m-b .pw .mo { padding: 0; }
.drawer.m-b .pv .card { justify-content: flex-end; }

/* ===== contact + footer: the dark "דברו איתי" curtain ends every page of the site (his note 23.10), moved here from home.css ===== */
.end { margin-top: var(--sec, clamp(72px, calc((100vw - 2 * var(--x)) * .1), 150px)); background: var(--ink); color: var(--bg); border-radius: 22px 22px 0 0; padding-top: 72px; overflow: hidden; }
.end .hd { display: flex; justify-content: space-between; align-items: center; }
.end .hd { align-items: flex-end; gap: 20px; }
.end h2 { font-weight: 700; font-size: clamp(30px, 3vw, 46px); line-height: 1; color: var(--bg); }
.end .sub { margin-top: 12px; font-size: 17px; color: rgba(241, 239, 235, .6); }
.end .copy { height: 34px; padding-inline: 16px; border-radius: 34px; border: 1px solid rgba(241, 239, 235, .3); font-size: 14px; color: rgba(241, 239, 235, .8); transition: border-color .25s, background-color .25s, color .25s; }
@media (hover: hover) { .end .copy:hover { border-color: var(--bg); color: var(--bg); } }
.end .copy.done { background: var(--bg); color: var(--ink); border-color: var(--bg); }
/* the address, set exactly to the width of the page */
.end .big { display: block; margin-top: 28px; padding-bottom: 8px; }
.end .big span { display: inline-block; white-space: nowrap; font-weight: 500; letter-spacing: -.045em; line-height: 1; font-size: 120px; position: relative; transition: opacity .3s; }
.end .big span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.06em; height: max(2px, .025em); background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.end .big:hover span::after { transform: scaleX(1); }
.end .lines { margin-top: 72px; }
.end .lines li { border-top: 1px solid rgba(241, 239, 235, .16); }
.end .lines li:last-child { border-bottom: 1px solid rgba(241, 239, 235, .16); }
/* the hover fill stops just past the page width, not at the screen edges (his note 22.10) */
.end .lines a { position: relative; isolation: isolate; display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-inline: calc(-1 * min(20px, var(--x))); padding: 24px min(20px, var(--x)); transition: color .45s var(--ease); }
.end .lines a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
@media (hover: hover) { .end .lines a:hover { color: var(--ink); } }
@media (hover: hover) { .end .lines a:hover::before { transform: none; } }
.end .lines .v { font-size: clamp(26px, 3vw, 46px); line-height: 1.1; transition: transform .5s var(--ease); }
.end .lines .v[lang="en"] { font-weight: 400; letter-spacing: -.015em; }
@media (hover: hover) { .end .lines a:hover .v { transform: translateX(-14px); } }
.end .lines .arr { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; opacity: .7; transition: transform .5s var(--ease), opacity .3s; }
@media (hover: hover) { .end .lines a:hover .arr { transform: rotate(45deg); opacity: 1; } }
.end .lines .arr svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.end footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 120px 30px; font-size: 13px; color: rgba(241, 239, 235, .5); }
.end footer .lg { display: block; height: 22px; width: auto; color: #f1efeb; opacity: .9; }
.end footer .meta { display: flex; gap: 28px; }
@media (prefers-reduced-motion: reduce) { .end .lines a::before, .end .lines .v, .end .lines .arr, .end .big span::after { transition: none; } }
@media (max-width: 760px) {
  .end { border-radius: 16px 16px 0 0; padding-top: 44px; }
  .end .copy { height: 32px; padding-inline: 12px; font-size: 13px; }
  .end .big { margin-top: 20px; }
  .end .lines { margin-top: 44px; }
  .end .lines a { padding-block: 18px; }
  .end .lines .v { font-size: 24px; }
  .end .lines .arr { width: 38px; height: 38px; }
  .end footer { padding-block: 80px 24px; flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* B3: "דברו איתי" stops below the floating header, the dark curtain's round corners in view */
@media (min-width: 761px) { #contact { scroll-margin-top: 84px; } }
/* a phone stops it under the floating header too: 8px top + 52px header + 8px (mobile audit 25.10) */
@media (max-width: 760px) { #contact { scroll-margin-top: 68px; } }
/* the smallest phones (320): the three items of the footer line stay whole and fit one line (mobile audit 25.10) */
@media (max-width: 760px) { .end footer .meta { flex-wrap: wrap; gap: 8px 20px; } .end footer .meta > * { white-space: nowrap; } }

/* B6: touch screens, the big address is plainly a link (a faint line always under it), and the copy button is a finger's height */
@media (hover: none) {
  .end .big span::after { transform: scaleX(1); opacity: .35; transition: none; }
  .end .copy { height: 44px; padding-inline: 18px; font-size: 14px; }
  .end .copy::after { inset: 0; }
}

/* page to page (audit 23.10, finding 2): the browser fades the old page into the new one instead of blanking the screen
   (Chrome, Edge, Safari 18.2+; others simply change page as before). Short, and off for reduced motion */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* the first-visit opening (intro.js, his idea 23.10): black with the logo in white, then the black slides away, the logo
   darkens and flies to the header, and the page appears at once. Only while html has the class "intro" */
#intro { display: none; }
html.intro #intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; color: #f1efeb; background: var(--bg); transition: background-color .35s; }
html.intro #intro::before { content: ""; position: absolute; inset: 0; background: #0d0d0d; transition: transform .65s cubic-bezier(.7, 0, .2, 1); }
#intro svg { position: relative; width: min(58vw, 460px); height: auto; transform-origin: center; transition: transform .62s cubic-bezier(.6, 0, .15, 1), color .45s .15s; }
html.intro #intro.open::before { transform: translateY(-100%); }
html.intro #intro.open svg { color: var(--ink); }
/* the page itself is never touched: a beige layer covers it under the black, and fades away at the end */
html.intro #intro.out { background-color: transparent; pointer-events: none; }

/* the strip above the floating header (his note 23.10, the whole site): the page that scrolls up behind the header is never seen
   in the gap over it; a band in the page colour covers the top of the screen down to the header's top edge */
body:has(.top.float)::before { content: ""; position: fixed; z-index: 29; top: 0; left: 0; right: 0; height: 12px; background: var(--bg); pointer-events: none; transition: background-color .3s; }
body:has(.top.float.ink)::before { background: #0b0b0b; }
@media (max-width: 760px) { body:has(.top.float)::before { height: 8px; } }

/* touch (final audit, mobile 24.10): the hover looks above only answer a real mouse, so a tapped line or button never stays lit
   when the visitor comes back from WhatsApp or the phone app; a finger gets a short fill while it presses instead */
@media (hover: none) {
  .end .lines a:active { color: var(--ink); }
  .end .lines a:active::before { transform: none; transition-duration: .12s; }
  .cta:active { background: #2a2826; } .dark .cta:active { background: #fff; }
}

/* phones turned sideways and other short screens (final audit, mobile 24.10): the bar is lower, so the works show under it,
   and the menu is a plain list that fits the screen (and scrolls if it must) - its last words and links were cut off below */
@media (min-width: 761px) and (max-height: 560px) {
  :root { --head: 64px; }
  .top .logo .lg { height: 24px; }
  .cta, .burger { height: 38px; }
  .drawer { max-height: 100svh; overflow-y: auto; overscroll-behavior: contain; padding-top: calc(var(--head) + 14px); padding-bottom: 20px; }
  .drawer.m-b .in { grid-template-columns: minmax(0, 1fr); }
  .drawer.m-b .pv { display: none; }
  .drawer.m-b li a { font-size: 36px; line-height: 1.12; }
  .drawer .foot { margin-top: 18px; padding-top: 14px; }
}
/* iPhone: the text keeps its size when the phone is turned sideways (Safari otherwise enlarges it on its own) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* a11y audit 24.10: the accessibility statement's link in the footer of every page */
.end footer .meta a { transition: color .2s; }
@media (hover: hover) { .end footer .meta a:hover { color: var(--bg); } }

/* motion audit 24.10 (M1): on phones the logo glides down with the bar as it gathers into the floating frame, and the grey role
   line fades out, instead of the logo jumping 11px in one frame and the line vanishing */
@media (max-width: 760px) {
  .top .logo { transition: transform .5s var(--ease); }
  .top .role { transition: opacity .25s, visibility 0s; }
  .top.float .role { display: block; opacity: 0; visibility: hidden; transition: opacity .15s, visibility 0s .15s; }
}
html.fitload .top .logo, html.fitload .top .role { transition: none; }
@media (prefers-reduced-motion: reduce) { .top .logo, .top .role { transition: none; } }

/* motion audit 24.10 (M2): page to page, the header's logo, role line and buttons glide from their place on the old page to
   their place on the new one (a floating frame to the full bar, and back), instead of two copies showing through each other */
.top .logo { view-transition-name: r6-logo; }
.top .role { view-transition-name: r6-role; }
.top .acts { view-transition-name: r6-acts; }
::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: .22s; }

/* a11y audit 24.10 + his note: one button stops the moving works, the same look in the home page's header and in the works
   page's head (home.js, works.js; the choice is remembered as "r6-still"); a phone shows it as a round icon, the words stay for
   screen readers */
.mpause { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding-inline: 13px 12px; border-radius: 40px; border: 1px solid var(--line); color: var(--mute); font-size: 14px; white-space: nowrap; transition: color .2s, border-color .2s; }
.mpause[hidden] { display: none; }
@media (hover: hover) { .mpause:hover { color: var(--ink); border-color: var(--ink); } }
.mpause:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mpause i { width: 9px; height: 10px; flex: none; box-sizing: border-box; border-inline: 3px solid currentColor; }
.mpause.off i { border: 0; background: currentColor; clip-path: polygon(10% 0, 100% 50%, 10% 100%); }
.top .mpause { height: 40px; }
html:not(.moving-wall):not(.moving-rw) .top.float .mpause { display: none; }   /* once the header floats the pause button goes (his note 24.10), but only when no wall and no recent loops are on screen (a11y audit 25.10) */
.wl-head .mpause { margin-inline-start: auto; margin-bottom: 8px; }
@media (max-width: 760px) {
  .mpause { justify-content: center; padding: 0; border-color: transparent; }
  .mpause span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wl-head .mpause { width: 44px; height: 44px; margin: 0; order: 3; }
  .top .mpause, .top.float .mpause { position: relative; width: 32px; height: 36px; }
  .top .mpause::after { content: ""; position: absolute; inset: -4px -2px; }
}
@media (min-width: 761px) and (max-height: 560px) { .top .mpause { height: 38px; } }

/* phones (his note 24.10, round 47): the name and "מנהל קריאייטיב עצמאי" on one line, and three round buttons without words -
   the menu, a phone that calls him (header.js) and, on the home page, the wall's pause/play; the words stay for screen readers */
.call { display: none; }
@media (max-width: 760px) {
  :root { --head: 60px; }
  .top .logo, .top.float .logo { transform: none; }
  .top .role, .top.float .role { position: static; display: block; opacity: 1; visibility: visible; margin: 0 9px 0 auto; padding-top: 3px; font-size: 12px; }
  .top .cta { display: none; }
  .call { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg); position: relative; }
  .call::after { content: ""; position: absolute; inset: -3px; }
  .burger, .top.float .burger { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
  .burger .w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .top .mpause, .top.float .mpause { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); }
  html:not(.moving-wall):not(.moving-rw) .top.float .mpause { display: none; }
  .top.float .call, .top.float .burger { width: 38px; height: 38px; }
  .acts { gap: 6px; }
}
@media (max-width: 360px) { .top .role, .top.float .role { font-size: 10.5px; margin-inline-start: 6px; } .call, .burger, .top .mpause { width: 36px !important; height: 36px !important; } .acts { gap: 4px; } }
@media (hover: none) { .call:active { background: #2a2826; } }
@media (max-width: 400px) { .top .logo .lg, .top.float .logo .lg { height: 19px; } .top .role, .top.float .role { font-size: 11.5px; margin-inline-start: 7px; } .call, .burger, .top .mpause, .top.float .call, .top.float .burger { width: 38px !important; height: 38px !important; } .acts { gap: 5px; } }
@media (max-width: 360px) { .top .logo .lg, .top.float .logo .lg { height: 17px; } .top .role, .top.float .role { font-size: 10.5px; margin-inline-start: 6px; } .call, .burger, .top .mpause, .top.float .call, .top.float .burger { width: 34px !important; height: 34px !important; } .acts { gap: 4px; } }
@media (max-width: 370px) { .top .logo .lg, .top.float .logo .lg { height: 16px; } .top .role, .top.float .role { font-size: 10px; margin-inline-start: 5px; padding-top: 2px; } .call, .burger, .top .mpause, .top.float .call, .top.float .burger { width: 32px !important; height: 32px !important; } .acts { gap: 4px; } }

/* his note 24.10 (desktop): "דברו איתי" fits the screen exactly, from under the floating header (84px, B3) to the screen's foot;
   the room between its parts follows the screen's height, the footer sits at the bottom */
@media (min-width: 761px) {
  .end { display: flex; flex-direction: column; min-height: calc(100svh - 84px); padding-top: clamp(28px, 6svh, 72px); }
  .end .big { margin-top: clamp(10px, 2.4svh, 28px); }
  .end .lines { margin-top: clamp(18px, 5svh, 72px); }
  .end .lines a { padding-block: clamp(8px, 2svh, 24px); }
  .end .lines .v { font-size: min(clamp(26px, 3vw, 46px), 4.6svh); }
  .end .lines .arr { width: min(46px, 5svh); height: min(46px, 5svh); }
  .end footer { margin-top: auto; padding-block: clamp(20px, 5svh, 120px) clamp(16px, 3svh, 30px); }
}
/* the round buttons of the phone's header keep their look; only the part a finger can hit grows to 44 high (mobile audit 25.10) */
@media (max-width: 760px) { .call, .burger, .top .mpause { position: relative; } .call::after, .burger::after, .top .mpause::after { content: ""; position: absolute; inset: calc((44px - 100%) / -2) -3px; } }
@media (max-width: 370px) { .call::after, .burger::after, .top .mpause::after { inset-inline: -2px; } }
