/* BOOKMARK site · fx: the loader that builds the logo, the home opening (ruled paper that tears onto colour), the bookmark cursor, the 404 */
:root { --bm-mint: #4DFFDE; --bm-ink: #141414; --bm-line: #D3D3D3; }
.bm-paper { background-color: #fff; background-image: url("../texture/paper-grain.png?v=2"), repeating-linear-gradient(to bottom, transparent 0 79px, var(--bm-line) 79px 80px); background-size: 128px 128px, auto; }   /* the brand ruling: #D3D3D3 every 80 px, with a light grain (12.11) */
html.bm-lock, html.bm-lock body { overflow: hidden !important; }

/* ---------- loader: BOOKMARK builds from a grey grid, the mint bar lands ---------- */
#bm-loader { position: fixed; inset: 0; z-index: 10000; pointer-events: none; display: grid; place-items: center; transition: opacity .5s ease, visibility .5s; }
#bm-loader.on-intro { background: #fff; }
#bm-loader.out { opacity: 0; visibility: hidden; pointer-events: none; }
#bm-loader .bm-logo { width: min(560px, 74vw); height: auto; color: var(--bm-ink); overflow: visible; will-change: transform; }
#bm-loader .bm-logo .guide { stroke: #C4C4C4; stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
#bm-loader .bm-logo path { transform-box: fill-box; transform-origin: center; }

/* ---------- home opening: the strings hook onto the cursor and tear a hole; the film waits behind it; a scroll zooms through ---------- */
html.bm-intro-on .hero-ui { visibility: hidden; }
html.bm-intro-on .site-header[data-theme] { z-index: 9500; background: linear-gradient(rgba(255, 255, 255, .35), rgba(255, 255, 255, .35)), url("../texture/paper-grain.png?v=2") 0 0 / var(--bm-grain, 128px) repeat, #fff; background-origin: border-box; color: #000; }   /* the regular header, over the paper, with the paper's grain (12.11: "שיהיה גם על החלק העליון"); fx.js sets the tile to the canvas's scale */
html.bm-intro-on .bm-cursor { display: none; }   /* just the arrow on the opening */
#bm-intro { position: fixed; inset: 0; z-index: 9000; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; cursor: default; }
#bm-intro { background: #fff; }   /* until the first frame is drawn; then the canvas is the paper and its gaps show the film */
#bm-intro.drawn { background: none; }
#bm-intro canvas.paper { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#bm-intro .bm-arrow { position: absolute; left: 0; top: 0; z-index: 1; width: 26px; height: 38px; pointer-events: none; opacity: 0; will-change: transform; color: #4DFFDE; }
#bm-intro .bm-arrow svg { display: block; overflow: visible; }
html #bm-intro.arrow-on { cursor: none; }
#bm-intro .bm-skip { position: absolute; bottom: 18px; right: 26px; z-index: 2; font: 700 var(--fs-label)/1 "Courier New", Courier, monospace; letter-spacing: .3em; color: #8A8A8A; background: none; border: 0; padding: 10px 0; cursor: pointer; opacity: 0; }
#bm-intro .bm-skip:hover, #bm-intro .bm-skip:focus-visible { color: #000; }

#bm-intro .cue { position: absolute; left: 0; right: 0; bottom: clamp(22px, 4.6vh, 50px); z-index: 1; text-align: center; pointer-events: none; opacity: 0; }
#bm-intro .cue .c1 { display: block; font: 700 var(--fs-label)/1 "Courier New", Courier, monospace; letter-spacing: .34em; color: #111; }
#bm-intro .cue .c1::after { content: ""; display: block; width: 26px; height: 2px; background: #000; margin: 12px auto 0; animation: bm-pulse 1.6s ease-in-out infinite; }
#bm-intro .cue .c2 { display: block; margin-top: 10px; font: 400 var(--fs-text)/1.4 "Google Sans", system-ui, sans-serif; color: #8A8A8A; }
@keyframes bm-pulse { 0%, 100% { transform: scaleX(.4); opacity: .5; } 50% { transform: scaleX(1); opacity: 1; } }
@keyframes bm-sway { 0%, 100% { rotate: z -1.2deg; } 50% { rotate: z 1.6deg; } }

/* ---------- the bookmark cursor ---------- */
html.bm-cursor-on, html.bm-cursor-on a, html.bm-cursor-on button, html.bm-cursor-on [role="button"] { cursor: none; }
html.bm-cursor-on #bm-intro { cursor: default; }
html.bm-cursor-on #bm-intro .bm-skip { cursor: pointer; }
html.bm-cursor-on input, html.bm-cursor-on textarea, html.bm-cursor-on select { cursor: auto; }
.bm-cursor { position: fixed; left: 0; top: 0; z-index: 11000; pointer-events: none; will-change: transform; }
.bm-cursor .rb { width: 12px; height: 19px; background: var(--bm-mint); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%); transform: translate(-6px, -3px); transition: transform .25s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.bm-cursor .lb { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.4); opacity: 0; white-space: nowrap; background: var(--bm-mint); color: #000;
  font: 700 var(--fs-label)/1 "Courier New", Courier, monospace; letter-spacing: .28em; padding: 11px 14px 11px 17px; transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.bm-cursor.view .rb { opacity: 0; transform: translate(-6px, -3px) scale(.4); }
.bm-cursor.view .lb { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.bm-cursor.link .rb { transform: translate(-6px, -3px) scale(1.35); }
.bm-cursor.down .rb { transform: translate(-6px, -3px) scale(.8); }
.bm-cursor.hide { opacity: 0; }
/* her note 17.11 "במקום הסימניה שמלווה עם העכבר שיהיה חץ עכבר אבל בצבע טורקיז" (home page for now): the real pointer, drawn as a mint arrow with a thin
   black edge so it shows on mint and on white too, a little larger over links and buttons. The bookmark is gone; VIEW STORY still comes over the projects. */
/* 17.11 her "Yes, every page": all pages now. The SHORTS viewer hid the arrow for the bookmark (shorts.css): it gets the mint arrow too */
html.bm-cursor-on body { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M4 2v17.5l4.6-4.3 3 6.8 3-1.3-2.9-6.7H18z' fill='%234DFFDE' stroke='%23000' stroke-width='1.25' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto; }
html.bm-cursor-on body .sh-view, html.bm-cursor-on body .sh-view * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M4 2v17.5l4.6-4.3 3 6.8 3-1.3-2.9-6.7H18z' fill='%234DFFDE' stroke='%23000' stroke-width='1.25' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto; }
html.bm-cursor-on body :is(a, button, [role="button"], label, summary) { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 24 24'%3E%3Cpath d='M4 2v17.5l4.6-4.3 3 6.8 3-1.3-2.9-6.7H18z' fill='%234DFFDE' stroke='%23000' stroke-width='1.25' stroke-linejoin='round'/%3E%3C/svg%3E") 5 2, pointer; }
html.bm-cursor-on body :is(a.tile:not(.soon), [data-cursor="view"]), html.bm-cursor-on body :is(a.tile:not(.soon), [data-cursor="view"]) * { cursor: none; }   /* the label alone */
.bm-cursor .rb { display: none; }

/* ---------- 404 ---------- */
.bm-404 { min-height: 100vh; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 0 clamp(20px, 7vw, 120px); }
.bm-404 .vlogo { position: absolute; top: 26px; left: 26px; width: 170px; transform-origin: 0 0; transform: translateY(170px) rotate(-90deg); }
.bm-404 h1 { margin: 0; font: 500 var(--fs-xl)/.9 "Inter", system-ui, sans-serif; max-width: 78vw; letter-spacing: -.045em; color: #000; }
.bm-404 .code { font: 700 var(--fs-text)/1 "Courier New", Courier, monospace; letter-spacing: .34em; color: #8a8a8a; margin-bottom: 26px; }
.bm-404 p { font: 400 var(--fs-lead)/1.6 "Google Sans", "Inter", system-ui, sans-serif; color: #222; margin: 30px 0 0; max-width: 34ch; }
.bm-404 .ribbon { position: absolute; top: 0; right: clamp(22px, 5vw, 96px); width: 64px; height: 46vh; background: var(--bm-mint); color: #000; text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 22px), 0 100%); transform-origin: 50% 0; animation: bm-sway 3.4s ease-in-out infinite; transition: height .45s cubic-bezier(.2, .8, .2, 1);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 46px; }
.bm-404 .ribbon span { writing-mode: vertical-rl; font: 700 var(--fs-label)/1 "Courier New", Courier, monospace; letter-spacing: .3em; }
.bm-404 .ribbon:hover, .bm-404 .ribbon:focus-visible { height: 58vh; outline: none; }

@media (max-width: 700px) {
  .bm-404 .vlogo { width: 120px; transform: translateY(120px) rotate(-90deg); top: 18px; left: 18px; }
  #bm-intro .cue .c2 { font-size: var(--fs-text); padding: 0 24px; }
  .bm-404 .ribbon { left: auto; right: 22px; width: 48px; height: 34vh; }
  /* RESPONSIVE PASS: at 320-414px the 48px heading ran off the screen ("THIS PAG…") and sat under the ribbon.
     The heading now fits the width, and the text starts below a shorter ribbon and the vertical logo. */
  .bm-404 { justify-content: flex-start; padding-top: calc(22vh + 44px); padding-bottom: 48px; }
  .bm-404 .ribbon { height: 22vh; min-height: 120px; }
  .bm-404 .ribbon:hover, .bm-404 .ribbon:focus-visible { height: 30vh; }
  .bm-404 h1 { font-size: var(--fs-display); max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bm-404 .ribbon, #bm-intro .cue .c1::after { animation: none; }
}

/* ---------- 4 · the floating header (11.11.2026, her note "בגלילה שהחלק העליון יתקטן לתוך איזה משהו צף") ---------- */
.site-header { border: 1px solid transparent;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease),
    top .55s var(--ease), left .55s var(--ease), right .55s var(--ease), height .55s var(--ease), padding .55s var(--ease); }
.site-header .logo { transition: width .55s var(--ease); }
.site-header .gm-mark-btn { transition: transform .35s var(--ease), width .55s var(--ease); }
.site-header.is-float {
  --fi: clamp(10px, 1.4vw, 24px);
  top: var(--fi); left: max(var(--fi), calc(50% - 680px)); right: max(var(--fi), calc(50% - 680px));
  height: clamp(54px, 3.7vw, 66px); padding-inline: clamp(16px, 1.6vw, 28px);
  background: var(--white); color: var(--black); border-color: var(--black);
}
.site-header.is-float[data-theme="dark"], .site-header.is-float[data-theme="hero"] { background: var(--black); color: var(--white); border-color: rgba(255, 255, 255, .3); }
.site-header.is-float .logo { width: var(--fl); }
.site-header.is-float .gm-mark-btn { width: clamp(20px, 1.4vw, 26px); }
/* 15.11.2026, her note "שילך שמאלה רק עם לוגו והמבורגר" (every page): the floating bar is a small box on the left, the logo and a hamburger.
   Its right edge is computed from what is inside it, so the shrink animates (right: auto would jump). The nav, HE|EN and the GOOD MARK
   stamp wait in the full bar at the top of the page; the hamburger opens the same menu the phone uses. */
.site-header.is-float {
  --fl: clamp(104px, 7.4vw, 142px); --fp: clamp(16px, 1.6vw, 28px); --fg: clamp(26px, 2.2vw, 40px);
  left: var(--fi); right: calc(100% - var(--fi) - (2 * var(--fp) + var(--fl) + var(--fg) + 40px + 2px));
  padding-inline: var(--fp);
}
.site-header.is-float .nav, .site-header.is-float .lang, .site-header.is-float .gm-mark { display: none; }
/* her note 15.11 "בלי המילה MENU רק המבורגר": the word hides (screen readers still read it) and the three lines are drawn on the button itself,
   so the page markup stays as it was and no build is needed */
.site-header.is-float .menu-btn {
  display: block; width: 40px; height: 44px; padding: 0; overflow: hidden; white-space: nowrap; text-indent: 100px;
  background: linear-gradient(var(--mint), var(--mint)) right calc(50% - 7px) / 22px 2px no-repeat,
    linear-gradient(var(--mint), var(--mint)) right 50% / 22px 2px no-repeat,
    linear-gradient(var(--mint), var(--mint)) right calc(50% + 7px) / 22px 2px no-repeat;   /* turquoise, her note 15.11 "המבורגר טורקיז" */
  transition: background-size .3s var(--ease);
}
.site-header.is-float .menu-btn:hover { background-size: 22px 2px, 14px 2px, 22px 2px; }
/* back at the top the bar opens again; for that half second it clips what it holds, so the nav slides in with the edge instead of hanging outside it */
.site-header.is-opening { overflow: hidden; }
.site-header.is-opening .head-right > *, .site-header.is-opening .gm-mark { animation: bm-head-in .5s var(--ease) both; }
@keyframes bm-head-in { from { opacity: 0; } }
/* 16.11.2026: the SHORTS sticker (beside the GOOD MARK stamp) waits in the full bar too, and comes back with it */
.site-header.is-float .sh-mark { display: none; }
.site-header.is-opening .sh-mark { animation: bm-head-in .5s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .site-header, .site-header .logo { transition: background-color .2s, color .2s; } }
/* her notes 17.11 on the floating box (home page for now): "פינות מעוגלות כמו הכפתורים" = a pill like the buttons; and
   "בהובר נפתח כל התפריט" + "התכוונתי שיתרחב לצד ויראו תפריט": on a desktop, hovering widens the pill to the side (its right edge moves by --nw,
   measured in main.js) and the nav and HE|EN show inside it, before the hamburger. The hamburger still opens the full menu; phones as before. */
/* 17.11 her "Yes, every page": all pages now */
.site-header.is-float, .site-header.is-float .menu-btn { border-radius: 999px; }   /* the button too: its focus ring is round */
.site-header.is-measure .nav, .site-header.is-measure .lang { display: flex; position: absolute; visibility: hidden; width: max-content; }   /* its whole width, not the box's */
/* 17.11 "פה שיהיה גם SHORTS וGOODMARK" + "עם הלוגואים": main.js puts the stamp and the SHORTS sticker, as a pair, at the start of the nav;
   they show in the widened pill only (the full bar has its own), at the stamp's size, tilting on hover like the originals */
.site-header .nav .nav-x { display: none; }
.site-header.is-float.is-peek .nav .nav-x, .site-header.is-measure .nav .nav-x { display: flex; align-items: center; gap: clamp(8px, .8vw, 14px); }
.site-header .nav .nav-logo { display: block; padding-block: 0; transition: transform .35s var(--ease); }
.site-header .nav .nav-logo::after { display: none; }   /* no underline under a logo */
.site-header .nav .nav-x, .site-header .nav .nav-logo, .site-header .nav .nav-logo img { flex: none; }
.site-header .nav .nav-logo img { display: block; height: clamp(24px, 1.9vw, 32px); width: auto; }
.site-header .nav .nav-logo--gm img { aspect-ratio: 120 / 137; }       /* sized before they load, so the pill is measured right */
.site-header .nav .nav-logo--sh img { aspect-ratio: 880.92 / 701.89; }
.site-header .nav .nav-logo--gm:hover, .site-header .nav .nav-logo--gm:focus-visible { transform: rotate(-10deg) scale(1.12); }
.site-header .nav .nav-logo--sh:hover, .site-header .nav .nav-logo--sh:focus-visible { transform: rotate(8deg) scale(1.12); }
@media (min-width: 761px) {
  .site-header.is-float.is-peek { overflow: hidden;
    right: calc(100% - var(--fi) - (2 * var(--fp) + var(--fl) + var(--fg) + 40px + 2px + var(--nw, 0px))); }
  .site-header.is-float.is-peek .nav, .site-header.is-float.is-peek .lang { display: flex; animation: bm-peek-in .4s var(--ease) .12s both; }
}
@keyframes bm-peek-in { from { opacity: 0; transform: translateX(-10px); } }
@media (prefers-reduced-motion: reduce) { .site-header.is-float.is-peek :is(.nav, .lang) { animation: none; } }

/* ---------- 5 · HOW WE WORK, built as a process (11.11.2026, her note "גם זה שיבנה כתהליך") ---------- */
.proc { --pg: clamp(18px, 2vw, 40px); position: relative; width: 100%; margin-top: clamp(16px, 2vw, 40px); }
.proc-big { display: none; }
.proc-track { position: relative; }
.proc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--pg); }
.proc-line { position: absolute; top: 9px; inset-inline-start: 0; width: calc(100% - (100% - 4 * var(--pg)) / 5); height: 2px; background: #D3D3D3; }
.proc-fill { position: absolute; inset: 0; background: var(--black); transform-origin: 0 50%; }
html[dir="rtl"] .proc-fill { transform-origin: 100% 50%; }
.proc-step { position: relative; min-width: 0; }
.proc-dot { position: relative; display: block; width: 12px; height: 12px; margin: 4px 0 clamp(26px, 3vw, 48px); background: var(--black); border: 2px solid var(--black);
  transition: background-color .4s var(--ease), border-color .4s var(--ease); }
.proc-dot::after { content: ""; position: absolute; top: -8px; inset-inline-start: -5px; width: 18px; height: 30px; background: var(--mint);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%); transform: scaleY(0); transform-origin: 50% 0; transition: transform .45s var(--ease); }
.proc-step .label { transition: color .5s var(--ease); }
.proc-title { margin: 10px 0 0; font-size: var(--fs-msg); line-height: 1; letter-spacing: -.03em; transition: color .5s var(--ease); }
.proc-step .row-sub { margin-top: 8px; font-size: var(--fs-s); transition: color .5s var(--ease); }
.proc-body { margin: clamp(14px, 1.5vw, 26px) 0 0; font-size: var(--fs-text); line-height: 1.55; max-width: 22em;
  transition: opacity .6s var(--ease), transform .6s var(--ease); }
/* live: grey until the line reaches it, then black, its text rises in; the bookmark hangs on the one you are on */
.proc.is-live .proc-step:not(.on) .label, .proc.is-live .proc-step:not(.on) .proc-title, .proc.is-live .proc-step:not(.on) .row-sub { color: #D3D3D3; }
.proc.is-live .proc-step:not(.on) .proc-dot { background: var(--white); border-color: #D3D3D3; }
.proc.is-live .proc-step:not(.on) .proc-body { opacity: 0; transform: translateY(14px); }
.proc.is-live .proc-step.cur .proc-dot::after { transform: scaleY(1); }
.proc.is-live .proc-fill { transform: scaleX(0); }
@media (min-width: 900px) {
  .proc.is-live { height: 330vh; height: 330svh; }
  .proc.is-live .proc-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center;
    gap: clamp(20px, 4vh, 56px); padding-top: calc(var(--hh) * .8); }
  .proc.is-live .proc-big { display: block; align-self: flex-end; font-size: clamp(110px, 13vw, 250px); line-height: .78; letter-spacing: -.05em; color: var(--g1); min-height: .78em; }
}
@media (max-width: 899px) {
  .proc-steps { grid-template-columns: 1fr; gap: clamp(36px, 8vw, 56px); padding-inline-start: 34px; }
  .proc-line { top: 6px; bottom: 6px; inset-inline-start: 5px; width: 2px; height: auto; }
  .proc-fill { transform-origin: 50% 0 !important; }
  .proc.is-live .proc-fill { transform: scaleY(0); }
  .proc-dot { position: absolute; top: 2px; inset-inline-start: -34px; margin: 0; }
  .proc-step .label { margin-top: 0; }
}

/* ---------- KEEP READING: small cards to choose the next project (11.11.2026, her note "כמה למטה לבחירה כמו ב-OPEN") ---------- */
.more-work { border-top: 1px solid var(--black); }
.more-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px 32px; }
.more-head h2 { margin: 0; }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 40px); margin-top: clamp(22px, 2.4vw, 44px); }
.more-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; color: var(--black); text-decoration: none; }
.more-media { position: relative; display: block; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; background: var(--g2); }
.more-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.more-card:hover .more-media video, .more-card:focus-visible .more-media video { transform: scale(1.04); }
.more-tag { margin-top: 16px; }
.more-name { margin-top: 10px; font-size: var(--fs-lead); line-height: 1; letter-spacing: -.03em; transition: opacity .3s; }
.more-card:hover .more-name { opacity: .6; }
.more-line { margin-top: 8px; font-size: var(--fs-text); color: var(--slate); }
.more-all .more-media { background: var(--black); color: var(--white); display: flex; align-items: flex-end; padding: clamp(14px, 1.4vw, 24px); }
.more-all .more-media span { font-size: var(--fs-msg); line-height: .9; letter-spacing: -.04em; }
.more-all:hover .more-media { background: var(--slate); }
@media (max-width: 900px) { .more-grid { grid-template-columns: 1fr 1fr; } .more-all { display: none; } }
@media (max-width: 560px) { .more-grid { grid-template-columns: 1fr; } }
