/* Contact: the brief as a poster (r2/brief.js, prototype 2026-11-13). The sheet on one side, what the visitor picks on the other. */
.bf { display: grid; grid-template-columns: minmax(0, min(34vw, 54vh)) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; margin-bottom: 7vh; }
.bf-poster { --p: #F25BA9; --i: #000; --b1: #F4CF3D; --b2: #D9D2FF; --b3: #F2B48A; position: relative; aspect-ratio: 3 / 4; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto auto; gap: 3.2%; min-width: 0; padding: 6%; box-sizing: border-box;
  background: var(--p); color: var(--i); transition: color .5s; overflow: hidden; /* the colours themselves are walked by the script, round the wheel, so no CSS transition on them */
  box-shadow: 0 1px 1px rgba(0, 0, 0, .18), 0 14px 22px -10px rgba(0, 0, 0, .35), 0 40px 60px -30px rgba(0, 0, 0, .4); } /* a sheet lying on the paper */
.bf-top, .bf-foot { display: flex; justify-content: space-between; gap: 12px; font: 600 12px/1.2 'Albert Sans', system-ui, sans-serif; }
.bf-foot { padding-top: 3%; box-shadow: inset 0 2px 0 currentColor; }
.bf-lines { min-height: 0; min-width: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.bf-l { overflow: hidden; line-height: .92; white-space: nowrap; transform-origin: 0 0; }
.bf-l.bf-ghost { position: absolute; width: 100%; pointer-events: none; } /* a line on its way out: out of the flow, so the others close up at once */
.bf-l span { display: inline-block; font: 400 100px/.92 Anton, sans-serif; text-transform: uppercase; will-change: transform; }
.bf-note { margin: 0; font: 500 clamp(13px, 1.25vw, 19px)/1.3 'Albert Sans', system-ui, sans-serif; max-width: 30ch; overflow-wrap: anywhere; }
.bf-note[hidden] { display: none; }
/* Hebrew and Arabic: the note reads from the sheet's right edge, in the site's Hebrew face */
.bf-note[dir="rtl"] { justify-self: end; text-align: right; font-family: 'IBM Plex Sans Hebrew', 'Albert Sans', system-ui, sans-serif; }
.bf-f textarea[dir="rtl"], .bf-f input[dir="rtl"] { text-align: right; font-family: 'IBM Plex Sans Hebrew', 'Albert Sans', system-ui, sans-serif; }

/* ---- the ground. Every one moves slowly, only while the sheet is on screen, and wears the grain of printed paper.
   The sheet's data-bg picks one of the three Omer kept, at random per visit (?bg=… forces one) ---- */
.bf-poster > :not(.bf-bg) { position: relative; z-index: 1; }
.bf-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bf-bg i { position: absolute; animation: 26s ease-in-out infinite alternate paused; will-change: transform; }
/* lights: three soft lights drift over the sheet's own colour */
[data-bg="lights"] .bf-bg i { left: 50%; top: 50%; width: 150%; aspect-ratio: 1; margin: -75% 0 0 -75%; --c: #000; background: radial-gradient(closest-side, var(--c), transparent); }
/* where the browser can, a light fades into the sheet's own colour round the colour wheel (blue into yellow through green, as two inks do), not through grey */
@supports (background: radial-gradient(closest-side in oklch, red, blue)) { [data-bg="lights"] .bf-bg i { background: radial-gradient(closest-side in oklch, var(--c), var(--p));
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); } }
[data-bg="lights"] .bf-bg i:nth-child(1) { --c: var(--b1); transform: translate3d(-38%, -34%, 0); animation-name: bf-a; }
[data-bg="lights"] .bf-bg i:nth-child(2) { --c: var(--b2); transform: translate3d(36%, -10%, 0); animation-name: bf-b; animation-duration: 31s; }
[data-bg="lights"] .bf-bg i:nth-child(3) { --c: var(--b3); transform: translate3d(-20%, 40%, 0); animation-name: bf-c; animation-duration: 37s; }
@keyframes bf-a { to { transform: translate3d(8%, 14%, 0); } }
@keyframes bf-b { to { transform: translate3d(-22%, 36%, 0); } }
@keyframes bf-c { to { transform: translate3d(36%, -12%, 0); } }
/* split fountain: the printer's blend of inks on one roller, the bands travelling slowly up the sheet without end */
[data-bg="fountain"] .bf-bg i:nth-child(n+2) { display: none; }
[data-bg="fountain"] .bf-bg i:nth-child(1) { left: 0; top: 0; width: 100%; height: 400%; background: linear-gradient(180deg, var(--p), var(--b1), var(--p), var(--b2), var(--p), var(--b3), var(--p)) 0 0 / 100% 50% repeat-y;
  animation: bf-roll 54s linear infinite paused; }
@supports (background: linear-gradient(180deg in oklch, red, blue)) { [data-bg="fountain"] .bf-bg i:nth-child(1) { background: linear-gradient(180deg in oklch, var(--p), var(--b1), var(--p), var(--b2), var(--p), var(--b3), var(--p)) 0 0 / 100% 50% repeat-y; } }
@keyframes bf-roll { to { transform: translate3d(0, -50%, 0); } }
.bf-poster.live[data-bg] .bf-bg i { animation-play-state: running; } /* only while the sheet is on screen; after the grounds, so it outranks their own shorthand */

.bf-form { display: grid; gap: 22px; align-content: start; min-width: 0; max-width: 640px; }
.bf-h { margin: 0; font: 600 clamp(22px, 2.2vw, 34px)/1.12 'Albert Sans', system-ui, sans-serif; letter-spacing: -.02em; max-width: 22ch; }
.bf-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.bf-form legend, .bf-f span { padding: 0; margin-bottom: 8px; display: block; font: 600 13px/1 'Albert Sans', system-ui, sans-serif; }
.bf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-chip { all: unset; box-sizing: border-box; cursor: pointer; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; font: 600 15px/1 'Albert Sans', system-ui, sans-serif; box-shadow: inset 0 0 0 2px #000; transition: background-color .16s, color .16s; }
.bf-chip[aria-pressed="true"] { background: #000; color: #F3E7D3; }
.bf-chip:focus-visible, .bf-send:focus-visible { outline: 3px solid #2F5BFF; outline-offset: 2px; }
.bf-chip:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .bf-chip:not([aria-pressed="true"]):hover { background: rgba(0, 0, 0, .1); } }
.bf-review { padding: 12px !important; background: rgba(0, 0, 0, .08); } /* review only, never shown without ?bg */
.bf-f { display: block; } .bf-f[hidden] { display: none; }
.bf-f textarea, .bf-f input { display: block; width: 100%; box-sizing: border-box; padding: 12px 14px; border: 0; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 2px #000; color: #000; font: 500 16px/1.35 'Albert Sans', system-ui, sans-serif; resize: vertical; }
.bf-f textarea:focus, .bf-f input:focus { outline: 3px solid #2F5BFF; outline-offset: 2px; }
.bf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* a trap for scripts that fill every field; people never see it */
.bf-send { display: flex !important; align-items: center; justify-content: space-between; min-height: 76px; padding: 0 22px; background: #F25BA9; color: #000; text-decoration: none; font: 600 22px/1.1 'Albert Sans', system-ui, sans-serif; cursor: pointer; transition: background-color .2s, color .2s; }
.bf-send i { font-style: normal; font-size: 26px; }
.bf-send[aria-busy="true"] { opacity: .6; cursor: progress; }
.bf-send.sent { background: #000; color: #F3E7D3; cursor: default; } .bf-send.sent i { visibility: hidden; }
@media (hover: hover) and (pointer: fine) { .bf-send:hover { background: #000; color: #F3E7D3; } }
.bf-fine { margin: -10px 0 0; font-size: 13px !important; opacity: .75; } .bf-fine a { text-decoration: underline; text-underline-offset: 3px; }

/* the works the visitor liked (r2/likes.js): small prints along the foot of the sheet, and a list in the form to take one out */
.bf-likes { display: flex; align-items: flex-end; min-width: 0; overflow: hidden; } .bf-likes[hidden] { display: none; }
.bf-likes > b { display: block; flex: none; background: #F25BA9; }
.bf-likes img { display: block; flex: none; object-fit: cover; background: rgba(0, 0, 0, .12); box-shadow: 0 1px 1px rgba(0, 0, 0, .25), 0 6px 10px -6px rgba(0, 0, 0, .45); }
.bf-lkl { display: flex; flex-wrap: wrap; gap: 6px; } .bf-lkl:empty { display: none; }
.bf-lki { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; max-width: 100%; padding: 4px 12px 4px 4px; box-shadow: inset 0 0 0 2px #000; font: 600 14px/1.15 'Albert Sans', system-ui, sans-serif; }
.bf-lki b { width: 44px; height: 44px; flex: none; background: #F25BA9; }
.bf-lki img { width: 44px; height: 44px; object-fit: cover; flex: none; }
.bf-lki span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22ch; }
.bf-lki i { font-style: normal; font-size: 20px; line-height: 1; }
.bf-lki:focus-visible { outline: 3px solid #2F5BFF; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .bf-lki:hover { background: #000; color: #F3E7D3; } }
.bf-lkh { margin: 0; font: 500 14px/1.35 'Albert Sans', system-ui, sans-serif; opacity: .75; max-width: 46ch; } .bf-lkh[hidden] { display: none; }

/* the name follows as the signature, smaller than when it stood alone */
.contact:has(.bf) h2 { font-size: clamp(44px, 7vw, 120px); }

@media (max-width: 760px) {
  .bf { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-bottom: 40px; }
  .bf-poster { width: 100%; }
  .bf-form { gap: 18px; }
  .bf-chip { padding: 0 12px; font-size: 14.5px; }
  .bf-note { font-size: 15px; }
  /* the mail address stays as a plain way in; the pink belongs to the brief's own button now */
  .contact:has(.bf) .links a:first-child { background: #000; color: #F3E7D3; }
}
@media (prefers-reduced-motion: reduce) { .bf-poster, .bf-chip, .bf-send { transition: none; } .bf-bg i { animation: none !important; } }

/* ---- the brief comes to the visitor (r2/brief.js): a sheet of the Contact paper that rises over the section they are in ---- */
.bf-start, .bf-nav, .bf-lka[hidden] { display: none; }
.bf-hold { margin-bottom: 7vh; }
.bfo { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100dvh; z-index: 2147482000; display: grid; grid-template-rows: auto minmax(0, 1fr); background: #F3E7D3; color: #000;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, .4); transform: translate3d(0, 104%, 0); transition: transform .42s cubic-bezier(.32, .72, 0, 1); } /* the drawer curve: it is laid over the page, it does not pop */
.bfo[hidden] { display: none; }
.bfo.on { transform: none; }
.bfo-bar { display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 0 0 clamp(16px, 3vw, 44px); box-shadow: inset 0 -2px 0 #000; font: 600 15px/1 'Albert Sans', system-ui, sans-serif; }
.bfo-bar b { font-weight: 600; } .bfo-n { opacity: .6; }
.bfo-x { all: unset; box-sizing: border-box; cursor: pointer; margin-left: auto; height: 56px; padding: 0 clamp(18px, 3vw, 44px); display: inline-flex; align-items: center; background: #000; color: #F3E7D3; font: 600 15px/1 'Albert Sans', system-ui, sans-serif; }
.bfo-x:focus-visible, .bf-next:focus-visible, .bf-back:focus-visible, .bf-done:focus-visible, .bf-start:focus-visible, .bf-lka:focus-visible { outline: 3px solid #2F5BFF; outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) { .bfo-x:hover { background: #F25BA9; color: #000; } }
.bfo-in { min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; align-items: center; padding: clamp(18px, 4vh, 48px) clamp(16px, 4vw, 64px); box-sizing: border-box; }
.bfo .bf { margin: 0 auto; width: min(1180px, 100%); align-items: center; grid-template-columns: minmax(0, min(36vw, calc((100vh - 170px) * .75))) minmax(0, 1fr); }
html.bf-open { overflow: hidden; }
/* the work on screen when the brief was called, offered once */
.bf-lka { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; max-width: 100%; padding: 4px 14px 4px 4px; background: #000; color: #F3E7D3; font: 600 14px/1.15 'Albert Sans', system-ui, sans-serif; }
.bf-lka img, .bf-lka b { width: 44px; height: 44px; object-fit: cover; flex: none; background: #F25BA9; }
.bf-lka span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 26ch; } .bf-lka i { font-style: normal; font-size: 20px; line-height: 1; }
.bf-lkl:not(:empty) + .bf-lka { margin-top: 6px; }
.bf-done { all: unset; box-sizing: border-box; cursor: pointer; }

@media (max-width: 760px) {
  /* in Contact, on a phone: the sheet, one line and one button; the questions are asked on the sheet that rises */
  .bf:not(.bf-in) .bf-form > :not(.bf-h):not(.bf-start), .bf:not(.bf-in) .bf-form > .bf-send { display: none !important; }
  .bf-start { all: unset; display: none; box-sizing: border-box; cursor: pointer; align-items: center; justify-content: space-between; min-height: 76px; padding: 0 22px; background: #F25BA9; color: #000; font: 600 22px/1.1 'Albert Sans', system-ui, sans-serif; }
  .bf-start i { font-style: normal; font-size: 26px; } .bf-start:active { transform: scale(.98); }
  .bf:not(.bf-in) .bf-start { display: flex; }
  .bf-hold { margin-bottom: 40px; }
  /* on the sheet: the poster above, one question under it, the way on at the foot */
  .bfo-bar { height: 50px; } .bfo-x { height: 50px; }
  .bfo-in { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); overflow: hidden; align-items: stretch; grid-template-rows: minmax(0, 1fr); }
  .bfo .bf { height: 100%; width: 100%; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 12px; align-items: stretch; }
  .bfo .bf-poster { height: min(100%, calc((100vw - 32px) * 4 / 3)); width: auto; min-height: 0; justify-self: center; align-self: center; }
  .bfo .bf-form { gap: 12px; max-width: none; }
  .bfo .bf-h { font-size: 24px; max-width: none; }
  .bfo .bf-steps .bf-form > [data-s] { display: none; }
  .bfo .bf-form[data-step="0"] > [data-s="0"], .bfo .bf-form[data-step="1"] > [data-s="1"], .bfo .bf-form[data-step="2"] > [data-s="2"], .bfo .bf-form[data-step="3"] > [data-s="3"]:not([hidden]) { display: block; }
  .bfo .bf-steps .bf-form:not([data-step="3"]) > .bf-send { display: none !important; }
  .bfo .bf-form[data-step="3"] > .bf-send { min-height: 60px; }
  .bfo .bf-form legend { display: none; } /* the question is the heading */
  .bfo .bf-lk legend { display: block; }
  .bfo .bf-chip { min-height: 42px; padding: 0 11px; font-size: 14px; }
  .bfo .bf-fine { margin: -4px 0 0; }
  .bfo .bf-nav { display: flex; gap: 8px; }
  .bf-back, .bf-next, .bf-done { all: unset; box-sizing: border-box; cursor: pointer; min-height: 56px; display: inline-flex; align-items: center; font: 600 18px/1 'Albert Sans', system-ui, sans-serif; }
  .bf-back { padding: 0 16px; box-shadow: inset 0 0 0 2px #000; } .bf-back[hidden], .bf-next[hidden], .bf-done[hidden] { display: none; }
  .bf-next { flex: 1; justify-content: space-between; padding: 0 20px; background: #000; color: #F3E7D3; } .bf-next i { font-style: normal; font-size: 22px; }
  .bf-done { flex: 1; justify-content: center; padding: 0 20px; background: #000; color: #F3E7D3; }
  .bf-next:active, .bf-back:active, .bf-done:active { transform: scale(.98); }
}
@media (prefers-reduced-motion: reduce) { .bfo { transition: none; } }

/* the sheet's small type follows the sheet's own width, so a small sheet (above a phone's keyboard) is the same sheet, smaller */
.bf-poster { container-type: inline-size; }
@supports (font-size: 1cqw) { .bf-top, .bf-foot { font-size: clamp(6px, 3.3cqw, 12px); gap: 2cqw; white-space: nowrap; } .bf-note { font-size: clamp(7px, 4.1cqw, 19px); } }
@media (max-width: 760px) {
  .bfo .bf-poster { min-height: 96px; }
  /* the keyboard is up: only the question, its field and the way on */
  .bfo-kb .bf-fine, .bfo-kb .bf-lkh, .bfo-kb .bf-back { display: none !important; }
  .bfo-kb .bfo-in { padding-top: 8px; padding-bottom: 8px; } .bfo-kb .bf { gap: 8px; } .bfo-kb .bf-form { gap: 8px; }
  .bfo-kb .bf-h { font-size: 20px; } .bfo-kb .bf-f span { margin-bottom: 5px; } .bfo-kb .bf-f textarea, .bfo-kb .bf-f input { padding: 9px 12px; }
  .bfo-kb .bf-next, .bfo-kb .bf-form[data-step="3"] > .bf-send { min-height: 48px; }
}

/* ---- riso and halftone (Omer kept them with lights and the split fountain, 2026-11-13). Bright stops only (the script lifts every colour), black type on top ---- */
[data-bg="riso"] .bf-bg i:nth-child(n+4) { display: none; }
/* riso: flat inks laid on the paper, three hard-edged discs, as in a two-pass print; they drift a little */
[data-bg="riso"] .bf-bg { background: var(--p); }
[data-bg="riso"] .bf-bg i { aspect-ratio: 1; border-radius: 50%; will-change: transform; }
[data-bg="riso"] .bf-bg i:nth-child(1) { left: 34%; top: -14%; width: 92%; background: var(--b1); animation-name: bf-ra; animation-duration: 22s; }
[data-bg="riso"] .bf-bg i:nth-child(2) { left: -26%; top: 48%; width: 76%; background: var(--b2); animation-name: bf-rb; animation-duration: 27s; }
[data-bg="riso"] .bf-bg i:nth-child(3) { left: 58%; top: 66%; width: 46%; background: var(--b3); animation-name: bf-rc; animation-duration: 18s; }
/* each ink travels about half its own width and back: some 7 to 10 px a second, slow beside the page and plain to see */
@keyframes bf-ra { to { transform: translate3d(-48%, 52%, 0); } } @keyframes bf-rb { to { transform: translate3d(58%, -46%, 0); } } @keyframes bf-rc { to { transform: translate3d(-92%, -64%, 0); } }
/* halftone: a bright blend seen through a printer's dot screen. The screen slides across the sheet and a soft light drifts under it, so the dots light up and go out as it passes */
[data-bg="halftone"] .bf-bg { background: linear-gradient(155deg, var(--b1), var(--p) 52%, var(--b2)); }
@supports (background: linear-gradient(180deg in oklch, red, blue)) { [data-bg="halftone"] .bf-bg { background: linear-gradient(155deg in oklch, var(--b1), var(--p) 52%, var(--b2)); } }
[data-bg="halftone"] .bf-bg i:nth-child(3) { display: none; }
[data-bg="halftone"] .bf-bg i:nth-child(1) { left: -20px; top: -20px; width: calc(100% + 40px); height: calc(100% + 40px);
  background: radial-gradient(circle at 50% 50%, var(--b3) 0 31%, transparent 33%) 0 0 / 20px 20px;
  -webkit-mask-image: linear-gradient(18deg, #000 4%, transparent 62%); mask-image: linear-gradient(18deg, #000 4%, transparent 62%);
  animation: bf-dots 3s linear infinite paused; }
@keyframes bf-dots { to { transform: translate3d(20px, 20px, 0); } } /* one cell of the screen in three seconds, about 9 px a second, and it never shows a seam */
[data-bg="halftone"] .bf-bg i:nth-child(2) { left: 50%; top: 50%; width: 130%; aspect-ratio: 1; margin: -65% 0 0 -65%; background: radial-gradient(closest-side, var(--b2), transparent); opacity: .85; transform: translate3d(-30%, 40%, 0); animation-name: bf-hl; animation-duration: 17s; }
@keyframes bf-hl { to { transform: translate3d(32%, -38%, 0); } }

/* the brief that set itself (r2/brief-guess.js): a quiet way back to a blank one, under Finish the brief */
.bf-blank { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 8px; padding: 0 2px; font: 600 15px/1 'Albert Sans', system-ui, sans-serif; text-decoration: underline; text-underline-offset: 4px; }
.bf-blank[hidden] { display: none; }
.bf-blank:focus-visible { outline: 3px solid #2F5BFF; outline-offset: 2px; }
.bf:not(.bf-in) .bf-form > .bf-blank:not([hidden]) { display: inline-flex !important; justify-self: start; align-self: start; margin-top: -10px; }
.bf.bf-in .bf-blank { display: none !important; } /* inside the open brief the chips themselves do this */
