/* כישוף: נבנה אוטומטית מ-research/v50/font_pages/kishuf/{css,js} על ידי build_font_pages.py. לא לערוך כאן. */
/* ===== measured from the font files (kit.css_tokens) ===== */
body.fp--kishuf{--k-xh:.523;--k-bolt-dn:.585;--k-bolt-up:.734;--k-sp:.23;--k-hp:.727}

/* ===== 00-core.css ===== */
/* ===========================================================================
   כישוף: הליבה המשותפת לכל האזורים בעמוד (Core API v2, 29.10.2026). שייך לליבה: אזורים לא עורכים את הקובץ הזה.
   Reference for section owners: README.md, "Core API v2". Measured font tokens (--k-xh, --k-bolt-dn, --k-bolt-up,
   --k-sp, --k-hp) are generated from the woff2 files by assemble.py and sit above this file in kishuf-page.css.
   =========================================================================== */

/* ---------- tokens (spec 2.1 palette, 2.4 motion) ---------- */
body.fp--kishuf {
  --k-night: #0b0716; --k-deep: #160c2c; --k-ink: #1a0f2e; --k-cream: #fff1c9; --k-letter: #ffe9a6; --k-charge: #fff6d8;
  --k-gold: #f5c842; --k-gold-deep: #c4921b; --k-muted: #b9a9d8; --k-violet: #8a5cff; --k-parchment: #f3e6c4; --k-bronze: #e3b866;
  --k-line: rgba(245,200,66,.16); --k-base: rgba(245,200,66,.42); --k-xline: rgba(185,169,216,.18);
  --k-band: linear-gradient(rgba(245,200,66,.07), transparent); --k-band-lit: rgba(245,200,66,.18);
  --k-t-micro: 160ms; --k-t-ui: 240ms; --k-t-strike: 520ms; --k-t-settle: 280ms; --k-t-reveal: 700ms;
  --k-t-scene: 1200ms; --k-t-pulse: 650ms; --k-t-push: 2400ms;
  --k-ease: cubic-bezier(.2,.8,.2,1); --k-ease-cam: cubic-bezier(.2,.7,.2,1); --k-ease-decay: cubic-bezier(.1,.6,.2,1);
  --k-glow: 0 0 .15em rgba(245,200,66,.35);                                  /* Kishuf of 64px and up only */
  --k-glow-bolt: 0 0 .08em rgba(255,246,216,.5), 0 0 .2em rgba(245,200,66,.4); /* Bolt letters at rest, 64px and up */
  --k-room-dn: .62em; --k-room-up: .75em;   /* a box that can hold Bolt: room below / above the baseline */
  --k-sec: clamp(48px, 7vw, 112px);         /* section padding */
  --k-nav: calc(84px + env(safe-area-inset-top));
}

/* ---------- letters in slots: .k-line > .k-w > .k-l (slot) > .k-f (float layer) > .k-g (glyph) ---------- */
.fp--kishuf .k-w { display: inline-flex; white-space: nowrap; }
.fp--kishuf .k-l { position: relative; display: inline-flex; justify-content: center; }
.fp--kishuf .k-f, .fp--kishuf .k-g { display: inline-block; }
.fp--kishuf .k-g { position: relative; }
.fp--kishuf .k-g.is-bolt { font-family: 'FS Kishuf Bolt', var(--f-brand); color: var(--k-charge); }

/* v2 lines (kit.k_letters with rest=): each slot as wide as its letter can get (--w), the glyph sits at the slot's
   start and --dx (em) moves it to where plain text would put it. K.place keeps --dx / --a current. */
.fp--kishuf .k-line {
  display: inline-block; direction: rtl; unicode-bidi: isolate; white-space: nowrap; overflow-wrap: normal;
  font-family: 'FS Kishuf', var(--f-brand); font-weight: 400; font-style: normal; font-synthesis: none;
  font-kerning: normal; letter-spacing: 0; word-spacing: 0; text-indent: 0; text-transform: none;
}
.fp--kishuf .k-line .k-l { flex: none; width: calc(var(--w) * 1em); justify-content: flex-start; }
.fp--kishuf .k-line .k-f, .fp--kishuf .k-line .k-l::after { translate: calc(var(--dx, 0) * 1em) 0; }
.fp--kishuf .k-line.is-glide .k-f, .fp--kishuf .k-line.is-glide .k-l::after { transition: translate var(--k-t-settle) var(--k-ease); }
.fp--kishuf .k-line button.k-l {
  -webkit-appearance: none; appearance: none; margin: 0; padding: 0; border: 0; border-radius: 4px; background: none;
  color: inherit; font: inherit; line-height: inherit; letter-spacing: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}

/* float (opt in with .k-float on a line or its container; paused by K.loop's .is-off) */
@keyframes k-float-core { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-.05em) rotate(1.2deg); } }
.js-motion .fp--kishuf .k-float .k-f { animation: k-float-core 5.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.15s); }
.fp--kishuf .is-off, .fp--kishuf .is-off *, .fp--kishuf .is-off *::before, .fp--kishuf .is-off *::after { animation-play-state: paused !important; }

/* ---------- the strike (K.strike): one opacity pulse on an ::after copy from the Bolt file, nothing else moves ---------- */
.fp--kishuf .k-g:is(.is-flash-a, .is-flash-b, .is-fade-a, .is-fade-b)::after {
  content: attr(data-ch); position: absolute; inset-block-start: 0; inset-inline-start: 0; z-index: 1;
  font-family: 'FS Kishuf Bolt', var(--f-brand); color: var(--k-charge); white-space: nowrap; pointer-events: none;
  opacity: 0; will-change: opacity;
}
.fp--kishuf .k-g:is(.is-flash-a, .is-flash-b)::after { text-shadow: 0 0 .03em #fff6d8, 0 0 .1em rgba(245,200,66,.8); }
.fp--kishuf .k-g:is(.is-fade-a, .is-fade-b)::after { text-shadow: none; }
.fp--kishuf .k-g.is-flash-a::after { animation: k-strike-a var(--k-t-strike) linear; }
.fp--kishuf .k-g.is-flash-b::after { animation: k-strike-b var(--k-t-strike) linear; }
.fp--kishuf .k-g.is-fade-a::after { animation: k-fade-a 220ms var(--k-ease); }
.fp--kishuf .k-g.is-fade-b::after { animation: k-fade-b 220ms var(--k-ease); }
/* 70ms in (linear), 450ms out (--k-ease-decay); two names so a new pulse restarts without a reflow */
@keyframes k-strike-a { 0% { opacity: 0; animation-timing-function: linear; } 13.46% { opacity: 1; animation-timing-function: cubic-bezier(.1,.6,.2,1); } 100% { opacity: 0; } }
@keyframes k-strike-b { 0% { opacity: 0; animation-timing-function: linear; } 13.46% { opacity: 1; animation-timing-function: cubic-bezier(.1,.6,.2,1); } 100% { opacity: 0; } }
@keyframes k-fade-a { from { opacity: 1; } to { opacity: 0; } }
@keyframes k-fade-b { from { opacity: 1; } to { opacity: 0; } }

/* old flash (K.zap before v2), still referenced by 20-hero.css: removed once every part has moved */
.fp--kishuf .k-g.is-zap { animation: k-zap .75s ease-out; }
@keyframes k-zap {
  0% { filter: brightness(2.8) drop-shadow(0 0 .1em #fff) drop-shadow(0 0 .3em #f5c842); transform: scale(1.07); }
  12% { filter: brightness(.55); }
  24% { filter: brightness(2) drop-shadow(0 0 .18em #f5c842); }
  100% { filter: none; transform: none; }
}

/* ---------- the first letter in Bolt (kit.fl / K.firstHTML). calt off: the font changes after the letter, so the
   shaper would treat it as the end of a word (a ע would turn into the swash) ---------- */
.fp--kishuf .k-first { font-family: 'FS Kishuf Bolt', var(--f-brand); font-feature-settings: "calt" 0; }
.fp--kishuf .k-first--solo { font-feature-settings: normal; }
.fp--kishuf .k-nocalt { font-feature-settings: "calt" 0; }
.fp--kishuf .k-title { font-family: 'FS Kishuf', var(--f-brand); font-weight: 400; font-synthesis: none; }

/* ---------- chapter head (kit.k_head) ---------- */
.fp--kishuf .k-head {
  width: var(--wrap); margin: 0 auto clamp(28px, 4vw, 56px); padding-top: clamp(14px, 2vw, 22px);
  border-top: 1px solid var(--k-line); display: grid; gap: 10px; justify-items: start; text-align: start;
}
.fp--kishuf .k-head__folio { margin: 0; font: 700 .8rem/1.2 var(--f-text); letter-spacing: .22em; color: var(--k-gold); }
.fp--kishuf .k-head__sep { letter-spacing: 0; }
.fp--kishuf .k-head__t {
  margin: 0; padding-bottom: .3em; font-family: 'FS Kishuf', var(--f-brand); font-weight: 400; font-synthesis: none;
  font-size: clamp(2.6rem, 1.4rem + 3.6vw, 5.2rem); line-height: 1.15; color: var(--k-letter); overflow-wrap: normal; text-wrap: balance;
}
.fp--kishuf .k-head__t .k-first { color: var(--k-charge); }
.fp--kishuf .k-head__r { margin: 0; max-width: 56ch; font: 400 var(--fs-lead)/1.6 var(--f-text); color: var(--k-muted); }
@media (min-width: 1156px) {   /* the title reaches 64px here: the glow budget allows it from that size */
  .fp--kishuf .k-head__t { text-shadow: var(--k-glow); }
  .fp--kishuf .k-head__t .k-first { text-shadow: var(--k-glow-bolt); }
}

/* ---------- three-way switch (kit.k_modes + K.modes) ---------- */
.fp--kishuf .k-modes {
  --k-mp: 5px; --k-mg: 4px; position: relative; display: inline-grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--k-mg); padding: var(--k-mp); border: 1px solid var(--k-line); border-radius: 18px;
}
.fp--kishuf .k-modes__b {
  display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 64px; padding: 8px 12px;
  border: 0; border-radius: 13px; background: transparent; color: var(--k-cream); font: inherit; text-align: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--k-t-micro) var(--k-ease), box-shadow var(--k-t-micro) var(--k-ease);
}
.fp--kishuf .k-modes__s {
  font-family: 'FS Kishuf', var(--f-brand); font-weight: 400; font-synthesis: none; font-size: 1.75rem; line-height: 1;
  padding-bottom: .3em; color: var(--k-letter); white-space: nowrap;
}
.fp--kishuf .k-modes__b[data-k-mode="1"] .k-modes__s { font-family: 'FS Kishuf Bolt', var(--f-brand); color: var(--k-charge); }
.fp--kishuf .k-modes__s .k-first { color: var(--k-charge); }
.fp--kishuf .k-modes__l { font: 800 14px/1.15 var(--f-text); color: var(--k-cream); }
.fp--kishuf .k-modes__d { font: 400 12.5px/1.3 var(--f-text); color: var(--k-muted); }
.fp--kishuf .k-modes__b[aria-pressed="true"] { background: rgba(245,200,66,.08); box-shadow: inset 0 0 0 1.5px var(--k-gold); }
.fp--kishuf .k-modes__b[aria-pressed="true"] .k-modes__l { color: var(--k-gold); }
@media (hover: hover) { .fp--kishuf .k-modes__b:hover:not([aria-pressed="true"]) { background: rgba(245,200,66,.05); } }
.fp--kishuf .k-modes--compact .k-modes__b { min-height: 56px; padding: 6px 8px; }
.fp--kishuf .k-modes--compact .k-modes__s { font-size: 1.6rem; }
/* "now showing" (K.modes().demo): a 2px underline that slides between the equal columns, demos only */
.fp--kishuf .k-modes__now {
  position: absolute; bottom: calc(var(--k-mp) + 3px); inset-inline-start: var(--k-mp); height: 2px; border-radius: 2px;
  width: calc((100% - 2 * var(--k-mp) - 2 * var(--k-mg)) / 3); background: var(--k-gold); opacity: 0; pointer-events: none;
  transform: translateX(calc(var(--k-now, 0) * (100% + var(--k-mg)) * -1));
  transition: transform 420ms var(--k-ease-cam), opacity var(--k-t-ui) var(--k-ease);
}
.fp--kishuf .k-modes.is-demo .k-modes__now { opacity: 1; }
html:not(.js-motion) .fp--kishuf .k-modes__now { transition: none; }

/* ---------- plate: specimen on a drawn baseline. Set --k-size (the specimen size, a length without em: px, rem, vw,
   svh, min() or clamp()) and --k-lh (its line-height) on .k-plate or above it; --k-top if the first line box does not
   start at the plate's top (its padding-top). The plate sets its own font, so the Kishuf strut fixes the baseline ---------- */
.fp--kishuf .k-plate {
  --k-lh: 1.35; --k-top: 0px; position: relative;
  font-family: 'FS Kishuf', var(--f-brand); font-weight: 400; font-synthesis: none; font-size: var(--k-size); line-height: var(--k-lh);
  --k-bl: calc(var(--k-top) + var(--k-size) * ((var(--k-lh) - 1.1) * .5 + .8));   /* baseline, from the plate's top */
}
.fp--kishuf .k-plate__base, .fp--kishuf .k-plate__x, .fp--kishuf .k-plate__band { position: absolute; inset-inline: 0; height: 0; pointer-events: none; }
.fp--kishuf .k-plate__base { top: var(--k-bl); border-top: 1px solid var(--k-base); }
.fp--kishuf .k-plate__x { top: calc(var(--k-bl) - var(--k-size) * var(--k-xh, .523)); border-top: 1px solid var(--k-xline); }
.fp--kishuf .k-plate__band { top: var(--k-bl); height: calc(var(--k-size) * .62); background: var(--k-band); }
.fp--kishuf .k-plate__lab { position: absolute; inset-inline-end: 0; font: 500 12.5px/1 var(--f-text); letter-spacing: .04em; color: var(--k-muted); white-space: nowrap; pointer-events: none; }
.fp--kishuf .k-plate__lab--base { top: calc(var(--k-bl) + 6px); }
.fp--kishuf .k-plate__lab--x { top: calc(var(--k-bl) - var(--k-size) * var(--k-xh, .523) - 18px); }
.fp--kishuf .k-plate__lab--band { top: calc(var(--k-bl) + var(--k-size) * .62 - 18px); }

/* ---------- margin note (1024px and up), numbered caption on smaller screens; parts position them ---------- */
.fp--kishuf .k-note { margin: 0; max-width: 15ch; font: 400 16px/1.45 var(--f-text); color: var(--k-muted); }
.fp--kishuf .k-note b { display: block; font-weight: 700; color: var(--k-cream); }
.fp--kishuf .k-note__lead { position: absolute; overflow: visible; pointer-events: none; }
.fp--kishuf .k-note__lead :is(path, line, polyline) { fill: none; stroke: var(--k-gold); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.fp--kishuf .k-note__dot { position: absolute; width: 7px; height: 7px; translate: -50% -50%; border-radius: 50%; background: var(--k-gold); pointer-events: none; }
.fp--kishuf .k-note__n {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px;
  border: 1.5px solid var(--k-gold); font: 700 12.5px/1 var(--f-text); color: var(--k-gold); font-variant-numeric: tabular-nums;
}
@media (max-width: 700px) { .fp--kishuf .k-note { max-width: none; font-size: 15px; } }

/* ---------- detail callout (loupe) and the drawn ring mark ---------- */
.fp--kishuf .k-loupe {
  position: absolute; width: 230px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; pointer-events: none;
  background: rgba(11,7,22,.6); box-shadow: inset 0 0 0 1.5px var(--k-gold);
}
.fp--kishuf .k-loupe__copy { position: absolute; transform-origin: var(--k-ox, 50%) var(--k-oy, 50%); transform: scale(2.5); }
.fp--kishuf .k-loupe__lab { font: 600 13px/1.2 var(--f-text); letter-spacing: .06em; color: var(--k-muted); white-space: nowrap; }
.fp--kishuf .k-ring { position: absolute; overflow: visible; pointer-events: none; max-width: none; }
.fp--kishuf .k-ring circle {
  fill: none; stroke: #fff3c4; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linecap: round;
  stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 700ms var(--k-ease);
}
.fp--kishuf .k-ring.is-drawn circle { stroke-dashoffset: 0; }
html:not(.js-motion) .fp--kishuf .k-ring circle { stroke-dashoffset: 0; transition: none; }

/* ---------- exhibition label, icons ---------- */
.fp--kishuf .k-label { margin: 10px 0 0; font: 400 13.5px/1.45 var(--f-text); color: var(--k-muted); }
.fp--kishuf .k-label b { font-weight: 700; color: var(--k-gold); }
.fp--kishuf .k-ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- utilities ---------- */
@media (hover: hover) { .fp--kishuf .k-only-touch { display: none !important; } }
@media (hover: none) { .fp--kishuf .k-only-hover { display: none !important; } }
.fp--kishuf .k-sticky { position: sticky; top: var(--k-nav); }
.fp--kishuf:has([data-nav].is-hidden:not(:focus-within):not(.is-open)) .k-sticky { top: calc(8px + env(safe-area-inset-top)); }

/* ---------- page resets ---------- */
.fp--kishuf figure { margin: 0; }
.fp--kishuf .fp-sec { padding-block: var(--k-sec); }
/* the next-font card is not laid out (so its face, 37 KB, is not fetched) until it is near the viewport */
.fp--kishuf .fp-next { content-visibility: auto; contain-intrinsic-size: auto 420px; }
/* one focus style (the studio editor keeps its own dashed outline) */
.fp--kishuf :focus-visible:where(:not([contenteditable])) { outline: 3px solid var(--k-gold); outline-offset: 3px; }
/* hover looks only for real hover: font-page.css lifts on :hover (sticky after a tap) and on :focus-visible */
.fp--kishuf :is(.fp-chip, .fp-tile, .fp-switch a, .fp-btn):focus-visible:not(:hover) { transform: none; }
.fp--kishuf .fp-btn:focus-visible:not(:hover) { box-shadow: none; }
@media (hover: none) {
  .fp--kishuf :is(.fp-chip, .fp-tile, .fp-switch a, .fp-btn):hover { transform: none; }
  .fp--kishuf .fp-btn:hover { box-shadow: none; }
  .fp--kishuf :is(.fp-chip, .fp-tile, .fp-switch a):hover:not([aria-pressed="true"]):not([aria-current="page"]) { border-color: var(--fp-line); }
}
@media (pointer: coarse) {
  .fp--kishuf .fp-chip { min-height: 44px; }
  .fp--kishuf .fp-switch a { min-height: 36px; display: inline-flex; align-items: center; }
}

/* ---------- phone rails (K.swipe) ---------- */
.fp--kishuf .k-swipe__nav, .fp--kishuf .k-dots { display: none; }

/* ============================ טלפון ============================ */
@media (max-width: 700px) {
  /* מעבר בין פונטים: שורה אחת שמחליקים, במקום שלוש שורות של כפתורים */
  .fp--kishuf .fp-crumbs { margin-top: calc(84px + env(safe-area-inset-top)); display: grid; grid-template-columns: auto auto 1fr; row-gap: 12px; }
  .fp--kishuf .fp-switch {
    grid-column: 1 / -1; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to left, transparent, #000 14px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to left, transparent, #000 14px, #000 calc(100% - 28px), transparent);
  }
  .fp--kishuf .fp-switch::-webkit-scrollbar { display: none; }
  .fp--kishuf .fp-switch a { flex: none; }

  /* a clear line between sections: a control can never read as belonging to the next one */
  .fp--kishuf .fp-sec { border-top: 1px solid var(--k-line); }

  /* a rail: what keeps it a rail is stronger than any part's grid rule (a part's grid-template-columns once crushed
     the first anatomy card to 38px); the card width and gaps stay at normal strength so a part can tune them */
  .fp--kishuf .k-swipe.k-swipe { display: grid; grid-template-columns: none; grid-auto-flow: column; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  .fp--kishuf .k-swipe.k-swipe > * { scroll-snap-align: start; grid-column: auto !important; grid-row: auto !important; }
  .fp--kishuf .k-swipe { grid-auto-columns: 84%; align-items: stretch; width: 100%; gap: 12px; padding: 4px var(--gutter) 10px; scroll-padding-inline: var(--gutter); }
  .fp--kishuf .k-swipe::-webkit-scrollbar { display: none; }
  .fp--kishuf .k-swipe__nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; }
  .fp--kishuf .k-swipe__n { font: 600 12.5px/1 var(--f-text); color: var(--k-muted); font-variant-numeric: tabular-nums; }
  .fp--kishuf .k-dots { display: flex; justify-content: center; gap: 7px; }
  .fp--kishuf .k-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,241,201,.25); transition: background-color .25s, width .25s; }
  .fp--kishuf .k-dots i.is-on { width: 20px; border-radius: 99px; background: var(--k-gold); }
}

/* ===== 10-backdrop.css ===== */
/* ---------- רקע: הרינדורים של הטירה של דניאל, מטושטשים כמו בעדשה (SPEC §5) ----------
   ארבע שכבות (לילה, אולם, טירה, אולם גדול) ושכבת ברק. כל שכבה נושאת את התמונה שלה ב---src ומציירת אותה רק עם .is-near.
   ההצללה של כל אזור מצוירת בתוך השכבה עצמה: הצבע שלה הוא צבע העמוד, ולכן התוצאה זהה לשכבת הצללה נפרדת,
   אבל במנוחה יש שכבה מורכבת אחת בלבד, ובמעבר בין אזורים שתיים.
   ה-html בלי רקע, ולכן הרקע של ה-body נצבע על הקנבס, והשכבות ב-z-index שלילי יושבות מעליו ומתחת לתוכן.
   העטיפה display: contents: לעטיפה קבועה (fixed) כרום נותן שכבה מורכבת משלה (ריקה), כך שמעבר בין אזורים היה מגיע
   לשלוש. בלי קופסה לעטיפה: שכבה אחת במנוחה, שתיים במעבר או בברק.
   כל שכבה גדולה מהמסך ב-9% למעלה ולמטה וב-4% לצדדים, בגובה 118vh (ולא באחוזים מהמסך) כדי שבטלפון התמונה לא תשנה
   גודל כשסרגל הכתובת נעלם. */
.fp--kishuf .k-bg { display: contents; --k-bg-travel: min(12vh, 110px); }
.fp--kishuf .k-bg__l, .fp--kishuf .k-bg__lit {
  position: fixed; top: -9vh; height: 118vh; left: -4%; right: -4%; z-index: -1; pointer-events: none;
  scale: 1.06; --pos: 50% 45%;
}

/* ההצללה: ההגדרה ב-SPEC היא ביחס למסך. השכבה גדולה מהמסך (118% x 108%), אז המיקומים הומרו לקופסה של השכבה:
   y בשכבה = (y במסך + 9%) / 118%, רוחב 120% מהמסך = 111.1% מהשכבה, גובה 70% = 59.3%. */
.fp--kishuf .k-bg__l {
  opacity: 0; visibility: hidden; background: var(--shade);
  transition: opacity .2s linear, visibility .2s;
}
.fp--kishuf .k-bg__l.is-near { background: var(--shade), var(--src) var(--pos) / cover no-repeat; }
.fp--kishuf .k-bg__l.is-on { opacity: .62; visibility: visible; }
.fp--kishuf .k-bg__l.is-xf { will-change: opacity; }

/* לילה: הירח מעל הכותרת, הטירה מתחת לה. במסך: רדיאלי 120% 70% ב-50% 42%, ולינארי .62 / .38 ב-22% / .42 ב-55% / .86 */
.fp--kishuf .k-bg__l[data-k-bg="night"] {
  --pos: 50% 40%;
  --shade: radial-gradient(111.1% 59.3% at 50% 43.2%, rgba(11,7,22,0), rgba(11,7,22,.55) 70%, rgba(11,7,22,.85)),
           linear-gradient(180deg, rgba(11,7,22,.62) 7.6%, rgba(11,7,22,.38) 26.3%, rgba(11,7,22,.42) 54.2%, rgba(11,7,22,.86) 92.4%);
}
.fp--kishuf .k-bg__l.is-on[data-k-bg="night"] { opacity: .78; }
/* לאורך (טלפון, טאבלט) האליפסה של 120% x 70% צרה מדי (כ-470px ברוחב 390) ומחשיכה את הצדדים, והטירה כמעט נעלמת.
   נמדד ב-390x844: התרומה בגיבור עולה מ-6.1 / 15.7 ל-10.8 / 27.7, והפיקסל הבהיר ביותר מתחת לטקסט קטן L 0.040 (הגבול 0.0567) */
@media (orientation: portrait) {
  .fp--kishuf .k-bg__l[data-k-bg="night"] {
    --shade: radial-gradient(111.1% 59.3% at 50% 43.2%, rgba(11,7,22,0), rgba(11,7,22,.1) 70%, rgba(11,7,22,.3)),
             linear-gradient(180deg, rgba(11,7,22,.55) 7.6%, rgba(11,7,22,.28) 26.3%, rgba(11,7,22,.32) 54.2%, rgba(11,7,22,.8) 92.4%);
  }
}
/* שלושת האחרים צפופים יותר: אף טקסט לא יושב על פיקסל רקע בהיר מ-rgb(70,64,88), כדי ש---k-muted יישאר 4.5:1.
   כוונן במדידה על הטקסט האמיתי ב-390 וב-1440, עם מרווח של כ-20% מהגבול (הבהיר ביותר מתחת לטקסט: L 0.045, 0.045, 0.041) */
.fp--kishuf .k-bg__l[data-k-bg="hall"] {
  --shade: radial-gradient(111.1% 59.3% at 50% 43.2%, rgba(11,7,22,.45), rgba(11,7,22,.62) 70%, rgba(11,7,22,.85)),
           linear-gradient(180deg, rgba(11,7,22,.5) 7.6%, rgba(11,7,22,.3) 30%, rgba(11,7,22,.3) 70%, rgba(11,7,22,.65) 92.4%);
}
.fp--kishuf .k-bg__l[data-k-bg="castle"] {
  --shade: radial-gradient(111.1% 59.3% at 50% 43.2%, rgba(11,7,22,.45), rgba(11,7,22,.62) 70%, rgba(11,7,22,.85)),
           linear-gradient(180deg, rgba(11,7,22,.5) 7.6%, rgba(11,7,22,.3) 30%, rgba(11,7,22,.3) 70%, rgba(11,7,22,.65) 92.4%);
}
.fp--kishuf .k-bg__l[data-k-bg="great"] {
  --shade: radial-gradient(111.1% 59.3% at 50% 43.2%, rgba(11,7,22,.35), rgba(11,7,22,.55) 70%, rgba(11,7,22,.8)),
           linear-gradient(180deg, rgba(11,7,22,.45) 7.6%, rgba(11,7,22,.25) 30%, rgba(11,7,22,.25) 70%, rgba(11,7,22,.6) 92.4%);
}

/* הברק: התאום המואר של הלילה, באותו מקום ובאותה תזוזה, מעל ההצללה, רק סביב נקודת המכה. בלי mix-blend-mode */
.fp--kishuf .k-bg__lit {
  --pos: 50% 40%; opacity: 0; visibility: hidden;
  -webkit-mask: radial-gradient(circle at var(--lx, 50%) var(--ly, 40%), #000 0, rgba(0,0,0,.6) 14vmax, rgba(0,0,0,.18) 30vmax, transparent 50vmax) no-repeat;
          mask: radial-gradient(circle at var(--lx, 50%) var(--ly, 40%), #000 0, rgba(0,0,0,.6) 14vmax, rgba(0,0,0,.18) 30vmax, transparent 50vmax) no-repeat;
}
.fp--kishuf .k-bg__lit.is-near { background: var(--src) var(--pos) / cover no-repeat; }
.fp--kishuf .k-bg__lit.is-pulse { visibility: visible; will-change: opacity; }

/* מעבר בלי אנימציה (כשהעמוד נפתח באמצע, למשל אחרי רענון) */
.fp--kishuf .k-bg.is-instant .k-bg__l { transition: none !important; }
/* dy.css מקצר כל מעבר ל-.001ms בתנועה מופחתת (הגדרת המערכת וגם "פחות תנועה" באתר). כאן מעבר של 200ms בשקיפות
   בלבד, בלי תזוזה, עדיף על החלפה חדה של כל המסך */
html.reduce-motion .fp--kishuf .k-bg .k-bg__l { transition-duration: .2s !important; }
@media (prefers-reduced-motion: reduce) { .fp--kishuf .k-bg .k-bg__l { transition-duration: .2s !important; } }

@keyframes k-bg-in { from { opacity: 0; } }
@keyframes k-bg-push { from { scale: 1.06; } }
@keyframes k-bg-par { from { translate: 0 calc(var(--k-bg-travel) * .5); } to { translate: 0 calc(var(--k-bg-travel) * -.5); } }

@media (prefers-reduced-motion: no-preference) {
  html.js-motion .fp--kishuf .k-bg__l, html.js-motion .fp--kishuf .k-bg__lit { scale: none; }
  html.js-motion .fp--kishuf .k-bg__l {
    transition: opacity var(--k-t-scene, 1.2s) ease-in-out, visibility var(--k-t-scene, 1.2s), scale 1.2s var(--k-ease-cam, cubic-bezier(.2,.7,.2,1));
  }
  /* הכניסה, פעם אחת: הלילה מופיע ב-1.4 שניות ומתקרב לאט מ-1.06 ל-1 ב-2.4 שניות. שכבת הברק מתקרבת איתו כדי להישאר מיושרת */
  html.js-motion .fp--kishuf .k-bg.is-intro .k-bg__l.is-on[data-k-bg="night"] {
    animation: k-bg-in 1.4s ease-out backwards, k-bg-push var(--k-t-push, 2.4s) var(--k-ease-cam, cubic-bezier(.2,.7,.2,1)) backwards;
  }
  html.js-motion .fp--kishuf .k-bg.is-intro .k-bg__lit { animation: k-bg-push var(--k-t-push, 2.4s) var(--k-ease-cam, cubic-bezier(.2,.7,.2,1)) backwards; }
}

/* פרלקס לכל אזור, בלי JS בכל פריים: אנימציה שמונעת מהגלילה. --r0 / --r1 = הגלילה שבה מרכז המסך עובר את תחילת
   האזור ואת סופו (JS כותב אותם רק כשהפריסה משתנה). בדפדפן בלי scroll-driven animations ה-JS מזיז את השכבה */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    html.js-motion .fp--kishuf .k-bg__l.is-on, html.js-motion .fp--kishuf .k-bg__l.is-out, html.js-motion .fp--kishuf .k-bg__lit.is-pulse {
      animation: k-bg-par 1ms linear both; animation-timeline: scroll(root block); animation-range: var(--r0) var(--r1);
    }
    html.js-motion .fp--kishuf .k-bg.is-intro .k-bg__l.is-on[data-k-bg="night"] {
      animation: k-bg-in 1.4s ease-out backwards, k-bg-push var(--k-t-push, 2.4s) var(--k-ease-cam, cubic-bezier(.2,.7,.2,1)) backwards, k-bg-par 1ms linear both;
      animation-timeline: auto, auto, scroll(root block); animation-range: normal, normal, var(--r0) var(--r1);
    }
    html.js-motion .fp--kishuf .k-bg.is-intro .k-bg__lit.is-pulse {
      animation: k-bg-push var(--k-t-push, 2.4s) var(--k-ease-cam, cubic-bezier(.2,.7,.2,1)) backwards, k-bg-par 1ms linear both;
      animation-timeline: auto, scroll(root block); animation-range: normal, var(--r0) var(--r1);
    }
  }
}

/* ============================ טלפון ============================ */
@media (max-width: 700px) {
  .fp--kishuf .k-bg { --k-bg-travel: min(8vh, 64px); }
  /* המגדלים נשארים מאחורי המילה */
  .fp--kishuf .k-bg__l[data-k-bg="night"], .fp--kishuf .k-bg__lit { --pos: 40% 30%; }
}

/* ===== 20-hero.css ===== */
/* ===========================================================================
   Hero (SPEC §6): the name, the motto and the switch. Markup = Daniel's way (first letter of each word in Bolt).
   Every row has a fixed block size, so a late font moves nothing. Owner: sections/hero.py + js/20-hero.js.
   =========================================================================== */
.fp--kishuf .k-hero {
  --k-word: min(calc(11.7rem + 7.8vw), 58vw, 21rem, 31svh);   /* one continuous formula, no 700/701 cliff */
  --k-hgap: clamp(8px, 1.2vh, 18px);
  min-height: min(calc(100svh - 128px), 900px); display: grid; align-content: center;
  padding: clamp(0px, calc(2.4vh - 12px), 16px) 0 clamp(20px, 3vw, 40px);
}

/* ---------- background: seeded stars + one static haze; the top fades in so there is no seam under the crumbs ---------- */
.fp--kishuf .k-hero__bg {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 120px); mask-image: linear-gradient(to bottom, transparent, #000 120px);
}
.fp--kishuf .k-hero .k-sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.fp--kishuf .k-hero .k-sky--tw { opacity: .55; }
.js-motion .fp--kishuf .k-hero .k-sky--a { animation: k-hero-tw 4.6s ease-in-out infinite alternate; }
.js-motion .fp--kishuf .k-hero .k-sky--b { animation: k-hero-tw 6.2s ease-in-out -3.1s infinite alternate; }
@keyframes k-hero-tw { from { opacity: .15; } to { opacity: .85; } }
.fp--kishuf .k-hero .k-haze {
  position: absolute; inset: 0;
  background: radial-gradient(62% 52% at 50% 36%, rgba(245,200,66,.10), rgba(245,200,66,0) 62%),
              radial-gradient(120% 90% at 50% 40%, rgba(138,92,255,0) 55%, rgba(138,92,255,.12) 100%);
}

/* ---------- the stack ---------- */
.fp--kishuf .k-hero__inner { justify-items: center; text-align: center; gap: var(--k-hgap); }

/* kicker: separators belong to the item before them, so a line never starts with one */
.fp--kishuf .k-hero .k-kicker { justify-content: center; gap: 0; margin: 0; min-height: 1.2em; color: var(--k-gold); }
.fp--kishuf .k-hero .k-kicker span + span::before { content: none; }
.fp--kishuf .k-hero .k-kicker__i { white-space: nowrap; }
.fp--kishuf .k-hero .k-kicker__i:not(:last-child)::after { content: "·"; margin-inline: 12px; opacity: .7; }

/* title block: an inline grid, flush right, centred as a block */
.fp--kishuf .k-hero__title { position: relative; display: grid; justify-items: start; width: max-content; max-width: 100%; }
.fp--kishuf .k-hero .k-hero__word {
  box-sizing: border-box; height: 1.06em; margin: 0; padding: .04em .02em 0;
  font-family: 'FS Kishuf', var(--f-brand); font-weight: 400; font-synthesis: none; font-size: var(--k-word); line-height: 1;
  color: var(--k-letter); text-shadow: var(--k-glow); overflow-wrap: normal; white-space: nowrap;
  user-select: none; -webkit-user-select: none; text-align: start;
}
.fp--kishuf .k-hero .k-hero__word .k-g.is-bolt, .fp--kishuf .k-hero .k-motto .k-g.is-bolt { text-shadow: var(--k-glow-bolt); }
.fp--kishuf .k-hero .k-motto {
  /* it tucks .03 word-em into the word's box: the Bolt ו tail (-.247em) still clears its top by about .05 word-em */
  box-sizing: border-box; height: 1.42em; margin: calc(var(--k-word) * -.03) 0 0; padding: 0 0 .42em;
  font-family: 'FS Kishuf', var(--f-brand); font-weight: 400; font-synthesis: none; font-size: calc(var(--k-word) * .25); line-height: 1;
  color: var(--k-letter); white-space: nowrap; user-select: none; -webkit-user-select: none; text-align: start;
}
.fp--kishuf .k-hero .k-line { cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* each glyph box as wide as its slot: a Regular -> Bolt swap inside a floating (rotated) layer then keeps its box,
   so Chromium reports no layout shift for a strike (with the advance as width it reported ~.0002 per strike) */
.fp--kishuf .k-hero .k-line .k-g { width: calc(var(--w) * 1em); transition: color 120ms var(--k-ease); }

/* floor light: one per word slot, a soft ellipse on the baseline (no filter), it follows --dx with the slot's ::after */
.fp--kishuf .k-hero__word .k-l::after, .fp--kishuf .k-hero__word .k-l::before {
  content: ""; position: absolute; top: .725em; height: .05em; pointer-events: none;
  inset-inline-start: calc(var(--a) * .18em); width: calc(var(--a) * .64em); border-radius: 50%;
}
.fp--kishuf .k-hero__word .k-l::after { background: radial-gradient(closest-side, rgba(245,200,66,.75), rgba(245,200,66,0)); opacity: .5; }
/* the flare on a strike: a brighter copy on ::before (it follows --dx like ::after) */
.fp--kishuf .k-hero__word .k-l::before {
  translate: calc(var(--dx, 0) * 1em) 0; background: radial-gradient(closest-side, rgba(255,246,216,.95), rgba(245,200,66,0)); opacity: 0;
}
.fp--kishuf .k-hero__word .k-line.is-glide .k-l::before { transition: translate var(--k-t-settle) var(--k-ease); }
.fp--kishuf .k-hero__word .k-l.is-flare-a::before { animation: k-hero-flare-a 500ms var(--k-ease-decay); }
.fp--kishuf .k-hero__word .k-l.is-flare-b::before { animation: k-hero-flare-b 500ms var(--k-ease-decay); }
@keyframes k-hero-flare-a { 0% { opacity: 0; transform: scaleX(1); } 16% { opacity: .9; transform: scaleX(1.4); } 100% { opacity: 0; transform: scaleX(1); } }
@keyframes k-hero-flare-b { 0% { opacity: 0; transform: scaleX(1); } 16% { opacity: .9; transform: scaleX(1.4); } 100% { opacity: 0; transform: scaleX(1); } }

/* float: the word's letters each (core .k-float), the floor light breathes with its letter; the motto as one unit */
.js-motion .fp--kishuf .k-hero__word .k-l::after { animation: k-hero-floor 5.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.15s); }
@keyframes k-hero-floor { 0%, 100% { transform: scaleX(1); opacity: .5; } 50% { transform: scaleX(.78); opacity: .3; } }
.js-motion .fp--kishuf .k-hero .k-motto .k-line { animation: k-hero-motto 7s ease-in-out infinite; }
@keyframes k-hero-motto { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.03em); } }

/* hover preview (fine pointer only, K.pick onPreview): brighter letter + a gold tick on its baseline; no state change */
.fp--kishuf .k-hero .k-g::before {
  content: ""; position: absolute; inset-inline: 20%; top: calc(.75em - 1px); height: 2px; border-radius: 1px;
  background: var(--k-gold); opacity: 0; transition: opacity 120ms var(--k-ease); pointer-events: none;
}
@media (hover: hover) {
  .fp--kishuf .k-hero .k-l.is-hot .k-g { color: var(--k-charge); }
  .fp--kishuf .k-hero .k-l.is-hot .k-g::before { opacity: 1; }
}

/* ---------- margin note (1024px and up): 40px right of the כ, a leader to the כ's top-right corner (Bolt form) ---------- */
.fp--kishuf .k-hero__title { --k-dot-x: calc(var(--k-word) * .108); --k-dot-y: calc(var(--k-word) * .231); }
.fp--kishuf .k-hero .k-hero__note {
  position: absolute; left: calc(100% + 40px); top: calc(var(--k-dot-y) - 12px); width: max-content; max-width: 12.5em;
  text-align: start; transition: opacity 250ms var(--k-ease);
}
.fp--kishuf .k-hero .k-hero__lead-line { left: calc(100% - var(--k-dot-x)); top: var(--k-dot-y); width: calc(var(--k-dot-x) + 32px); height: 1px; }
.fp--kishuf .k-hero .k-hero__lead-line line { stroke-dasharray: 1 1; stroke-dashoffset: 0; transition: stroke-dashoffset 280ms var(--k-ease); }
.fp--kishuf .k-hero .k-hero__dot { left: calc(100% - var(--k-dot-x)); top: var(--k-dot-y); transition: opacity 160ms var(--k-ease); }
/* during the intro the note waits for the first strike */
.fp--kishuf .k-hero.is-intro:not(.is-noted) .k-hero__note, .fp--kishuf .k-hero.is-intro:not(.is-noted) .k-hero__dot { opacity: 0; }
.fp--kishuf .k-hero.is-intro:not(.is-noted) .k-hero__lead-line line { stroke-dashoffset: 1; }
.fp--kishuf .k-hero.is-intro.is-noted .k-hero__note { transition-delay: 200ms; }
@media (max-width: 1023px) { .fp--kishuf .k-hero :is(.k-hero__note, .k-hero__lead-line, .k-hero__dot) { display: none; } }

/* ---------- switch, hint row, lead, actions ---------- */
.fp--kishuf .k-hero .k-modes { width: min(100%, 540px); }
.fp--kishuf .k-hero .k-modes__b { min-height: 64px; }
.fp--kishuf .k-hero__hint { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; min-height: 36px; }
.fp--kishuf .k-hero .k-hint { margin: 0; font: 500 .92rem/1.4 var(--f-text); color: var(--k-muted); }
.fp--kishuf .k-hero .k-motion-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px 0 12px; border: 1px solid var(--k-line);
  border-radius: 999px; background: transparent; color: var(--k-cream); font: 600 .85rem/1 var(--f-text); cursor: pointer;
  transition: border-color var(--k-t-micro) var(--k-ease), background-color var(--k-t-micro) var(--k-ease);
}
.fp--kishuf .k-hero .k-motion-chip .k-ico { width: 16px; height: 16px; }
.fp--kishuf .k-hero .k-motion-chip .k-ico--play { display: none; }
.fp--kishuf .k-hero .k-motion-chip[aria-pressed="true"] .k-ico--pause { display: none; }
.fp--kishuf .k-hero .k-motion-chip[aria-pressed="true"] .k-ico--play { display: block; }
.fp--kishuf .k-hero .k-motion-chip[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--k-gold); color: var(--k-gold); }
@media (hover: hover) { .fp--kishuf .k-hero .k-motion-chip:hover { border-color: rgba(245,200,66,.5); background: rgba(245,200,66,.05); } }
.fp--kishuf .k-hero .k-hero__lead { margin: 0 auto; min-height: 1.65em; color: var(--k-muted); }
.fp--kishuf .k-hero .k-hero__cta { justify-content: center; min-height: 48px; }
.fp--kishuf .k-hero .k-hero__cta .fp-btn { white-space: nowrap; }

/* ---------- motion: letters wait for the font (K.ready, 2.5s cap), with a CSS failsafe at 3s ---------- */
.js-motion:not(.k-ready) .fp--kishuf .k-hero :is(.k-line, .k-modes__s) { opacity: 0; animation: k-hero-failsafe 1ms 3s forwards; }
@keyframes k-hero-failsafe { to { opacity: 1; } }
/* the Rubik rows wait for Rubik too (js/20-hero.js adds .is-type): a centred line that swaps its font moves sideways,
   and Chromium counts that as a layout shift. Hidden boxes are laid out (no height change) but not tracked. */
.js-motion .fp--kishuf .k-hero:not(.is-type) :is(.k-kicker, .k-modes__l, .k-modes__d, .k-hero__hint, .k-hero__lead, .k-hero__cta, .k-hero__note) {
  visibility: hidden; animation: k-hero-failsafe-v 1ms 3s forwards;
}
@keyframes k-hero-failsafe-v { to { visibility: visible; } }
/* the rise (T0): Regular letters come up in reading order, the motto from +300ms */
/* the slot fades (so its floor light comes with its letter), the glyph rises; the float keeps its own clock */
.fp--kishuf .k-hero.is-rise .k-hero__word .k-l { --k-rd: calc(var(--i, 0) * 80ms); }
.fp--kishuf .k-hero.is-rise .k-motto .k-l { --k-rd: calc(300ms + var(--i, 0) * 45ms); }
.fp--kishuf .k-hero.is-rise .k-line .k-l { animation: k-hero-in var(--k-t-reveal) var(--k-ease) both; animation-delay: var(--k-rd); }
.fp--kishuf .k-hero.is-rise .k-line .k-g { animation: k-hero-rise var(--k-t-reveal) var(--k-ease) both; animation-delay: var(--k-rd); }
@keyframes k-hero-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes k-hero-rise { from { transform: translateY(.12em); } to { transform: none; } }
html:not(.js-motion) .fp--kishuf .k-hero :is(.k-hero__note, .k-hero__dot, .k-hero__lead-line line, .k-g) { transition: none; }

/* ============================ tablet and phone ============================ */
@media (max-width: 1023px) {
  .fp--kishuf .k-hero { min-height: auto; }
}
@media (max-width: 700px) {
  .fp--kishuf .k-hero { padding: 6px 0 clamp(20px, 3vw, 40px); }
  .fp--kishuf .k-hero .k-modes { width: 100%; }
  .fp--kishuf .k-hero .k-modes__b { min-height: 88px; padding: 8px 4px; }
  .fp--kishuf .k-hero .k-hero__lead { min-height: 3.3em; max-width: 34ch; }
  .fp--kishuf .k-hero .k-hero__cta { justify-self: stretch; flex-wrap: nowrap; }
  .fp--kishuf .k-hero .k-hero__cta .fp-btn { flex: 1 1 0; justify-content: center; padding-inline: 12px; }
}
@media (max-width: 440px) {
  .fp--kishuf .k-hero .k-kicker { letter-spacing: .02em; }
  .fp--kishuf .k-hero .k-kicker__i:not(:last-child)::after { margin-inline: 7px; }
}
@media (max-width: 360px) {
  .fp--kishuf .k-hero .k-kicker__i:nth-child(3) { display: none; }
  .fp--kishuf .k-hero .k-kicker__i:nth-child(2)::after { content: none; }
}
@media (max-width: 340px) {
  .fp--kishuf .k-hero .k-hero__cta { flex-direction: column; }
  .fp--kishuf .k-hero .k-hero__cta .fp-btn { flex: none; }
}

/* ===== 30-play.css ===== */
/* ===========================================================================
   סטודיו (spec 7): עורך הכותרות של כישוף. הלוח הוא משטח העבודה היחיד; הבמה היא הדבר.
   מחשב: סרגל (מתג + ביטול/חזרה + שרביט) מעל הבמה, ואז כותרות מוכנות והגדרות.
   טלפון: הבמה קודם, המתג מתחתיה, פס כותרות, מעגן של חמישה כפתורים שהלוחות שלו נפתחים מתחתיו (הבמה לא זזה).
   =========================================================================== */

/* the page already keeps anchors clear of the nav (dy.css scroll-padding-top); landing on #play hides only our top padding */
.fp--kishuf #play.fp-sec { padding-top: clamp(24px, 4vw, 56px); scroll-margin-top: calc(-1 * clamp(24px, 4vw, 56px)); }

/* ---------- the panel ---------- */
.fp--kishuf #play .k-st {
  position: relative; width: var(--wrap); margin-inline: auto; display: grid;
  grid-template-columns: minmax(0, 1fr); grid-template-areas: "bar" "stage" "pres" "set";
  border: 1px solid var(--k-line); border-radius: var(--r-lg); background: rgba(11,7,22,.55); color: var(--k-cream);
}
.fp--kishuf #play .k-st__bar { grid-area: bar; }
.fp--kishuf #play .k-st__stage { grid-area: stage; }
.fp--kishuf #play .k-st__pres { grid-area: pres; }
.fp--kishuf #play .k-st__dock { grid-area: dock; display: none; }
.fp--kishuf #play .k-st__set { grid-area: set; }

/* ---------- row A: switch + tools ---------- */
.fp--kishuf #play .k-st__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  min-height: 72px; padding: 12px 16px; border-bottom: 1px solid var(--k-line);
}
.fp--kishuf #play .k-st__modes .k-modes { width: min(100%, 520px); }
.fp--kishuf #play .k-st__tools { display: flex; align-items: center; gap: 8px; }
.fp--kishuf #play .k-st__div { width: 1px; height: 28px; margin-inline: 6px; background: var(--k-line); }
.fp--kishuf #play .k-st__ib, .fp--kishuf #play .k-st__wand {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--k-line); border-radius: 999px; background: transparent; color: var(--k-cream);
  font: 600 15px/1 var(--f-text); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--k-t-micro) var(--k-ease), box-shadow var(--k-t-micro) var(--k-ease), color var(--k-t-micro) var(--k-ease);
}
.fp--kishuf #play .k-st__wand { padding: 0 16px 0 18px; }
.fp--kishuf #play .k-st__ib:disabled { color: #7d6f9c; border-color: rgba(245,200,66,.08); cursor: default; }
.fp--kishuf #play :is(.k-st__wand, .k-st__fab)[aria-pressed="true"] { background: rgba(245,200,66,.08); box-shadow: inset 0 0 0 1.5px var(--k-gold); color: var(--k-gold); }

/* ---------- row B: the stage ---------- */
.fp--kishuf #play .k-st__stage {
  position: relative; display: grid; align-content: center; min-height: clamp(320px, 50vh, 600px);
  padding: clamp(20px, 4vw, 56px); overflow: hidden;
}
.fp--kishuf #play .k-st[data-bg="parch"] .k-st__stage {
  background-color: var(--k-parchment);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .06 0 0 0 0 .18 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* the sheet: font size and line height of the title, and ruled baselines at the real baselines ((L - 1.1em) / 2 + .8em) */
.fp--kishuf #play .k-st__sheet {
  /* line pitch: never less than the ink of one line's deepest descender plus the next line's tallest letter
     (--k-st-lr for Regular text, --k-st-lb once any letter is Bolt; both measured from the font files in play.py) */
  --base: 1.1; --lh: max(var(--base), var(--k-st-lr, 1.12)); --pt: 0em; --rule: rgba(245,200,66,.10);
  --bl: calc((var(--lh) - 1.1) * .5em + .8em);
  position: relative; font-family: 'FS Kishuf', var(--f-brand); font-weight: 400; font-synthesis: none;
  font-size: var(--k-st-fs, clamp(140px, 14vw, 240px)); line-height: var(--lh);
  background-image: linear-gradient(to bottom, transparent calc(var(--bl) - 1px), var(--rule) calc(var(--bl) - 1px), var(--rule) var(--bl), transparent var(--bl));
  background-size: 100% calc(var(--lh) * 1em); background-position: 0 var(--pt); background-repeat: repeat-y;
}
.fp--kishuf #play .k-st[data-layout="free"] .k-st__sheet { --base: 1.35; text-align: start; }
.fp--kishuf #play .k-st[data-layout="poster"] .k-st__sheet { --base: 1.1; text-align: center; }
.fp--kishuf #play .k-st[data-layout="stack"] .k-st__sheet { --base: .95; text-align: center; }
.fp--kishuf #play .k-st.has-bolt .k-st__sheet { --lh: max(var(--base), var(--k-st-lb, 1.36)); }
.fp--kishuf #play .k-st[data-bg="parch"] .k-st__sheet { --rule: rgba(26,15,46,.12); }

.fp--kishuf #play .k-st__ed {
  position: relative; z-index: 1; min-height: calc(var(--lh) * 1em); padding: var(--pt) 0 .36em;
  white-space: pre-wrap; overflow-wrap: normal; word-break: normal; font-kerning: normal; letter-spacing: 0;
  color: var(--k-letter); caret-color: var(--k-gold); text-shadow: var(--k-glow); outline: none; border-radius: 6px;
}
.fp--kishuf #play .k-st[data-layout="stack"] .k-st__ed { width: min-content; min-width: .5em; margin-inline: auto; }
.fp--kishuf #play .k-st.is-anywhere .k-st__ed { overflow-wrap: anywhere; }
.fp--kishuf #play .k-st__ed .k-b { font-family: 'FS Kishuf Bolt', var(--f-brand); color: var(--k-charge); text-shadow: var(--k-glow-bolt); }
.fp--kishuf #play .k-st__ed .k-nc { font-feature-settings: "calt" 0; }
.fp--kishuf #play .k-st.is-small .k-st__ed, .fp--kishuf #play .k-st.is-small .k-st__ed .k-b { text-shadow: none; }
.fp--kishuf #play .k-st__ed:focus-visible { outline: 2px dashed var(--k-gold); outline-offset: 10px; }
.fp--kishuf #play .k-st__ed.is-clearsel::selection, .fp--kishuf #play .k-st__ed.is-clearsel *::selection { background: transparent; }
.fp--kishuf #play .k-st[data-bg="parch"] .k-st__ed { color: var(--k-ink); caret-color: var(--k-ink); text-shadow: none; }
.fp--kishuf #play .k-st[data-bg="parch"] .k-st__ed .k-b { color: #120a22; text-shadow: none; }
.fp--kishuf #play .k-st[data-bg="parch"] .k-st__ed:focus-visible { outline-color: var(--k-ink); }

.fp--kishuf #play .k-st__ph {
  position: absolute; inset: var(--pt) 0 auto; z-index: 0; color: var(--k-muted); pointer-events: none; white-space: pre-wrap;
}
.fp--kishuf #play .k-st__ph .k-first { color: var(--k-muted); }
.fp--kishuf #play .k-st[data-bg="parch"] .k-st__ph, .fp--kishuf #play .k-st[data-bg="parch"] .k-st__ph .k-first { color: #5e4f79; }
.fp--kishuf #play .k-st__ph[hidden] { display: none; }

/* wand mode: the editor is a surface of letters, not a text field */
.fp--kishuf #play .k-st.is-wand .k-st__ed {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23f5c842' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m4 20 11-11'/%3E%3Cpath d='m13 7 2-2 2 2-2 2z'/%3E%3Cpath d='M19 3v2M18 4h2M20 11v2M19 12h2'/%3E%3C/svg%3E") 3 25, pointer;
  caret-color: transparent; -webkit-user-select: none; user-select: none; touch-action: pan-y; -webkit-touch-callout: none;
}
.fp--kishuf #play .k-st.is-wand .k-st__stage { box-shadow: inset 0 0 0 1.5px rgba(245,200,66,.35); }

/* effects layer: sparks, the wand's tick, the ע underline */
.fp--kishuf #play .k-st__fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.fp--kishuf #play .k-st__sp {
  position: absolute; left: 0; top: 0; width: .5em; height: .5em; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(255,250,230,.95), rgba(245,200,66,.55) 45%, transparent);
}
.fp--kishuf #play .k-st[data-bg="parch"] .k-st__sp { background: radial-gradient(closest-side, rgba(184,134,11,.9), rgba(184,134,11,.4) 45%, transparent); }
.fp--kishuf #play .k-st__tick, .fp--kishuf #play .k-st__ul {
  position: absolute; left: 0; top: 0; height: 3px; border-radius: 2px; background: var(--k-gold); opacity: 0;
}
.fp--kishuf #play .k-st__tick.is-on { opacity: 1; }
.fp--kishuf #play .k-st[data-bg="parch"] :is(.k-st__tick, .k-st__ul) { background: #8a6408; }

/* selection pill */
.fp--kishuf #play .k-st__pill {
  position: absolute; left: 0; top: 0; z-index: 4; display: flex; align-items: center; gap: 2px; padding: 4px;
  border: 1px solid rgba(245,200,66,.45); border-radius: 999px; background: var(--k-deep); color: var(--k-cream);
  box-shadow: 0 8px 24px rgba(0,0,0,.45); opacity: 0; transform: translate(var(--x, 0), calc(var(--y, 0px) + 6px));
  transition: opacity 120ms var(--k-ease), transform 120ms var(--k-ease);
}
.fp--kishuf #play .k-st__pill.is-on { opacity: 1; transform: translate(var(--x, 0), var(--y, 0)); transition-duration: var(--k-t-micro); }
.fp--kishuf #play .k-st__pill[hidden] { display: none; }
.fp--kishuf #play .k-st__pill-b {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px;
  background: transparent; color: var(--k-cream); font: 700 15px/1 var(--f-text); cursor: pointer;
}
.fp--kishuf #play .k-st__pill-b .k-ico { color: var(--k-gold); }
.fp--kishuf #play .k-st__pill-sep { width: 1px; height: 22px; background: var(--k-line); }
.fp--kishuf #play .k-st__pill-k { display: none; padding: 0 10px 0 6px; font: 600 12.5px/1 var(--f-text); color: var(--k-muted); }
@media (pointer: fine) { .fp--kishuf #play .k-st__pill-k { display: inline; } }

/* the phone wand (in the stage corner), toast, PNG veil */
.fp--kishuf #play .k-st__fab {
  position: absolute; z-index: 3; inset-block-end: 10px; inset-inline-end: 10px; display: none; place-items: center;
  width: 48px; height: 48px; padding: 0; border: 1px solid rgba(245,200,66,.4); border-radius: 50%;
  background: var(--k-deep); color: var(--k-cream); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.fp--kishuf #play .k-st__fab .k-ico { width: 22px; height: 22px; }
.fp--kishuf #play .k-st__toast {
  position: absolute; z-index: 4; inset-block-end: 12px; inset-inline-start: 12px; display: flex; align-items: center; gap: 4px;
  padding: 4px 4px 4px 14px; padding-inline: 16px 4px; border: 1px solid var(--k-line); border-radius: 999px; background: var(--k-deep);
  font: 500 14px/1.2 var(--f-text); color: var(--k-cream); opacity: 0; transform: translateY(6px);
  transition: opacity 160ms var(--k-ease), transform 160ms var(--k-ease);
}
.fp--kishuf #play .k-st__toast.is-on { opacity: 1; transform: none; transition-duration: 180ms; }
.fp--kishuf #play .k-st__toast[hidden] { display: none; }
.fp--kishuf #play .k-st__toast-b {
  min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--k-gold);
  font: 700 14px/1 var(--f-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.fp--kishuf #play .k-st__veil { position: absolute; inset: 0; z-index: 5; background: #fff; opacity: 0; pointer-events: none; }

/* ---------- row C: presets ---------- */
.fp--kishuf #play .k-st__pres { display: flex; align-items: center; gap: 10px 14px; padding: 12px 16px; border-top: 1px solid var(--k-line); min-width: 0; }
.fp--kishuf #play .k-st__chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.fp--kishuf #play .k-st__pre {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 3px 16px; flex: none;
  border: 1px solid var(--k-line); border-radius: 999px; background: transparent; color: var(--k-letter);
  font: 400 24px/1.45 'FS Kishuf', var(--f-brand); font-synthesis: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--k-t-micro) var(--k-ease), border-color var(--k-t-micro) var(--k-ease);
}
.fp--kishuf #play .k-st__pt { white-space: nowrap; }
.fp--kishuf #play .k-st__pt .k-first { color: var(--k-charge); }
.fp--kishuf #play .k-st__pre--name { font: 600 15px/1 var(--f-text); color: var(--k-cream); padding-inline: 14px 16px; }

/* ---------- row D: settings ---------- */
.fp--kishuf #play .k-st__set-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 10px 16px; border-top: 1px solid var(--k-line); }
.fp--kishuf #play .k-st__grp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fp--kishuf #play .k-st__grp--share { margin-inline-start: auto; }
.fp--kishuf #play .k-st__lab { font: 700 13px/1.2 var(--f-text); letter-spacing: .06em; color: var(--k-muted); }
.fp--kishuf #play .k-st__seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--k-line); border-radius: 999px; }
.fp--kishuf #play .k-st__seg-b, .fp--kishuf #play .k-st__chip {
  min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--k-cream);
  font: 500 14px/1 var(--f-text); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--k-t-micro) var(--k-ease), box-shadow var(--k-t-micro) var(--k-ease);
}
.fp--kishuf #play .k-st__chip { border: 1px solid var(--k-line); }
.fp--kishuf #play :is(.k-st__seg-b, .k-st__chip, .k-st__kb-b)[aria-pressed="true"] { background: rgba(245,200,66,.08); box-shadow: inset 0 0 0 1.5px var(--k-gold); color: var(--k-gold); font-weight: 700; }
.fp--kishuf #play .k-st__range { width: 140px; height: 44px; margin: 0; accent-color: var(--k-gold); background: transparent; cursor: pointer; }
.fp--kishuf #play .k-st__px { min-width: 4.4ch; font: 600 14px/1 var(--f-text); font-variant-numeric: tabular-nums; color: var(--k-cream); }
.fp--kishuf #play .k-st__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid rgba(245,200,66,.38);
  border-radius: 999px; background: transparent; color: var(--k-cream); font: 600 14.5px/1 var(--f-text); cursor: pointer;
  transition: background-color var(--k-t-micro) var(--k-ease), border-color var(--k-t-micro) var(--k-ease);
}
.fp--kishuf #play .k-st__btn .k-ico { color: var(--k-gold); }
.fp--kishuf #play .k-st__btn.is-done { border-color: var(--k-gold); color: var(--k-gold); }
.fp--kishuf #play [hidden] { display: none !important; }

/* ---------- under the panel: the hint line (space reserved) and the counter ---------- */
.fp--kishuf #play .k-st__foot { width: var(--wrap); margin: 10px auto 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.fp--kishuf #play .k-st__hint { min-height: 1.5em; margin: 0; font: 400 14px/1.5 var(--f-text); color: var(--k-muted); }
.fp--kishuf #play .k-st__count { flex: none; font: 600 13px/1.5 var(--f-text); font-variant-numeric: tabular-nums; color: var(--k-muted); }

/* ---------- keyboard bar (sits on the on-screen keyboard; JS shows it and sets --kb-y) ---------- */
.fp--kishuf #play .k-st__kb {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: 1fr 1.35fr 1fr 1fr .9fr; gap: 4px;
  padding: 6px max(8px, env(safe-area-inset-left)) 6px max(8px, env(safe-area-inset-right));
  border-top: 1px solid rgba(245,200,66,.35); background: var(--k-deep); transform: translateY(var(--kb-y, 0px));
}
.fp--kishuf #play .k-st__kb-b {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; padding: 0 6px; border: 0; border-radius: 12px;
  background: transparent; color: var(--k-cream); font: 600 14px/1.1 var(--f-text); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.fp--kishuf #play .k-st__kb-b:disabled { color: #7d6f9c; }
.fp--kishuf #play .k-st__kb-bolt .k-ico { color: var(--k-gold); width: 18px; height: 18px; }
.fp--kishuf #play .k-st__kb-bolt:disabled .k-ico { color: inherit; }
.fp--kishuf #play .k-st__kb-done { color: var(--k-gold); font-weight: 700; }

/* ---------- hover (real hover only) ---------- */
@media (hover: hover) {
  .fp--kishuf #play :is(.k-st__ib:not(:disabled), .k-st__wand, .k-st__btn, .k-st__pre, .k-st__chip, .k-st__seg-b, .k-st__pill-b, .k-st__toast-b):hover { background-color: rgba(245,200,66,.07); }
  .fp--kishuf #play .k-st__pre:hover { border-color: rgba(245,200,66,.42); }
}
@media (pointer: coarse) {
  .fp--kishuf #play :is(.k-st__seg-b, .k-st__chip, .k-st__pill-b, .k-st__toast-b) { min-height: 44px; }
}

/* ---------- tablet ---------- */
@media (max-width: 1023px) {
  .fp--kishuf #play .k-modes__d { display: none; }
  .fp--kishuf #play .k-modes .k-modes__b { min-height: 56px; padding: 6px 8px; }
  .fp--kishuf #play .k-modes .k-modes__s { font-size: 1.6rem; }
}
@media (min-width: 701px) and (max-width: 1023px) {
  .fp--kishuf #play .k-st__modes { flex: 1 1 100%; }
  .fp--kishuf #play .k-st__modes .k-modes { width: 100%; }
  .fp--kishuf #play .k-st__stage { min-height: 44vh; }
  .fp--kishuf #play .k-st__grp--share { margin-inline-start: 0; flex-basis: 100%; }
}

/* ============================ טלפון ============================ */
@media (max-width: 700px) {
  .fp--kishuf #play.fp-sec { padding-top: 16px; scroll-margin-top: -16px; }
  .fp--kishuf #play .k-head { margin-bottom: 14px; }
  .fp--kishuf #play .k-st__more { display: none; }
  .fp--kishuf #play .k-st { grid-template-areas: "stage" "bar" "pres" "dock" "set"; border-radius: 22px; }
  .fp--kishuf #play .k-st__stage { min-height: 42svh; padding: 16px 16px 64px; border-radius: 21px 21px 0 0; }
  .fp--kishuf #play .k-st__sheet { font-size: var(--k-st-fs, 132px); }
  .fp--kishuf #play .k-st__fab { display: grid; }
  .fp--kishuf #play .k-st__toast { inset-inline-end: 68px; }
  .fp--kishuf #play .k-st__bar { min-height: 0; padding: 8px; border-bottom: 0; border-top: 1px solid var(--k-line); }
  .fp--kishuf #play .k-st__modes { flex: 1 1 100%; }
  .fp--kishuf #play .k-st__modes .k-modes { width: 100%; }
  .fp--kishuf #play .k-modes .k-modes__b { min-height: 64px; }
  .fp--kishuf #play .k-st__tools { display: none; }

  .fp--kishuf #play .k-st__pres { display: block; padding: 10px 0 12px; }
  .fp--kishuf #play .k-st__pres > .k-st__lab { display: block; padding: 0 16px 8px; }
  .fp--kishuf #play .k-st__chips {
    flex-wrap: nowrap; overflow-x: auto; padding: 0 16px 2px; scroll-padding-inline: 16px; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .fp--kishuf #play .k-st__chips::-webkit-scrollbar { display: none; }
  .fp--kishuf #play .k-st__pre { font-size: 22px; }
  .fp--kishuf #play .k-st__pre--name { font-size: 15px; }

  .fp--kishuf #play .k-st__dock { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 4px 6px; border-top: 1px solid var(--k-line); }
  .fp--kishuf #play .k-st__dk {
    display: grid; justify-items: center; align-content: center; gap: 4px; min-width: 44px; min-height: 56px; padding: 4px 2px;
    border: 0; border-radius: 12px; background: transparent; color: var(--k-cream); font: 500 12.5px/1.1 var(--f-text);
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .fp--kishuf #play .k-st__dk .k-ico { width: 22px; height: 22px; }
  .fp--kishuf #play .k-st__dk[aria-expanded="true"] { background: rgba(245,200,66,.08); box-shadow: inset 0 0 0 1.5px var(--k-gold); color: var(--k-gold); }
  .fp--kishuf #play .k-st__dk:disabled { color: #7d6f9c; cursor: default; }

  /* the panels open below the dock: rows 0fr -> 1fr, so nothing above moves */
  .fp--kishuf #play .k-st__set {
    display: grid; grid-template-rows: 0fr; visibility: hidden;
    transition: grid-template-rows 220ms var(--k-ease), visibility 0s linear 220ms;
  }
  .fp--kishuf #play .k-st.is-panel .k-st__set { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 220ms var(--k-ease), visibility 0s; }
  .fp--kishuf #play .k-st__set-in { display: block; min-height: 0; overflow: hidden; padding: 0; border-top: 0; }
  .fp--kishuf #play .k-st__grp { display: none; padding: 12px 16px 14px; border-top: 1px solid var(--k-line); }
  .fp--kishuf #play .k-st__grp.is-open { display: flex; }
  .fp--kishuf #play .k-st__grp > .k-st__lab { flex-basis: 100%; }
  .fp--kishuf #play .k-st__grp--share { margin: 0; }
  .fp--kishuf #play .k-st__seg { flex: 1 1 auto; }
  .fp--kishuf #play .k-st__seg-b { flex: 1 1 0; min-height: 44px; }
  .fp--kishuf #play .k-st__range { flex: 1 1 120px; width: auto; }
  .fp--kishuf #play .k-st__btn { flex: 1 1 100%; justify-content: center; }
  .fp--kishuf #play .k-st__foot { width: var(--wrap); }
}

/* ---------- reduced motion: every state lands at once ---------- */
html:not(.js-motion) .fp--kishuf #play *, html:not(.js-motion) .fp--kishuf #play *::before,
html:not(.js-motion) .fp--kishuf #play *::after { transition: none !important; animation: none !important; }

/* ===== 40-anatomy.css ===== */
/* ---------- 02 · אנטומיה (#traits): four plates, each with a ring on the detail and a 2.5x callout ----------
   Sizes: --k-size (the specimen) is the smaller of the spec size and what fits the stage (cqi of .k-anat__stage);
   --up / --dn / --wem (em, from anatomy.py) are the ink above and below the baseline and the specimen's width.
   Markers (.k-anat__a) sit on the anchor from kit.point(): left = x em, top = (1.3333 - 1.1) / 2 + .8 - y em. */
.fp--kishuf #traits .k-anat__rows { width: var(--wrap); margin: 0 auto; }
.fp--kishuf #traits .k-anat__tabs { display: none; }
.fp--kishuf #traits .k-anat {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); row-gap: 20px;
  align-items: center; padding-block: clamp(28px, 4vw, 56px);
}
.fp--kishuf #traits .k-anat + .k-anat { border-top: 1px solid var(--k-line); }
/* RTL grid: column 1 is on the right. Rows 1 and 3: plate on the left; rows 2 and 4: plate on the right */
.fp--kishuf #traits .k-anat:nth-child(odd) .k-anat__stage { grid-column: 6 / span 7; grid-row: 1; }
.fp--kishuf #traits .k-anat:nth-child(odd) .k-anat__note { grid-column: 1 / span 5; grid-row: 1; }
.fp--kishuf #traits .k-anat:nth-child(even) .k-anat__stage { grid-column: 1 / span 7; grid-row: 1; }
.fp--kishuf #traits .k-anat:nth-child(even) .k-anat__note { grid-column: 8 / span 5; grid-row: 1; }

/* ---------- the stage and plate ---------- */
.fp--kishuf #traits .k-anat__stage {
  position: relative; container-type: inline-size; min-width: 0;
  --pt: 24px; --pb: 20px; --R: 230px; --st: clamp(64px, 12cqi, 96px); --cap: min(44svh, 400px);
}
.fp--kishuf #traits .k-anat__stage--beside { --k-size: min(var(--cap), calc((100cqi - var(--st) - var(--R) - 24px) / var(--wem))); }
.fp--kishuf #traits .k-anat__stage--below { --k-size: min(var(--cap), calc((100cqi - var(--st) - 12px) / var(--wem))); }
.fp--kishuf #traits .k-anat__plate {
  --k-lh: 1.3333; --k-top: calc(var(--pt) + var(--up) * var(--k-size) - var(--k-size) * .91665);
  --lt0: calc(var(--k-bl) - var(--R) / 2);
  margin: 0; color: var(--k-letter); white-space: nowrap;
  height: max(calc(var(--pt) + (var(--up) + var(--dn)) * var(--k-size) + var(--pb)), calc(var(--R) + 48px));
}
.fp--kishuf #traits .k-anat__stage--below .k-anat__plate {
  --lt0: calc(var(--k-bl) + var(--dn) * var(--k-size) + 12px);
  height: calc(var(--pt) + (var(--up) + var(--dn)) * var(--k-size) + 12px + var(--R) + 34px);
}
/* margin labels in the start strip (the end side belongs to the callout) */
.fp--kishuf #traits .k-anat__plate .k-plate__lab {
  inset-inline-end: auto; inset-inline-start: 0; max-width: calc(var(--st) - 4px); white-space: normal; line-height: 1.2;
}
.fp--kishuf #traits .k-anat__plate .k-plate__lab--x { top: calc(var(--k-bl) - var(--k-size) * var(--k-xh, .523) + 6px); }
.fp--kishuf #traits .k-anat__plate .k-plate__lab--band { top: calc(var(--k-bl) + var(--k-size) * .62 - 5px); translate: 0 -100%; }

/* the specimen and its copy in the callout: the same live text */
.fp--kishuf #traits .k-anat__spec { position: absolute; display: inline-block; top: var(--k-top); inset-inline-start: var(--st); line-height: var(--k-lh); }
.fp--kishuf #traits .k-anat__plate > .k-anat__spec { text-shadow: var(--k-glow); }
.fp--kishuf #traits .k-anat__plate .k-g.is-bolt { text-shadow: var(--k-glow-bolt); }
.fp--kishuf #traits .k-anat__g { position: relative; display: inline-block; }
.fp--kishuf #traits .k-anat__t { color: var(--k-charge); }
.fp--kishuf #traits .k-anat__ws { display: inline-grid; }
.fp--kishuf #traits .k-anat__w { grid-area: 1 / 1; justify-self: start; position: relative; display: inline-block; transition: opacity 320ms var(--k-ease); }
.fp--kishuf #traits .k-anat__w--mid, .fp--kishuf #traits .k-anat[data-form="mid"] .k-anat__w--end { opacity: 0; }
.fp--kishuf #traits .k-anat[data-form="mid"] .k-anat__w--mid { opacity: 1; }

/* the anchor, its ring and (phones) the numbered dot */
.fp--kishuf #traits .k-anat__a {
  position: absolute; width: 0; height: 0; pointer-events: none;
  left: calc(var(--x) * 1em); top: calc(.91665em - var(--y) * 1em);
  transition: translate 300ms var(--k-ease);
}
.fp--kishuf #traits .k-g.is-bolt > .k-anat__a { translate: calc((var(--xb) - var(--x)) * 1em) calc((var(--y) - var(--yb)) * 1em); }
.fp--kishuf #traits .k-anat__ring {
  left: calc(var(--r) * -1em); top: calc(var(--r) * -1em); width: calc(var(--r) * 2em); height: calc(var(--r) * 2em); max-width: none;
}
.fp--kishuf #traits .k-anat__ring circle { stroke-width: 1.75; }
.fp--kishuf #traits .k-anat.is-drawn .k-anat__ring circle { stroke-dashoffset: 0; }
.fp--kishuf #traits .k-anat__dot { position: absolute; display: none; left: calc(var(--r) * .75em + 6px); top: calc(var(--r) * -.75em - 28px); }
.fp--kishuf #traits .k-loupe .k-anat__ring, .fp--kishuf #traits .k-loupe .k-anat__dot { display: none; }

/* the leader and the callout: shown once the script has measured them */
.fp--kishuf #traits .k-anat__lead { inset: 0; width: 100%; height: 100%; display: none; }
.fp--kishuf #traits .k-anat__lead path { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 240ms var(--k-ease); }
.fp--kishuf #traits .k-anat__loupe, .fp--kishuf #traits .k-anat__lab { display: none; }
.fp--kishuf #traits.is-live .k-anat__lead, .fp--kishuf #traits.is-live .k-anat__loupe, .fp--kishuf #traits.is-live .k-anat__lab { display: block; }
.fp--kishuf #traits .k-anat__loupe {
  width: var(--R); inset-inline-end: 0; inset-inline-start: auto; top: var(--lt, var(--lt0)); z-index: 2;
  pointer-events: auto; cursor: zoom-in; -webkit-tap-highlight-color: transparent;
  opacity: 0; transform: scale(.85); transition: opacity 260ms var(--k-ease), transform 260ms var(--k-ease);
}
.fp--kishuf #traits .k-anat__loupe .k-anat__spec {
  top: 0; left: 0; right: auto; inset-inline-start: auto; text-shadow: none;
  transform-origin: var(--ax, 0px) var(--ay, 0px);
  transform: translate(calc(var(--R) / 2 - var(--ax, 0px)), calc(var(--R) / 2 - var(--ay, 0px))) scale(var(--z, 1));
  transition: transform 320ms var(--k-ease-cam), transform-origin 320ms var(--k-ease-cam);
}
.fp--kishuf #traits .k-anat__lab {
  position: absolute; inset-inline-end: 0; width: var(--R); top: calc(var(--lt, var(--lt0)) + var(--R) + 8px); text-align: center;
  opacity: 0; transition: opacity 260ms var(--k-ease);
}
.fp--kishuf #traits .k-anat.is-drawn .k-anat__lead path { stroke-dashoffset: 0; }
.fp--kishuf #traits .k-anat.is-drawn .k-anat__loupe { opacity: 1; transform: none; }
.fp--kishuf #traits .k-anat.is-drawn .k-anat__lab { opacity: 1; }
.fp--kishuf #traits .k-anat.is-drawn .k-anat__loupe .k-anat__spec { --z: 2.5; }
/* the first drawing: ring 700ms, then the leader, the callout and the zoom */
.fp--kishuf #traits .k-anat.is-drawing .k-anat__lead path { transition-delay: 460ms; }
.fp--kishuf #traits .k-anat.is-drawing :is(.k-anat__loupe, .k-anat__lab) { transition-delay: 560ms; }
.fp--kishuf #traits .k-anat.is-drawing .k-anat__loupe .k-anat__spec { transition-duration: 520ms; transition-delay: 700ms; }
.fp--kishuf #traits .k-anat__loupe.is-replay .k-anat__spec { --z: 1; transition: none; }

/* row 3: the other tails, top of the end side */
.fp--kishuf #traits .k-anat__tails {
  position: absolute; inset-inline-end: 0; top: var(--pt); font-size: 40px; line-height: 1.3333; text-shadow: none;
}

/* ---------- the note ---------- */
.fp--kishuf #traits .k-anat__note { display: grid; gap: 12px; justify-items: start; align-content: center; min-width: 0; }
.fp--kishuf #traits .k-anat__n {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--k-gold); font: 700 13px/1 var(--f-text); color: var(--k-gold); font-variant-numeric: tabular-nums;
}
.fp--kishuf #traits .k-anat__h { margin: 0; font: 700 clamp(1.3rem, 1.1rem + .6vw, 1.6rem)/1.25 var(--f-text); color: var(--k-cream); }
.fp--kishuf #traits .k-anat__p { margin: 0; max-width: 44ch; font: 400 16px/1.6 var(--f-text); color: var(--k-muted); }
.fp--kishuf #traits .k-anat__hint { margin: 0; max-width: 44ch; font: 400 14.5px/1.5 var(--f-text); color: var(--k-muted); }

/* segmented controls (pressed = gold ring, never a fill) */
.fp--kishuf #traits .k-anat__seg { display: inline-flex; gap: 4px; padding: 4px; margin-top: 4px; border: 1px solid var(--k-line); border-radius: 14px; max-width: 100%; }
.fp--kishuf #traits .k-anat__b {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--k-cream);
  font: 600 15px/1.2 var(--f-text); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--k-t-micro) var(--k-ease), box-shadow var(--k-t-micro) var(--k-ease), color var(--k-t-micro) var(--k-ease);
}
.fp--kishuf #traits .k-anat__b[aria-pressed="true"] { background: rgba(245,200,66,.08); box-shadow: inset 0 0 0 1.5px var(--k-gold); color: var(--k-gold); }
@media (hover: hover) { .fp--kishuf #traits .k-anat__b:hover:not([aria-pressed="true"]) { background: rgba(245,200,66,.05); } }
@media (pointer: coarse) { .fp--kishuf #traits .k-anat__b { min-height: 48px; } }
/* row 1: the family of flags is the control */
.fp--kishuf #traits .k-anat__seg--fam { --r: .13; }
.fp--kishuf #traits .k-anat__seg--fam .k-anat__b { min-width: 58px; min-height: 64px; padding: 0 6px; }
.fp--kishuf #traits .k-anat__fg {
  position: relative; display: inline-block; font-family: 'FS Kishuf', var(--f-brand); font-weight: 400; font-synthesis: none;
  font-size: 46px; line-height: 1.3333; color: var(--k-letter);
}
.fp--kishuf #traits .k-anat__seg--fam [aria-pressed="true"] .k-anat__fg { color: var(--k-charge); }
.fp--kishuf #traits .k-anat__fring circle { transition-delay: calc(var(--i, 0) * 120ms); }
/* row 4 */
.fp--kishuf #traits .k-anat__state { margin: 0; min-height: 1.3em; font: 700 .95rem/1.3 var(--f-text); color: var(--k-gold); }
.fp--kishuf #traits .k-anat__state.is-mid { color: var(--k-cream); }
.fp--kishuf #traits .k-anat__pair { display: none; gap: 28px; flex-wrap: wrap; }
.fp--kishuf #traits .k-anat__pi { display: grid; gap: 2px; justify-items: start; }
.fp--kishuf #traits .k-anat__pw { font-family: 'FS Kishuf', var(--f-brand); font-weight: 400; font-synthesis: none; font-size: 48px; line-height: 1.35; color: var(--k-letter); }
.fp--kishuf #traits .k-anat__pl { font: 500 13px/1.3 var(--f-text); color: var(--k-muted); }

/* ---------- reduced motion (OS or the site toggle): everything drawn, both ע forms shown ---------- */
html:not(.js-motion) .fp--kishuf #traits :is(.k-anat__a, .k-anat__w, .k-anat__loupe, .k-anat__lab, .k-anat__lead path, .k-anat__loupe .k-anat__spec, .k-anat__ring circle) { transition: none !important; }
html:not(.js-motion) .fp--kishuf #traits .k-anat__ring circle, html:not(.js-motion) .fp--kishuf #traits .k-anat__lead path { stroke-dashoffset: 0; }
html:not(.js-motion) .fp--kishuf #traits .k-anat__loupe { opacity: 1; transform: none; }
html:not(.js-motion) .fp--kishuf #traits .k-anat__lab { opacity: 1; }
html:not(.js-motion) .fp--kishuf #traits .k-anat__loupe .k-anat__spec { --z: 2.5; }
html:not(.js-motion) .fp--kishuf #traits .k-anat__pair { display: flex; }

/* ---------- phones and tablets (below 900px): stacked, full-width plates ---------- */
@media (max-width: 899.98px) {
  .fp--kishuf #traits .k-anat { grid-template-columns: minmax(0, 1fr); }
  .fp--kishuf #traits .k-anat:is(:nth-child(odd), :nth-child(even)) :is(.k-anat__stage, .k-anat__note) { grid-column: 1; grid-row: auto; }
  .fp--kishuf #traits .k-anat__stage { --pt: 16px; --pb: 14px; --R: min(37cqi, 150px); --st: clamp(64px, 13cqi, 80px); --cap: min(56vw, 240px); }
  .fp--kishuf #traits .k-anat__dot { display: inline-grid; }
  .fp--kishuf #traits .k-anat__seg { display: flex; width: 100%; }
  .fp--kishuf #traits .k-anat__b { flex: 1 1 0; padding: 0 10px; }
  .fp--kishuf #traits .k-anat__seg--fam .k-anat__b { min-width: 0; min-height: 56px; padding: 0 2px; }
  .fp--kishuf #traits .k-anat__fg { font-size: 40px; }
  .fp--kishuf #traits .k-anat__tails { font-size: 28px; }
  .fp--kishuf #traits .k-anat__p { font-size: 15px; }
}
.fp--kishuf #traits .k-anat.is-drawn .k-anat__ring.is-redraw circle { stroke-dashoffset: 1; transition: none; }
.fp--kishuf #traits .k-anat__loupe.is-zoom .k-anat__spec { transition-duration: 520ms; }

/* ---------- phone: one stage, four tabs. The four panels share one grid cell (visibility, never display), so the frame
   keeps the height of the tallest and nothing below it moves when a tab changes. Plate, control, then the words. ---------- */
@media (max-width: 700px) {
  .fp--kishuf #traits .k-anat__frame {
    width: var(--wrap); margin-inline: auto; border: 1px solid var(--k-line); border-radius: 16px; overflow: hidden;
    background: rgba(11,7,22,.55);
  }
  .fp--kishuf #traits .k-anat__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--k-line); }
  .fp--kishuf #traits .k-anat__tab {
    position: relative; display: grid; justify-items: center; align-content: center; gap: 0; min-height: 64px; padding: 4px 2px; border: 0;
    background: transparent; color: var(--k-muted); cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .fp--kishuf #traits .k-anat__tg {
    font-family: 'FS Kishuf', var(--f-brand); font-weight: 400; font-synthesis: none; font-size: 30px; line-height: 36px; color: var(--k-letter);
  }
  .fp--kishuf #traits .k-anat__tl { font: 600 12.5px/1.2 var(--f-text); }
  .fp--kishuf #traits .k-anat__tab[aria-selected="true"] { color: var(--k-gold); background: rgba(245,200,66,.08); }
  .fp--kishuf #traits .k-anat__tab[aria-selected="true"] .k-anat__tg { color: var(--k-charge); }
  .fp--kishuf #traits .k-anat__tab[aria-selected="true"]::after {
    content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--k-gold);
  }
  .fp--kishuf #traits .k-anat__tab:focus-visible { outline-offset: -3px; }

  .fp--kishuf #traits .k-anat__rows { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); }
  .fp--kishuf #traits .k-anat { grid-area: 1 / 1; visibility: hidden; align-content: start; row-gap: 10px; padding: 0 12px 16px; }
  .fp--kishuf #traits .k-anat + .k-anat { border-top: 0; }
  .fp--kishuf #traits .k-anat.is-tab { visibility: visible; }

  /* one plate height, so the control sits on the same line in every tab; the callout always beside the specimen */
  .fp--kishuf #traits .k-anat__stage { --pt: 12px; --pb: 10px; --cap: min(38vw, 150px); --ph: calc(var(--cap) * 1.5 + 24px); }
  .fp--kishuf #traits .k-anat__stage:not(.band) { --pt: 32px; }
  .fp--kishuf #traits .k-anat__stage--below { --k-size: min(var(--cap), calc((100cqi - var(--st) - var(--R) - 24px) / var(--wem))); }
  .fp--kishuf #traits .k-anat__plate,
  .fp--kishuf #traits .k-anat__stage--below .k-anat__plate { height: var(--ph); --lt0: calc(var(--k-bl) - var(--R) / 2); }
  .fp--kishuf #traits .k-anat__dot, .fp--kishuf #traits .k-anat__n, .fp--kishuf #traits .k-anat__pair { display: none; }
  html:not(.js-motion) .fp--kishuf #traits .k-anat__pair { display: none; }

  .fp--kishuf #traits .k-anat__note { gap: 6px; align-content: start; justify-items: stretch; }
  .fp--kishuf #traits .k-anat__seg { order: -3; margin-top: 0; }
  .fp--kishuf #traits .k-anat__hint, .fp--kishuf #traits .k-anat__state { order: -2; max-width: none; font-size: 13.5px; }
  .fp--kishuf #traits .k-anat__state { font-size: .875rem; }
  .fp--kishuf #traits .k-anat__h { order: -1; margin-top: 6px; font-size: 1.15rem; }
  .fp--kishuf #traits .k-anat__p { max-width: none; font-size: 14.5px; line-height: 1.55; }
}

/* ===== 50-lab.css ===== */
/* ===========================================================================
   המעבדה (#styles): איפה גר הברק. Beat 1: a sentence on a plate whose band lights under every Bolt letter, driven
   only by the rod. Beat 2: the ruler of the 27 Bolt letters (measured order) and the Regular | Bolt pair.
   =========================================================================== */

/* ---------- beat 1: the current ---------- */
.fp--kishuf #styles .k-lab {
  width: var(--wrap); margin-inline: auto; display: grid; gap: clamp(14px, 2vw, 22px);
  padding-block: clamp(20px, 3vw, 36px); border-block: 1px solid var(--k-line);
}
.fp--kishuf #styles .k-lab__plate {
  --k-size: clamp(4.5rem, 1rem + 8vw, 10rem); --k-lh: 1.35;
  padding-bottom: .3em; text-align: center; user-select: none; -webkit-user-select: none;
}
.fp--kishuf #styles .k-lab__sent { position: relative; z-index: 1; }
.fp--kishuf #styles .k-lab__at { position: relative; display: inline-block; vertical-align: top; }
.fp--kishuf #styles .k-lab__grp { display: inline-block; }
.fp--kishuf #styles .k-lab .k-line { color: var(--k-letter); }
/* the band segment of each slot: exactly under the letter's advance, lit while the letter is Bolt (opacity only) */
.fp--kishuf #styles .k-lab .k-line .k-l::after {
  content: ""; position: absolute; inset-inline-start: 0; top: calc(((var(--k-lh) - 1.1) * .5 + .8) * 1em);
  width: calc(var(--a) * 1em); height: .62em; pointer-events: none;
  background: linear-gradient(var(--k-band-lit), rgba(245,200,66,.07) 70%, transparent); opacity: 0;
  transition: opacity var(--k-t-ui) var(--k-ease);
}
.fp--kishuf #styles .k-lab .k-line .k-l:has(.k-g.is-bolt)::after { opacity: 1; }
/* the selected letter (the one in the pair): a 2px gold underline at 60% of its slot, under the band */
.fp--kishuf #styles .k-lab .k-line .k-l::before {
  content: ""; position: absolute; top: calc(((var(--k-lh) - 1.1) * .5 + .8 + .64) * 1em);
  inset-inline-start: calc(var(--a) * .2em); width: calc(var(--a) * .6em); height: 2px; border-radius: 2px;
  background: var(--k-gold); opacity: 0; translate: calc(var(--dx, 0) * 1em) 0; pointer-events: none;
  transition: opacity var(--k-t-micro) var(--k-ease);
}
.fp--kishuf #styles .k-lab .k-line.is-glide .k-l::before { transition: opacity var(--k-t-micro) var(--k-ease), translate var(--k-t-settle) var(--k-ease); }
.fp--kishuf #styles .k-lab .k-line .k-l.is-hot::before { opacity: .45; }
.fp--kishuf #styles .k-lab .k-line .k-l.is-sel::before { opacity: 1; }
.fp--kishuf #styles .k-lab .k-line button.k-l:focus-visible { outline: 3px solid var(--k-gold); outline-offset: 3px; }
.fp--kishuf #styles .k-lab .k-g.is-bolt { color: var(--k-charge); }
@media (min-width: 801px) {   /* the sentence is 64px and up from here */
  .fp--kishuf #styles .k-lab .k-line { text-shadow: var(--k-glow); }
  .fp--kishuf #styles .k-lab .k-line .k-g.is-bolt { text-shadow: var(--k-glow-bolt); }
}

/* marks: dots, numbered dots and leaders, positioned in em from the line (--x*: slot centres from its right edge,
   kept current by 50-lab.js from the slot data; --lw: the line's width) */
.fp--kishuf #styles .k-lab__marks { position: absolute; inset: 0; pointer-events: none; }
.fp--kishuf #styles .k-lab__at { --k-my: calc(var(--k-bl) + var(--k-size) * .62 + 12px); }   /* marks sit just under the band, never on a bolt */
.fp--kishuf #styles .k-lab__dot, .fp--kishuf #styles .k-lab__num { top: var(--k-my); }
.fp--kishuf #styles .k-lab__dot--0, .fp--kishuf #styles .k-lab__num--0 { left: calc((var(--lw) - var(--x0)) * var(--k-size)); }
.fp--kishuf #styles .k-lab__dot--l, .fp--kishuf #styles .k-lab__num--l { left: calc((var(--lw) - var(--xl)) * var(--k-size)); }
.fp--kishuf #styles .k-lab__dot--m, .fp--kishuf #styles .k-lab__num--m { left: calc((var(--lw) - var(--xm)) * var(--k-size)); }
.fp--kishuf #styles .k-lab__num { position: absolute; translate: -50% -50%; }
.fp--kishuf #styles .k-lab__lead { position: absolute; display: block; top: var(--k-my); height: 0; border-top: 1.2px solid var(--k-gold); }
.fp--kishuf #styles .k-lab__lead--1 { left: calc((var(--lw) - var(--x0)) * var(--k-size)); right: -44px; transform-origin: right center; }
.fp--kishuf #styles .k-lab__lead--2 { left: -44px; right: calc(var(--xl) * var(--k-size)); transform-origin: left center; }
.fp--kishuf #styles .k-lab__note { position: absolute; display: block; top: calc(var(--k-my) - 12px); width: 14ch; max-width: none; text-align: start; pointer-events: none; }
.fp--kishuf #styles .k-lab__note--1 { left: calc(100% + 56px); }
.fp--kishuf #styles .k-lab__note--2 { right: calc(100% + 56px); }
/* the notes draw after the demo or the first interaction: leader 280ms, then the text 250ms */
.fp--kishuf #styles .k-lab__lead { transition: transform 280ms var(--k-ease); }
.fp--kishuf #styles :is(.k-lab__note, .k-lab__dot, .k-lab__num, .k-lab__caps li) { transition: opacity 250ms var(--k-ease) 200ms; }
.fp--kishuf #styles .k-lab.is-wait :is(.k-lab__note, .k-lab__dot, .k-lab__num, .k-lab__caps li) { opacity: 0; transition: none; }
.fp--kishuf #styles .k-lab.is-wait .k-lab__lead { transform: scaleX(0); transition: none; }
html:not(.js-motion) .fp--kishuf #styles :is(.k-lab__lead, .k-lab__note, .k-lab__dot, .k-lab__num, .k-lab__caps li) { transition: none; }

/* margin notes from 1024px; numbered dots and captions below that */
.fp--kishuf #styles .k-lab__caps { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.fp--kishuf #styles .k-lab__caps li { display: flex; gap: 10px; align-items: baseline; font: 400 15px/1.5 var(--f-text); color: var(--k-muted); }
.fp--kishuf #styles .k-lab__caps .k-note__n { flex: none; translate: 0 -1px; }
@media (min-width: 1024px) {
  .fp--kishuf #styles .k-lab__plate { padding-bottom: calc(.3em + 64px); }
  .fp--kishuf #styles .k-lab__num, .fp--kishuf #styles .k-lab__caps { display: none; }
}
@media (max-width: 1023.98px) {
  .fp--kishuf #styles :is(.k-lab__dot, .k-lab__lead, .k-lab__note) { display: none; }
  .fp--kishuf #styles .k-lab__plate { padding-bottom: calc(.3em + 24px); }
  .fp--kishuf #styles .k-lab__caps { width: min(760px, 100%); margin-inline: auto; }
}

.fp--kishuf #styles .k-lab__hint { margin: 0; text-align: center; font: 400 15px/1.5 var(--f-text); color: var(--k-muted); }

/* ---------- the rod ---------- */
.fp--kishuf #styles .k-rod { --k-th: 28px; width: min(760px, 100%); margin-inline: auto; display: grid; gap: 4px; }
.fp--kishuf #styles .k-rod__lab { justify-self: center; font: 700 13px/1.3 var(--f-text); letter-spacing: .06em; color: var(--k-cream); }
.fp--kishuf #styles .k-rod__track { position: relative; height: 44px; }
.fp--kishuf #styles .k-rod__tick {
  position: absolute; top: 50%; inset-inline-start: calc(var(--k-th) / 2 + (100% - var(--k-th)) * var(--p));
  width: 2px; height: 16px; margin-inline-start: -1px; translate: 0 -50%; border-radius: 1px; background: var(--k-base); pointer-events: none;
}
.fp--kishuf #styles .k-rod input {
  position: relative; -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0;
  background: transparent; cursor: pointer; touch-action: pan-y; -webkit-tap-highlight-color: transparent;
}
.fp--kishuf #styles .k-rod input:focus { outline: none; }
.fp--kishuf #styles .k-rod input:focus-visible { outline: 3px solid var(--k-gold); outline-offset: 3px; border-radius: 22px; }
.fp--kishuf #styles .k-rod input::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px; background: linear-gradient(to left, var(--k-gold) var(--p, 0%), rgba(255,241,201,.16) var(--p, 0%));
}
.fp--kishuf #styles .k-rod input::-moz-range-track { height: 6px; border-radius: 99px; background: rgba(255,241,201,.16); }
.fp--kishuf #styles .k-rod input::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--k-gold); }
.fp--kishuf #styles .k-rod input::-webkit-slider-thumb {
  -webkit-appearance: none; width: var(--k-th); height: var(--k-th); margin-top: -11px; border-radius: 50%; border: 3px solid var(--k-ink);
  background: var(--k-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 5 14h6l-1 8 8-12h-6z' fill='%231a0f2e'/%3E%3C/svg%3E") center/16px no-repeat;
  box-shadow: 0 0 0 4px rgba(245,200,66,.22);
}
.fp--kishuf #styles .k-rod input::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--k-ink);
  background: var(--k-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 5 14h6l-1 8 8-12h-6z' fill='%231a0f2e'/%3E%3C/svg%3E") center/14px no-repeat;
  box-shadow: 0 0 0 4px rgba(245,200,66,.22);
}
.fp--kishuf #styles .k-rod__stops { position: relative; height: 44px; }
.fp--kishuf #styles .k-rod__stop {
  position: absolute; top: 0; inset-inline-start: calc(var(--k-th) / 2 + (100% - var(--k-th)) * var(--p)); translate: 50% 0;
  min-height: 44px; padding: 0 14px; border: 0; border-radius: 22px; background: transparent; cursor: pointer;
  font: 700 .82rem/1 var(--f-text); color: var(--k-muted); white-space: nowrap; -webkit-tap-highlight-color: transparent;
  transition: color var(--k-t-micro) var(--k-ease), box-shadow var(--k-t-micro) var(--k-ease);
}
.fp--kishuf #styles .k-rod__stop:first-child { inset-inline-start: 0; translate: none; }
.fp--kishuf #styles .k-rod__stop:last-child { inset-inline-start: auto; inset-inline-end: 0; translate: none; }
.fp--kishuf #styles .k-rod__stop.is-at { color: var(--k-gold); box-shadow: inset 0 0 0 1.5px var(--k-gold); }
@media (hover: hover) { .fp--kishuf #styles .k-rod__stop:hover:not(.is-at) { color: var(--k-cream); } }

/* ---------- beat 2: every letter and its lightning ---------- */
.fp--kishuf #styles .k-every { width: var(--wrap); margin: clamp(48px, 7vw, 96px) auto 0; display: grid; gap: clamp(28px, 4vw, 52px); }
.fp--kishuf #styles .k-ruler { display: grid; gap: 10px; }
.fp--kishuf #styles .k-ruler__top { display: flex; justify-content: flex-end; }
.fp--kishuf #styles .k-ruler__tog { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--k-line); border-radius: 999px; }
.fp--kishuf #styles .k-ruler__seg {
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 800 13px/1 var(--f-text); letter-spacing: .04em; color: var(--k-muted); -webkit-tap-highlight-color: transparent;
}
.fp--kishuf #styles .k-ruler__seg[aria-pressed="true"] { color: var(--k-gold); background: rgba(245,200,66,.08); box-shadow: inset 0 0 0 1.5px var(--k-gold); }
@media (hover: hover) { .fp--kishuf #styles .k-ruler__seg:hover:not([aria-pressed="true"]) { color: var(--k-cream); } }
@media (pointer: coarse) { .fp--kishuf #styles .k-ruler__seg { min-height: 44px; } }

.fp--kishuf #styles .k-ruler__strip { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 4px; margin: -4px; }
.fp--kishuf #styles .k-ruler__strip::-webkit-scrollbar { display: none; }
.fp--kishuf #styles .k-ruler__track {
  --k-cs: 72px; position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(40px, 1fr); gap: 4px;
  min-width: max-content; font-size: var(--k-cs);
}
/* one baseline across the cells, and the deepest lightning (ץ) dashed */
.fp--kishuf #styles .k-ruler__track::before, .fp--kishuf #styles .k-ruler__track::after {
  content: ""; position: absolute; inset-inline: 0; height: 0; pointer-events: none;
}
.fp--kishuf #styles .k-ruler__track::before { top: .8em; border-top: 1px solid var(--k-base); }
.fp--kishuf #styles .k-ruler__track::after { top: calc((.8 + var(--k-bolt-dn, .585)) * 1em); border-top: 1px dashed var(--k-xline); }
.fp--kishuf #styles .k-ruler__cell {
  position: relative; z-index: 1; display: flex; justify-content: center; height: 1.42em; margin: 0; padding: 0 0 .32em;
  border: 0; border-radius: 10px; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
  font-family: 'FS Kishuf', var(--f-brand); font-weight: 400; font-synthesis: none; font-size: 1em; line-height: 1.1;
  color: var(--k-letter); transition: background-color var(--k-t-micro) var(--k-ease);
}
.fp--kishuf #styles .k-ruler__cell .k-g { font-feature-settings: "calt" 0; }
.fp--kishuf #styles .k-ruler__cell[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--k-gold); background: rgba(245,200,66,.06); }
@media (hover: hover) { .fp--kishuf #styles .k-ruler__cell:hover:not([aria-pressed="true"]) { background: rgba(255,241,201,.06); } }
.fp--kishuf #styles .k-ruler__cell:focus-visible { outline: 3px solid var(--k-gold); outline-offset: -3px; }
@media (min-width: 701px) {
  .fp--kishuf #styles .k-ruler__cell.is-glow .k-g.is-bolt { text-shadow: var(--k-glow-bolt); }
}
.fp--kishuf #styles .k-ruler__ends { margin: 0; display: flex; justify-content: space-between; font: 600 13px/1.3 var(--f-text); letter-spacing: .06em; color: var(--k-muted); }
.fp--kishuf #styles .k-ruler__legend { margin: 4px 0 0; max-width: 60ch; font: 400 16px/1.55 var(--f-text); color: var(--k-muted); }

/* the pair */
.fp--kishuf #styles .k-pair { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 64px); }
.fp--kishuf #styles .k-pair__stage {
  --k-size: clamp(9rem, 4rem + 11vw, 16rem); --k-lh: 1.4; padding-bottom: .3em; white-space: nowrap; touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.fp--kishuf #styles .k-pair__col { position: relative; display: inline-grid; justify-items: center; width: 1em; margin-inline: .12em; vertical-align: baseline; }
.fp--kishuf #styles .k-pair__g {
  grid-area: 1 / 1; font-feature-settings: "calt" 0; color: var(--k-letter); opacity: 0;
  transition: opacity var(--k-t-micro) var(--k-ease);
}
.fp--kishuf #styles .k-pair__g.is-on { opacity: 1; }
.fp--kishuf #styles .k-pair__col--b .k-pair__g { font-family: 'FS Kishuf Bolt', var(--f-brand); color: var(--k-charge); }
@media (min-width: 701px) {
  .fp--kishuf #styles .k-pair__col--r .k-pair__g { text-shadow: var(--k-glow); }
  .fp--kishuf #styles .k-pair__col--b .k-pair__g { text-shadow: var(--k-glow-bolt); }
}
.fp--kishuf #styles .k-pair__tag {
  position: absolute; top: 0; inset-inline: 0; text-align: center; font: 800 13px/1 var(--f-text); letter-spacing: .08em; color: var(--k-muted);
}
.fp--kishuf #styles .k-pair__col--b .k-pair__tag { color: var(--k-gold); }
.fp--kishuf #styles .k-pair__depth {
  position: absolute; top: var(--k-bl); inset-inline-start: 50%; inset-inline-end: 0; height: 0; border-top: 1px dashed var(--k-gold);
  transform: translateY(calc(var(--d) * var(--k-size))); opacity: 0; pointer-events: none;
  transition: transform var(--k-t-ui) var(--k-ease), opacity var(--k-t-ui) var(--k-ease);
}
.fp--kishuf #styles .k-pair__depth.is-on { opacity: .8; }
.fp--kishuf #styles .k-pair__dlab { position: absolute; inset-inline-end: 0; top: 6px; font: 500 12.5px/1 var(--f-text); color: var(--k-muted); white-space: nowrap; }
html:not(.js-motion) .fp--kishuf #styles :is(.k-pair__g, .k-pair__depth) { transition: none; }
.fp--kishuf #styles .k-pair__info { display: grid; gap: 8px; justify-items: start; }
.fp--kishuf #styles .k-pair__name { margin: 0; font: 700 1.35rem/1.3 var(--f-text); color: var(--k-cream); }
.fp--kishuf #styles .k-pair__note { margin: 0; max-width: 34ch; font: 400 16px/1.55 var(--f-text); color: var(--k-muted); }
.fp--kishuf #styles .k-pair__nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fp--kishuf #styles .k-pair__btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 18px; border: 1px solid var(--k-line); border-radius: 999px;
  background: transparent; color: var(--k-cream); font: 700 14px/1 var(--f-text); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color var(--k-t-micro) var(--k-ease), color var(--k-t-micro) var(--k-ease);
}
.fp--kishuf #styles .k-pair__btn .k-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .fp--kishuf #styles .k-pair__btn:hover { border-color: var(--k-gold); color: var(--k-gold); } }

/* tablet: the ruler is a strip */
@media (max-width: 1023.98px) {
  .fp--kishuf #styles .k-ruler__track { --k-cs: 64px; grid-auto-columns: 44px; }
}

/* ---------- phone: only the rod on the sentence, one frame. The ruler and the pair stay on larger screens (the glyph book
   covers them here); the letters only fed the pair, so they go quiet (js/50-lab.js makes them inert). ---------- */
@media (max-width: 700px) {
  .fp--kishuf #styles .k-every, .fp--kishuf #styles .k-lab__hint, .fp--kishuf #styles .k-lab__caps, .fp--kishuf #styles .k-lab__marks,
  .fp--kishuf #styles .k-lab__plate .k-plate__lab { display: none; }
  .fp--kishuf #styles .k-lab {
    gap: 6px; padding: 8px 12px 12px; border: 1px solid var(--k-line); border-radius: 16px; background: rgba(11,7,22,.55);
  }
  .fp--kishuf #styles .k-lab__plate { --k-size: 17vw; padding-bottom: .3em; }
  .fp--kishuf #styles .k-lab__grp { pointer-events: none; }
  .fp--kishuf #styles .k-rod__stops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: auto; }
  .fp--kishuf #styles .k-rod__stop, .fp--kishuf #styles .k-rod__stop:first-child, .fp--kishuf #styles .k-rod__stop:last-child { position: static; translate: none; padding: 0 6px; }
}

/* ===== 60-exhibition.css ===== */
/* ===========================================================================
   60-exhibition: one exhibition in two rooms (#gallery, #world). SPEC §10.
   Every piece is figure.k-ex (margin 0, an inline-size container: type is in cqi) > .k-ex__f + figcaption.k-ex__l.
   Desktop and tablet: a 12-column zigzag grid inside --wrap. Phone: both rooms are one K.swipe deck of 4:5 frames
   (js/60-exhibition.js moves room 2's pieces into room 1's deck; #world keeps only the render dialog).
   =========================================================================== */

.fp--kishuf :is(#gallery, #world) {
  --k-ex-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --k-ex-key: -18px 30px 60px -28px rgba(0,0,0,.85), -4px 8px 18px -10px rgba(0,0,0,.6);
  --k-ex-film: #05030b;
  --k-ex-bolt-ink: #120a22;
}

.fp--kishuf #gallery .k-ex__small { display: none; }

/* ---------- the figure, its label and try link ---------- */
.fp--kishuf :is(#gallery, #world) .k-ex { margin: 0; min-width: 0; container-type: inline-size; }
.fp--kishuf :is(#gallery, #world) .k-ex__f { position: relative; }
.fp--kishuf :is(#gallery, #world) .k-ex__l {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 18px; margin-top: 12px;
}
.fp--kishuf :is(#gallery, #world) .k-ex__l .k-label { margin: 0; }
.fp--kishuf :is(#gallery, #world) .k-ex__try {
  display: inline-flex; align-items: center; gap: .35em; min-height: 32px;
  font: 600 13.5px/1.3 var(--f-text); color: var(--k-gold); text-decoration: none; border-radius: 4px;
}
.fp--kishuf :is(#gallery, #world) .k-ex__try [aria-hidden] { transition: translate var(--k-t-micro) var(--k-ease); }
@media (hover: hover) {
  .fp--kishuf :is(#gallery, #world) .k-ex__try:hover { text-decoration: underline; text-underline-offset: .25em; }
}
@media (pointer: coarse) { .fp--kishuf :is(#gallery, #world) .k-ex__try { min-height: 44px; } }

/* Kishuf runs inside pieces */
.fp--kishuf :is(#gallery, #world) :is(.k-ex__k, .k-ex__kd, .k-ex__word, .k-ex__p1, .k-ex__p2, .k-ex__dg) {
  font-family: 'FS Kishuf', var(--f-brand); font-weight: 400; font-style: normal; font-synthesis: none; font-kerning: normal; letter-spacing: 0;
}
.fp--kishuf :is(#gallery, #world) .k-ex__k { display: block; overflow-wrap: normal; }
.fp--kishuf :is(#gallery, #world) .k-ex__kd { font-size: max(20px, 1em); }

/* paper grain (one data URI; paper and film pieces only) */
.fp--kishuf :is(#gallery, #world) :is(.k-ex__band, .k-ex__plate, .k-ex__page)::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; background: var(--k-ex-grain); opacity: .04; border-radius: inherit;
}
.fp--kishuf #gallery .k-ex__band::after { opacity: .015; }
.fp--kishuf #gallery .k-ex__plate::after { opacity: .02; }

/* ============================ room 1 ============================ */

/* א׳ the film opener: a 2.39:1 band in film black */
.fp--kishuf #gallery .k-ex__band {
  position: relative; aspect-ratio: 2.39; display: grid; place-items: center; overflow: hidden;
  background: var(--k-ex-film); border-radius: 4px; box-shadow: var(--k-ex-key);
}
.fp--kishuf #gallery .k-ex__word {
  position: relative; z-index: 1; font-size: 27cqi; line-height: 1; color: var(--k-letter); text-shadow: var(--k-glow);
  transition: opacity 600ms var(--k-ease);
}
.fp--kishuf #gallery .k-ex__word .k-g.is-bolt { text-shadow: var(--k-glow-bolt); }
.fp--kishuf #gallery .k-ex__band.is-pre .k-ex__word { opacity: 0; }
.fp--kishuf #gallery .k-ex__light {
  position: absolute; z-index: 0; left: 70%; top: 50%; width: 46cqi; aspect-ratio: 1; translate: -50% -50%; opacity: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,246,216,.5), rgba(245,200,66,.2) 45%, rgba(245,200,66,0));
}

/* ב׳ the monogram: one Bolt ק, its lightning runs off the bottom edge */
.fp--kishuf #gallery .k-ex__mono {
  position: relative; aspect-ratio: 1; overflow: hidden; background: var(--k-deep); border-radius: 4px; box-shadow: var(--k-ex-key);
}
.fp--kishuf #gallery .k-ex__mono::before {
  content: ''; position: absolute; inset: 6%; border: 1px solid rgba(245,200,66,.5); pointer-events: none;
}
/* Bolt ק ink: x -.020 to .415 (centre .1975em), y .582 to -.533; with line-height 1 the baseline sits .75em below the top */
.fp--kishuf #gallery .k-ex__q {
  position: absolute; font: 400 115cqi/1 'FS Kishuf Bolt', var(--f-brand); font-synthesis: none;
  left: calc(50cqi - .1975em); top: calc(77cqi - .75em); color: var(--k-charge); text-shadow: var(--k-glow-bolt);
}

/* ג׳ the stack: all Bolt, the first line's bolts drop into the second line's gaps */
.fp--kishuf #gallery .k-ex__stack {
  margin: 0; display: grid; justify-items: start; padding: .12em 0 .34em;
  font: 400 32cqi/.86 'FS Kishuf Bolt', var(--f-brand); font-synthesis: none; color: var(--k-charge); text-shadow: var(--k-glow-bolt);
}
.fp--kishuf #gallery .k-ex__stack span { display: block; }

/* ד׳ the nikud plate: ink on gold, its label outside the gold */
.fp--kishuf #gallery .k-ex__plate {
  position: relative; display: grid; justify-items: center; padding: 6cqi 8cqi 7cqi; border-radius: 3px;
  background: linear-gradient(160deg, var(--k-gold), var(--k-gold-deep)); color: var(--k-ink); box-shadow: var(--k-ex-key);
}
.fp--kishuf #gallery .k-ex__p1 { font-size: 30cqi; line-height: 1.35; }
.fp--kishuf #gallery .k-ex__p2 { font-size: 13cqi; line-height: 1.35; margin-top: -.2em; }

/* ה׳ the clock: digits between hairlines, like a departure board */
.fp--kishuf #gallery .k-ex__clock { display: grid; justify-items: center; padding: 4cqi 0 2cqi; }
.fp--kishuf #gallery .k-ex__dg {
  display: block; width: 100%; text-align: center; direction: ltr; unicode-bidi: isolate;
  font-size: 30cqi; line-height: 1.25; color: var(--k-letter); text-shadow: var(--k-glow);
  border-block: 1px solid var(--k-base); font-variant-numeric: normal;
}
.fp--kishuf #gallery .k-ex__dsub { margin-top: .35em; font-size: 10cqi; line-height: 1.35; color: var(--k-letter); }
.fp--kishuf #gallery .k-ex__dsub .k-first { color: var(--k-charge); }

/* ============================ room 2 ============================ */

/* renders: a button that opens the dialog */
.fp--kishuf :is(#gallery, #world) .k-ex__open {
  display: block; width: 100%; padding: 0; margin: 0; border: 0; background: var(--k-ex-film); color: inherit; cursor: zoom-in;
  border-radius: 6px; overflow: hidden; box-shadow: var(--k-ex-key); -webkit-tap-highlight-color: transparent;
}
.fp--kishuf :is(#gallery, #world) .k-ex__open img { display: block; width: 100%; height: auto; }
.fp--kishuf :is(#gallery, #world) .k-ex--seal img { aspect-ratio: 2.4; object-fit: cover; object-position: 53% 47%; }
.fp--kishuf :is(#gallery, #world) .k-ex--potion img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 54% 50%; }
.fp--kishuf :is(#gallery, #world) .k-ex--letter img { aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 55%; }

/* ב׳ the film poster on the night plate */
.fp--kishuf :is(#gallery, #world) .k-ex__poster {
  position: relative; aspect-ratio: 2 / 3; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto auto;
  justify-items: center; text-align: center; padding: 8cqi 6cqi 6cqi; border-radius: 3px;
  background: var(--k-night); color: var(--k-cream); box-shadow: var(--k-ex-key);
}
.fp--kishuf :is(#gallery, #world) .k-ex__pbg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.fp--kishuf :is(#gallery, #world) .k-ex__poster::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,3,11,.82), rgba(5,3,11,.25) 26%, rgba(5,3,11,.2) 46%, rgba(5,3,11,.8) 72%, rgba(5,3,11,.95));
}
.fp--kishuf :is(#gallery, #world) .k-ex__poster > :not(img) { position: relative; z-index: 1; }
.fp--kishuf :is(#gallery, #world) .k-ex__ptag { font: 600 max(12px, 2.6cqi)/1.3 var(--f-text); letter-spacing: .2em; }
.fp--kishuf :is(#gallery, #world) .k-ex__ptitle {
  align-self: end; display: grid; justify-items: center; font-size: 42cqi; line-height: 1.02; padding-bottom: .12em;
  color: var(--k-letter); text-shadow: var(--k-glow);
}
.fp--kishuf :is(#gallery, #world) .k-ex__ptitle .k-first { color: var(--k-charge); text-shadow: var(--k-glow-bolt); }
.fp--kishuf :is(#gallery, #world) .k-ex__pwhen {
  display: inline-flex; align-items: baseline; gap: .55em; margin-top: 3cqi; font: 600 max(12px, 3.4cqi)/1.2 var(--f-text); letter-spacing: .14em;
}
.fp--kishuf :is(#gallery, #world) .k-ex__pwhen .k-ex__kd { font-size: max(20px, 7cqi); letter-spacing: 0; color: var(--k-letter); }
.fp--kishuf :is(#gallery, #world) .k-ex__dot { color: var(--k-gold); }
.fp--kishuf :is(#gallery, #world) .k-ex__pbill {
  margin-top: 3.5cqi; padding-top: 2.5cqi; border-top: 1px solid rgba(245,200,66,.3);
  font: 500 max(12px, 2.3cqi)/1.3 var(--f-text); letter-spacing: .12em; color: var(--k-muted);
}

/* ג׳ the game title screen */
.fp--kishuf :is(#gallery, #world) .k-ex__game {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: grid; align-content: center; justify-items: center;
  gap: 2.6cqi; padding: 4cqi; text-align: center; border-radius: 14px; box-shadow: var(--k-ex-key);
  background: radial-gradient(120% 90% at 50% 42%, rgba(22,12,44,0) 45%, rgba(3,2,8,.7)), var(--k-deep);
}
.fp--kishuf :is(#gallery, #world) .k-ex__glock { font-size: 14cqi; line-height: 1.3; color: var(--k-letter); }
.fp--kishuf :is(#gallery, #world) .k-ex__glock .k-first { color: var(--k-charge); }
@container (min-width: 460px) {
  .fp--kishuf :is(#gallery, #world) .k-ex__glock { text-shadow: var(--k-glow); }
  .fp--kishuf :is(#gallery, #world) .k-ex__glock .k-first { text-shadow: var(--k-glow-bolt); }
}
.fp--kishuf :is(#gallery, #world) .k-ex__menu { display: grid; justify-items: center; font-size: max(20px, 5cqi); line-height: 1.3; }
.fp--kishuf :is(#gallery, #world) .k-ex__mi {
  position: relative; display: block; padding: 0 1.25em; color: var(--k-muted); cursor: pointer;
  transition: color var(--k-t-micro) var(--k-ease); -webkit-tap-highlight-color: transparent;
}
.fp--kishuf :is(#gallery, #world) .k-ex__mi.is-sel { color: var(--k-letter); }
.fp--kishuf :is(#gallery, #world) .k-ex__mi::before, .fp--kishuf :is(#gallery, #world) .k-ex__mi::after {
  content: ''; position: absolute; top: 52%; width: .55em; height: 2px; background: var(--k-gold); opacity: 0;
  transition: opacity var(--k-t-micro) var(--k-ease);
}
.fp--kishuf :is(#gallery, #world) .k-ex__mi::before { right: 0; }
.fp--kishuf :is(#gallery, #world) .k-ex__mi::after { left: 0; }
.fp--kishuf :is(#gallery, #world) .k-ex__mi.is-sel::before, .fp--kishuf :is(#gallery, #world) .k-ex__mi.is-sel::after { opacity: 1; }
.fp--kishuf :is(#gallery, #world) .k-ex__gprompt {
  font: 600 max(12px, 1.7cqi)/1.3 var(--f-text); letter-spacing: .3em; color: rgba(255,241,201,.6); margin-top: 1cqi;
}

/* ד׳ the chapter opening on parchment */
.fp--kishuf :is(#gallery, #world) .k-ex__page {
  position: relative; aspect-ratio: 4 / 5; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 9cqi 9cqi 11cqi; border-radius: 2px; background: var(--k-parchment); color: var(--k-ink); box-shadow: var(--k-ex-key);
}
.fp--kishuf :is(#gallery, #world) .k-ex__chn { font: 600 max(12px, 2.6cqi)/1 var(--f-text); letter-spacing: .25em; display: inline-flex; align-items: baseline; gap: .4em; }
.fp--kishuf :is(#gallery, #world) .k-ex__chn .k-ex__kd { font-size: max(20px, 5.4cqi); letter-spacing: 0; }
.fp--kishuf :is(#gallery, #world) .k-ex__cht { margin-top: 4cqi; font-size: 13cqi; line-height: 1.35; }
.fp--kishuf :is(#gallery, #world) .k-ex__cht .k-first { color: var(--k-ex-bolt-ink); }
.fp--kishuf :is(#gallery, #world) .k-ex__rule { display: block; width: 16cqi; height: 1px; margin: 2cqi auto 5cqi; background: rgba(26,15,46,.45); }
.fp--kishuf :is(#gallery, #world) .k-ex__body {
  display: block; align-self: stretch; text-align: start; font: 400 max(14px, 4cqi)/1.7 var(--f-text); color: var(--k-ink);
}
/* a three-line Bolt drop cap: its body spans three lines, its lightning runs down beside the paragraph */
.fp--kishuf :is(#gallery, #world) .k-ex__cap {
  float: right; margin: -.02em 0 0 .12em; font: 400 8em/.66 'FS Kishuf Bolt', var(--f-brand); font-synthesis: none;
  color: var(--k-ex-bolt-ink); height: 1em;
}

/* ה׳ the ticket: gold main part, a stub behind a perforation, notches cut by a mask */
.fp--kishuf :is(#gallery, #world) .k-ex__f--ticket { filter: drop-shadow(-12px 20px 22px rgba(0,0,0,.55)); }
.fp--kishuf :is(#gallery, #world) .k-ex__ticket {
  --nr: max(9px, 2.2cqi); --nx: 27%;
  container-type: inline-size; display: grid; grid-template-columns: 1fr 27%; aspect-ratio: 2.35; color: var(--k-ink); border-radius: 6px;
  -webkit-mask: radial-gradient(circle at var(--nx) 0, #0000 var(--nr), #000 calc(var(--nr) + .5px)) top / 100% 51% no-repeat,
                radial-gradient(circle at var(--nx) 100%, #0000 var(--nr), #000 calc(var(--nr) + .5px)) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle at var(--nx) 0, #0000 var(--nr), #000 calc(var(--nr) + .5px)) top / 100% 51% no-repeat,
                radial-gradient(circle at var(--nx) 100%, #0000 var(--nr), #000 calc(var(--nr) + .5px)) bottom / 100% 51% no-repeat;
}
.fp--kishuf :is(#gallery, #world) .k-ex__tmain {
  display: grid; align-content: center; justify-items: start; gap: 1.6cqi; padding: 4cqi 6cqi; border-radius: 0 6px 6px 0;
  background: linear-gradient(160deg, #f8d35a, var(--k-gold) 55%, #dcaa2a);
}
.fp--kishuf :is(#gallery, #world) .k-ex__tkick { font: 700 max(12px, 1.9cqi)/1.2 var(--f-text); letter-spacing: .26em; }
.fp--kishuf :is(#gallery, #world) .k-ex__tt { font-size: 9.5cqi; line-height: 1.3; }
.fp--kishuf :is(#gallery, #world) .k-ex__tt .k-first { color: var(--k-ex-bolt-ink); }
.fp--kishuf :is(#gallery, #world) .k-ex__twhen { display: flex; gap: 1.1em; font-size: 6cqi; line-height: 1.2; direction: ltr; }
.fp--kishuf :is(#gallery, #world) .k-ex__tstub {
  display: grid; align-content: center; justify-items: center; gap: 3cqi; padding: 4cqi 2.5cqi; border-radius: 6px 0 0 6px;
  background: #e9b833; border-right: 2px dashed rgba(26,15,46,.4); text-align: center;
}
.fp--kishuf :is(#gallery, #world) .k-ex__tseat { display: flex; flex-wrap: wrap; justify-content: center; font: 600 max(12px, 1.8cqi)/1.5 var(--f-text); }
.fp--kishuf :is(#gallery, #world) .k-ex__tseat span { white-space: nowrap; }
.fp--kishuf :is(#gallery, #world) .k-ex__tseat i { font-style: normal; white-space: pre; }
/* the stub is narrow on desktop: hall, row and seat on three lines */
@media (min-width: 701px) {
  .fp--kishuf :is(#gallery, #world) .k-ex__tseat { flex-direction: column; align-items: center; line-height: 1.45; }
  .fp--kishuf :is(#gallery, #world) .k-ex__tseat i { display: none; }
}
.fp--kishuf :is(#gallery, #world) .k-ex__bar {
  display: block; width: 72%; height: 8cqi; opacity: .82;
  background: repeating-linear-gradient(90deg, var(--k-ink) 0 2px, transparent 2px 4px, var(--k-ink) 4px 5px, transparent 5px 8px, var(--k-ink) 8px 11px, transparent 11px 13px, var(--k-ink) 13px 14px, transparent 14px 17px);
}

/* the render dialog */
.fp--kishuf #world .k-ex-dlg {
  padding: 0; border: 0; background: transparent; color: var(--k-cream); overflow: visible;
  max-width: 96vw; max-height: 96svh;
}
.fp--kishuf #world .k-ex-dlg[open] { display: grid; gap: 10px; justify-items: start; }
.fp--kishuf #world .k-ex-dlg::backdrop { background: rgba(5,3,11,.9); }
.fp--kishuf #world .k-ex-dlg__img {
  display: block; width: auto; height: auto; max-width: min(96vw, 1600px); max-height: calc(96svh - 64px); object-fit: contain; border-radius: 6px;
}
.fp--kishuf #world .k-ex-dlg__x {
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255,241,201,.45); background: rgba(11,7,22,.8);
  color: var(--k-cream); font: 600 15px/1 var(--f-text); cursor: pointer;
}
@media (hover: hover) { .fp--kishuf #world .k-ex-dlg__x:hover { border-color: var(--k-gold); } }

/* ============================ desktop and tablet: the zigzag grid ============================ */
@media (min-width: 701px) {
  .fp--kishuf :is(#gallery, #world) .k-ex-grid {
    width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(36px, 4vw, 56px) clamp(18px, 2vw, 28px); align-items: start;
  }
  .fp--kishuf #world .k-ex-rail { display: contents; }

  /* room 1: I / II + III / IV + V */
  .fp--kishuf #gallery .k-ex--opener { grid-column: 1 / -1; grid-row: 1; }
  .fp--kishuf #gallery .k-ex--mono { grid-column: 1 / span 5; grid-row: 2; }
  .fp--kishuf #gallery .k-ex--stack { grid-column: 6 / span 7; grid-row: 2; align-self: center; }
  .fp--kishuf #gallery .k-ex__stack { justify-items: center; }
  .fp--kishuf #gallery .k-ex--plate { grid-column: 1 / span 7; grid-row: 3; }
  .fp--kishuf #gallery .k-ex--clock { grid-column: 8 / span 5; grid-row: 3; align-self: center; }

  /* room 2: 1 / 2 + 3 / 4 + 5, 6 / 7 + 8 */
  .fp--kishuf #world .k-ex--book { grid-column: 1 / -1; grid-row: 1; }
  .fp--kishuf #world .k-ex--poster { grid-column: 1 / span 5; grid-row: 2; }
  .fp--kishuf #world .k-ex--game { grid-column: 6 / span 7; grid-row: 2; }
  .fp--kishuf #world .k-ex--page { grid-column: 8 / span 5; grid-row: 3 / span 2; }
  .fp--kishuf #world .k-ex--ticket { grid-column: 1 / span 7; grid-row: 3; }
  .fp--kishuf #world .k-ex--seal { grid-column: 1 / span 7; grid-row: 4; }
  .fp--kishuf #world .k-ex--potion { grid-column: 1 / span 4; grid-row: 5; }
  .fp--kishuf #world .k-ex--letter { grid-column: 5 / span 8; grid-row: 5; }

  /* portrait pieces never grow taller than 70% of a short screen (landscape phones, small laptops) */
  .fp--kishuf #world .k-ex--poster { width: min(100%, 70svh * 2 / 3); justify-self: center; }
  .fp--kishuf #world .k-ex--page { width: min(100%, 70svh * 4 / 5); justify-self: center; }
}

/* ============================ phone ============================ */
@media (max-width: 700px) {
  /* room 1: a deck of uniform 4:5 frames */
  .fp--kishuf #gallery .k-ex-grid {
    width: 100%; margin: 0; grid-auto-columns: max(86%, 252px); gap: 12px; padding: 4px var(--gutter) 10px;
    scroll-padding-inline: var(--gutter); align-items: start;
  }
  .fp--kishuf #gallery .k-ex__f { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; }
  .fp--kishuf #gallery .k-ex__f--stack, .fp--kishuf #gallery .k-ex__f--clock {
    display: grid; place-items: center; border: 1px solid var(--k-line); background: rgba(11,7,22,.55);
  }
  .fp--kishuf #gallery .k-ex__band { aspect-ratio: auto; height: 100%; border-radius: 6px; }
  .fp--kishuf #gallery .k-ex__band::before {
    content: ''; position: absolute; inset: 21% 0; border-block: 1px solid rgba(245,200,66,.18); pointer-events: none;
  }
  .fp--kishuf #gallery .k-ex__word { font-size: 52cqi; }
  .fp--kishuf #gallery .k-ex__light { width: 70cqi; }
  .fp--kishuf #gallery .k-ex__mono { aspect-ratio: auto; height: 100%; border-radius: 6px; }
  .fp--kishuf #gallery .k-ex__q { font-size: 160cqi; top: calc(102cqi - .75em); }
  .fp--kishuf #gallery .k-ex__stack { font-size: 56cqi; justify-items: center; }
  .fp--kishuf #gallery .k-ex__plate { height: 100%; align-content: center; padding: 6cqi 4cqi; border-radius: 6px; }
  .fp--kishuf #gallery .k-ex__p1 { font-size: 62cqi; line-height: 1.3; }
  .fp--kishuf #gallery .k-ex__p2 { font-size: 27cqi; line-height: 1.3; }
  .fp--kishuf #gallery .k-ex__clock { padding: 0; width: 100%; }
  .fp--kishuf #gallery .k-ex__dg { font-size: 58cqi; }
  .fp--kishuf #gallery .k-ex__dsub { font-size: 20cqi; }
  .fp--kishuf #gallery .k-ex__l { margin-top: 10px; }

  /* one rail: js/60-exhibition.js moves room 2's pieces in here, so room 2 has no box of its own (the dialog stays in it).
     The numerals are per room and the rail's counter replaces them. */
  .fp--kishuf #world.fp-sec { padding-block: 0; border-top: 0; }
  .fp--kishuf #world :is(.k-head, .k-ex-grid) { display: none; }
  .fp--kishuf #gallery .k-ex__big, .fp--kishuf #gallery .k-label b { display: none; }
  .fp--kishuf #gallery .k-ex__small { display: inline; }

  /* renders and framed pieces fill the same 4:5 frame */
  .fp--kishuf #gallery .k-ex__open { height: 100%; border-radius: 6px; box-shadow: none; }
  .fp--kishuf #gallery .k-ex__open img { height: 100%; aspect-ratio: auto; object-fit: cover; }
  .fp--kishuf #gallery .k-ex--book .k-ex__open img { object-position: 50% 50%; }
  .fp--kishuf #gallery .k-ex--letter .k-ex__open img { object-position: 50% 40%; }
  .fp--kishuf #gallery .k-ex--seal .k-ex__open img { object-position: 53% 47%; }
  .fp--kishuf #gallery .k-ex__poster { aspect-ratio: auto; height: 100%; border-radius: 6px; padding: 6cqi 6cqi 5cqi; }
  .fp--kishuf #gallery .k-ex__ptitle { font-size: 40cqi; }
  .fp--kishuf #gallery .k-ex__game { aspect-ratio: auto; height: 100%; gap: 4cqi; border-radius: 6px; }
  .fp--kishuf #gallery .k-ex__page { aspect-ratio: auto; height: 100%; padding: 7cqi 8cqi; border-radius: 6px; }
  .fp--kishuf #gallery .k-ex__f--ticket {
    display: grid; place-items: center; border: 1px solid var(--k-line); background: rgba(11,7,22,.55);
  }

  /* the ticket turns upright on a phone: stub at the bottom, perforation across, notches at the sides */
  .fp--kishuf #gallery .k-ex__ticket {
    --ny: 72%; width: 66%; aspect-ratio: 1 / 1.72; grid-template-columns: none; grid-template-rows: 72% 28%;
    -webkit-mask: radial-gradient(circle at 0 var(--ny), #0000 var(--nr), #000 calc(var(--nr) + .5px)) left / 51% 100% no-repeat,
                  radial-gradient(circle at 100% var(--ny), #0000 var(--nr), #000 calc(var(--nr) + .5px)) right / 51% 100% no-repeat;
            mask: radial-gradient(circle at 0 var(--ny), #0000 var(--nr), #000 calc(var(--nr) + .5px)) left / 51% 100% no-repeat,
                  radial-gradient(circle at 100% var(--ny), #0000 var(--nr), #000 calc(var(--nr) + .5px)) right / 51% 100% no-repeat;
  }
  .fp--kishuf #gallery .k-ex__tmain { border-radius: 6px 6px 0 0; padding: 10cqi 9cqi; gap: 5cqi; align-content: end; }
  .fp--kishuf #gallery .k-ex__tkick { font-size: max(12px, 4.5cqi); }
  .fp--kishuf #gallery .k-ex__tt { font-size: 21cqi; line-height: 1.25; }
  .fp--kishuf #gallery .k-ex__twhen { font-size: max(20px, 13cqi); }
  .fp--kishuf #gallery .k-ex__tstub { border-radius: 0 0 6px 6px; border-right: 0; border-top: 2px dashed rgba(26,15,46,.4); padding: 4cqi 6cqi; gap: 4cqi; }
  .fp--kishuf #gallery .k-ex__tseat { font-size: 12px; }
  .fp--kishuf #gallery .k-ex__bar { height: 9cqi; width: 80%; }
}

/* ===== 70-glyphs.css ===== */
/* ---------- 70-glyphs: the book of letters (#alphabet). Ruled baselines, no boxes; an inspector with metric lines
   from the font's numbers (--y, em, set at build time). Baselines: a glyph line with line-height L puts the baseline
   (L - 1.1em) / 2 + .8em under its top: cells use L = 1.1 (baseline .8em), the desktop stage L = 1.7 (1.1em). ---------- */
.fp--kishuf #alphabet .kg { width: var(--wrap); margin-inline: auto; }
.fp--kishuf #alphabet .kg-main {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(28px, 4vw, 72px); align-items: start;
}
.fp--kishuf #alphabet .kg-book { grid-column: 1; grid-row: 1; container: kgbook / inline-size; min-width: 0; }
.fp--kishuf #alphabet .kg-insp { grid-column: 2; grid-row: 1; }

/* ---------- bar: Regular | Bolt ---------- */
.fp--kishuf #alphabet .kg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: clamp(22px, 3vw, 36px); }
.fp--kishuf #alphabet .kg-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 280px); }
.fp--kishuf #alphabet .kg-bar__note { margin: 0; max-width: 30ch; font: 400 14px/1.45 var(--f-text); color: var(--k-muted); }

.fp--kishuf #alphabet .kg-tabs { display: none; }

/* ---------- groups and cells ---------- */
.fp--kishuf #alphabet .kg-grp + .kg-grp { margin-top: clamp(20px, 2.6vw, 34px); }
.fp--kishuf #alphabet .kg-grp__h { margin: 0 0 4px; font: 700 13px/1.3 var(--f-text); letter-spacing: .06em; color: var(--k-muted); }
.fp--kishuf #alphabet .kg-grp__n { color: var(--k-gold); letter-spacing: 0; }
.fp--kishuf #alphabet .kg-grid {
  --kg-cols: 9; --kg-fc: 9; --kg-gmax: 64px;
  display: grid; grid-template-columns: repeat(var(--kg-cols), minmax(0, 1fr));
  font-family: 'FS Kishuf', var(--f-brand); font-weight: 400; font-style: normal; font-synthesis: none; font-kerning: normal;
  font-size: min(var(--kg-gmax), calc(100cqi / var(--kg-fc) * .82)); line-height: 1.1; color: var(--k-letter);
}
.fp--kishuf #alphabet .kg-grid[data-grp="digits"] { --kg-cols: 10; }
.fp--kishuf #alphabet .kg-c {
  -webkit-appearance: none; appearance: none; position: relative; display: block; width: 100%; height: 1.42em;
  margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
/* the ruling: a faint letter-height line and the baseline, both continuous across a row (cells touch) */
.fp--kishuf #alphabet .kg-c::before, .fp--kishuf #alphabet .kg-c::after {
  content: ''; position: absolute; inset-inline: 0; height: 1px; pointer-events: none;
}
.fp--kishuf #alphabet .kg-c::before { top: calc((.8 - var(--k-xh)) * 1em); background: var(--k-xline); }
.fp--kishuf #alphabet .kg-c::after { top: .8em; background: color-mix(in srgb, var(--k-gold) 32%, transparent); }
.fp--kishuf #alphabet .kg-c__w {
  position: absolute; top: 0; inset-inline: 0; line-height: 1.1; text-align: center; white-space: nowrap; pointer-events: none;
  transition: color var(--k-t-micro) var(--k-ease);
}
.fp--kishuf #alphabet .kg-c__t {
  position: absolute; top: .8em; inset-inline: 20%; height: 3px; border-radius: 0 0 2px 2px; background: var(--k-gold);
  opacity: 0; transition: opacity var(--k-t-micro) var(--k-ease); pointer-events: none;
}
.fp--kishuf #alphabet .kg-c[aria-pressed="true"] .kg-c__w { color: var(--k-charge); }
.fp--kishuf #alphabet .kg-c[aria-pressed="true"] .kg-c__t { opacity: 1; }
.fp--kishuf #alphabet .kg-c:focus-visible { z-index: 1; }
@media (hover: hover) {
  .fp--kishuf #alphabet .kg-c:hover .kg-c__w { color: var(--k-charge); }
  .fp--kishuf #alphabet .kg-c:hover:not([aria-pressed="true"]) .kg-c__t { opacity: .35; }
}
.fp--kishuf #alphabet .kg-colo {
  margin: clamp(22px, 3vw, 34px) 0 0; padding-top: 12px; border-top: 1px solid var(--k-line);
  font: 400 13px/1.5 var(--f-text); letter-spacing: .04em; color: var(--k-muted);
}

/* ---------- inspector ---------- */
.fp--kishuf #alphabet .kg-insp {
  --kg-is: clamp(8rem, 3rem + 9vw, 14rem); --kg-bl: 1.1; --kg-lh: 1.7; --kg-sh: 1.75; --kg-lab: 8.5rem;
  position: sticky; z-index: 3; align-self: start;
}
.fp--kishuf #alphabet .kg-stage {
  position: relative; height: calc(var(--kg-sh) * 1em); font-size: var(--kg-is);
  font-family: 'FS Kishuf', var(--f-brand); font-weight: 400; font-synthesis: none; font-kerning: normal; color: var(--k-letter);
}
.fp--kishuf #alphabet .kg-stage__w {
  position: absolute; top: 0; inset-inline-start: 0; inset-inline-end: var(--kg-lab);
  line-height: var(--kg-lh); text-align: center; white-space: nowrap;
}
.fp--kishuf #alphabet .kg-stage .k-g { text-shadow: var(--k-glow); }
.fp--kishuf #alphabet .kg-stage .k-g.is-bolt { text-shadow: var(--k-glow-bolt); }
.fp--kishuf #alphabet .kg-ln {
  position: absolute; inset-inline: 0; top: calc((var(--kg-bl) - var(--y)) * 1em); height: 1px;
  background: var(--k-xline); transform-origin: 100% 50%;
}
.fp--kishuf #alphabet .kg-ln--base { background: var(--k-base); }
.fp--kishuf #alphabet .kg-ln--bolt { background: repeating-linear-gradient(270deg, var(--k-base) 0 6px, transparent 6px 11px); }
.fp--kishuf #alphabet .kg-ln__l {
  position: absolute; inset-inline-end: 0; bottom: 3px; width: calc(var(--kg-lab) - 10px);
  font: 400 12.5px/1.15 var(--f-text); color: var(--k-muted); text-align: end;
}
.fp--kishuf #alphabet .kg-ln--base .kg-ln__l, .fp--kishuf #alphabet .kg-ln--bolt .kg-ln__l { color: var(--k-cream); }
/* metric lines draw once on first view (JS adds kg--draw only with motion on) */
.fp--kishuf #alphabet .kg--draw .kg-ln { transform: scaleX(0); }
.fp--kishuf #alphabet .kg--draw .kg-ln__l { opacity: 0; }
.fp--kishuf #alphabet .kg--draw.is-seen .kg-ln { transform: none; transition: transform 300ms var(--k-ease); }
.fp--kishuf #alphabet .kg--draw.is-seen .kg-ln__l { opacity: 1; transition: opacity 300ms var(--k-ease) 120ms; }

.fp--kishuf #alphabet .kg-info {
  display: grid; align-content: start; gap: 10px; min-height: 12.5rem; padding-top: 14px; border-top: 1px solid var(--k-line);
}
.fp--kishuf #alphabet .kg-name { margin: 0; font: 400 15px/1.4 var(--f-text); color: var(--k-cream); }
.fp--kishuf #alphabet .kg-name b { font-weight: 700; }
.fp--kishuf #alphabet .kg-name__u { color: var(--k-gold); letter-spacing: .04em; unicode-bidi: isolate; }
.fp--kishuf #alphabet .kg-ex {
  margin: 0; min-height: 1.45em; font-family: 'FS Kishuf', var(--f-brand); font-weight: 400; font-synthesis: none;
  font-kerning: normal; font-size: clamp(2.6rem, 1.4rem + 2vw, 4rem); line-height: 1.45; color: var(--k-letter);
  white-space: nowrap; overflow-wrap: normal;
}
.fp--kishuf #alphabet .kg-ex__v { display: inline-block; unicode-bidi: plaintext; }   /* 1+1=2 and 24/7 read left to right, Hebrew samples right to left */
.fp--kishuf #alphabet .kg-ex .k-first { color: var(--k-charge); }
.fp--kishuf #alphabet .kg-ex .kg-hl { color: var(--k-gold); }
.fp--kishuf #alphabet .kg-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 44px; }
.fp--kishuf #alphabet .kg-ayin { display: inline-flex; gap: 6px; }
.fp--kishuf #alphabet .kg-ayin[hidden], .fp--kishuf #alphabet .kg-note[hidden] { display: none; }
.fp--kishuf #alphabet .kg-ayin__b {
  min-height: 40px; padding: 0 14px; border: 1px solid var(--k-line); border-radius: 999px; background: transparent;
  color: var(--k-cream); font: 400 14px/1.15 var(--f-text); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--k-t-micro) var(--k-ease), box-shadow var(--k-t-micro) var(--k-ease);
}
.fp--kishuf #alphabet .kg-ayin__b[aria-pressed="true"] {
  border-color: transparent; background: rgba(245,200,66,.08); box-shadow: inset 0 0 0 1.5px var(--k-gold); color: var(--k-gold);
}
@media (hover: hover) { .fp--kishuf #alphabet .kg-ayin__b:hover:not([aria-pressed="true"]) { background: rgba(245,200,66,.05); } }
@media (pointer: coarse) { .fp--kishuf #alphabet .kg-ayin__b { min-height: 44px; } }
.fp--kishuf #alphabet .kg-note { margin: 0; font: 400 14px/1.4 var(--f-text); color: var(--k-muted); }
.fp--kishuf #alphabet .kg-nav { display: none; }

/* ---------- in real text ---------- */
.fp--kishuf #alphabet .kg-set { margin-top: clamp(44px, 6vw, 88px); padding-top: clamp(20px, 3vw, 32px); border-top: 1px solid var(--k-line); text-align: center; }
.fp--kishuf #alphabet .kg-set__cap { margin: 0 0 14px; font: 700 13px/1.3 var(--f-text); letter-spacing: .06em; color: var(--k-muted); }
.fp--kishuf #alphabet .kg-set__l {
  margin: 0; font-family: 'FS Kishuf', var(--f-brand); font-weight: 400; font-synthesis: none; font-kerning: normal;
  line-height: 1.35; color: var(--k-letter); overflow-wrap: normal; text-wrap: balance;
}
.fp--kishuf #alphabet .kg-set__l .k-first { color: var(--k-charge); }
.fp--kishuf #alphabet .kg-set__l--0 { font-size: 3rem; }
.fp--kishuf #alphabet .kg-set__l--1 { font-size: 3.6rem; }
.fp--kishuf #alphabet .kg-set__l--2 { font-size: 4.4rem; text-shadow: var(--k-glow); }
.fp--kishuf #alphabet .kg-set__l--2 .k-first { text-shadow: var(--k-glow-bolt); }
.fp--kishuf #alphabet .kg-set__miss { margin: 22px auto 0; max-width: 56ch; font: 400 15px/1.6 var(--f-text); color: var(--k-muted); }

/* ---------- phone and tablet (860px and below): the compact sticky stage first, then the book ---------- */
@media (max-width: 860px) {
  .fp--kishuf #alphabet .kg-main { grid-template-columns: minmax(0, 1fr); }
  .fp--kishuf #alphabet .kg-insp { grid-column: 1; grid-row: 1; }
  .fp--kishuf #alphabet .kg-book { grid-column: 1; grid-row: 2; padding-bottom: 24px; }
  .fp--kishuf #alphabet .kg-insp {
    --kg-is: 104px; --kg-bl: .8; --kg-lh: 1.1; --kg-sh: 1.42; --kg-lab: 4.7rem;
    display: grid; grid-template-columns: clamp(8.4rem, 42vw, 11.5rem) minmax(0, 1fr); column-gap: 12px; align-items: center;
    margin: 0 calc(-1 * var(--gutter)) 18px; padding: 8px var(--gutter);
    background: color-mix(in srgb, var(--k-night) 92%, transparent); border-bottom: 1px solid var(--k-line);
  }
  .fp--kishuf #alphabet .kg-stage .k-g, .fp--kishuf #alphabet .kg-stage .k-g.is-bolt { text-shadow: none; }
  .fp--kishuf #alphabet :is(.kg-ln--asc, .kg-ln--x, .kg-ln--fin) { display: none; }
  .fp--kishuf #alphabet .kg-ln__l { font-size: 12px; bottom: 2px; }
  .fp--kishuf #alphabet .kg-info { min-height: 0; padding-top: 0; border-top: 0; gap: 6px; }
  .fp--kishuf #alphabet .kg-name { font-size: 14px; }
  .fp--kishuf #alphabet .kg-ex { font-size: 26px; min-height: 1.45em; }
  .fp--kishuf #alphabet .kg-extra { min-height: 0; }
  .fp--kishuf #alphabet .kg-extra:not(:has(> :not([hidden]))) { display: none; }
  .fp--kishuf #alphabet .kg-ayin { display: flex; width: 100%; }
  .fp--kishuf #alphabet .kg-ayin__b { flex: 1 1 0; min-height: 44px; padding: 2px 6px; font-size: 13px; }
  .fp--kishuf #alphabet .kg-note { display: none; }
  .fp--kishuf #alphabet .kg-nav { display: flex; gap: 8px; }
  .fp--kishuf #alphabet .kg-nav__b {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--k-line); border-radius: 50%;
    background: transparent; color: var(--k-cream); cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .fp--kishuf #alphabet .kg-nav__b .k-ico { width: 20px; height: 20px; }
  .fp--kishuf #alphabet .kg-nav__b:disabled { opacity: .4; cursor: default; }
  .fp--kishuf #alphabet .kg-grid { --kg-gmax: 44px; }
  .fp--kishuf #alphabet .kg-c { scroll-margin-top: calc(var(--k-nav) + 210px); scroll-margin-bottom: 16px; }
  .fp--kishuf #alphabet .kg-bar { margin-bottom: 18px; }
  .fp--kishuf #alphabet .kg-set__l--0 { font-size: 2.4rem; }
  .fp--kishuf #alphabet .kg-set__l--1 { font-size: 2.6rem; }
  .fp--kishuf #alphabet .kg-set__l--2 { font-size: 3rem; text-shadow: none; }
  .fp--kishuf #alphabet .kg-set__l--2 .k-first { text-shadow: none; }
}
/* narrow books: fewer, wider cells, so every target stays at least 44px wide */
@container kgbook (max-width: 395px) {
  .fp--kishuf #alphabet .kg-grid { --kg-cols: 7; --kg-fc: 7; }
  .fp--kishuf #alphabet .kg-grid[data-grp="digits"] { --kg-cols: 5; }
}
@container kgbook (max-width: 307px) {
  .fp--kishuf #alphabet .kg-grid { --kg-cols: 6; --kg-fc: 6; }
  .fp--kishuf #alphabet .kg-grid[data-grp="digits"] { --kg-cols: 5; }
}

/* ---------- phone: one frame. The chosen glyph on top (not sticky), under it the switch, the group buttons and a bounded
   grid. One group at a time: each one fits its box at every phone width (rows are --kg-row tall), so a page swipe that
   starts on the grid scrolls the page. If a font size ever makes a group overflow, the box scrolls and hands over to the
   page at its ends (no overscroll-behavior: contain here). Heights are fixed: nothing moves when a group or glyph changes. ---------- */
@media (max-width: 700px) {
  .fp--kishuf #alphabet .kg-main {
    display: block; border: 1px solid var(--k-line); border-radius: 16px; overflow: hidden; background: rgba(11,7,22,.55);
  }
  .fp--kishuf #alphabet .kg-insp {
    position: static; margin: 0; padding: 8px 10px; height: 176px; background: none; align-items: start;
    grid-template-columns: clamp(7.6rem, 38vw, 11rem) minmax(0, 1fr);
  }
  .fp--kishuf #alphabet .kg-stage { margin-top: 4px; }
  .fp--kishuf #alphabet .kg-info { align-content: start; gap: 2px; }
  .fp--kishuf #alphabet .kg-ex { font-size: 24px; }
  .fp--kishuf #alphabet .kg-extra { order: 1; }
  .fp--kishuf #alphabet .kg-nav { margin-top: 2px; }
  .fp--kishuf #alphabet .kg-book { padding: 8px 10px 10px; }

  .fp--kishuf #alphabet .kg-bar { min-height: 56px; margin-bottom: 6px; justify-content: center; }
  .fp--kishuf #alphabet .kg-bar__note { display: none; max-width: none; text-align: center; }
  .fp--kishuf #alphabet .kg-main:not([data-grp="letters"]) .kg-modes { display: none; }
  .fp--kishuf #alphabet .kg-main:not([data-grp="letters"]) .kg-bar__note { display: block; }

  .fp--kishuf #alphabet .kg-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-bottom: 8px; }
  .fp--kishuf #alphabet .kg-tab {
    min-height: 44px; padding: 0 2px; border: 1px solid var(--k-line); border-radius: 10px; background: transparent; color: var(--k-cream);
    font: 600 14px/1.1 var(--f-text); cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .fp--kishuf #alphabet .kg-tab[aria-pressed="true"] {
    border-color: transparent; background: rgba(245,200,66,.08); box-shadow: inset 0 0 0 1.5px var(--k-gold); color: var(--k-gold);
  }

  .fp--kishuf #alphabet .kg-scroll .kg-grid { --kg-gmax: inherit; }
  .fp--kishuf #alphabet .kg-scroll { --kg-gmax: 38px; --kg-rows: 5; --kg-row: 54px; height: calc(var(--kg-rows) * var(--kg-row) + 6px); overflow-y: auto; }
  .fp--kishuf #alphabet .kg-scroll.is-more {
    -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent);
  }
  .fp--kishuf #alphabet .kg-grp { display: none; }
  .fp--kishuf #alphabet .kg-grp + .kg-grp { margin-top: 0; }
  .fp--kishuf #alphabet .kg-main[data-grp="letters"] :is(.kg-grp--letters, .kg-grp--swash),
  .fp--kishuf #alphabet .kg-main[data-grp="nikud"] .kg-grp--nikud,
  .fp--kishuf #alphabet .kg-main[data-grp="digits"] .kg-grp--digits,
  .fp--kishuf #alphabet .kg-main[data-grp="marks"] .kg-grp--marks { display: block; }
  .fp--kishuf #alphabet .kg-grp__h {   /* the buttons name the group; screen readers keep the heading */
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .fp--kishuf #alphabet .kg-colo { display: none; }
  .fp--kishuf #alphabet .kg-set { margin-top: 28px; padding-top: 0; border-top: 0; }
}
@media (max-width: 700px) {
  @container kgbook (max-width: 307px) { .fp--kishuf #alphabet .kg-scroll { --kg-rows: 6; --kg-row: 49px; --kg-gmax: 34px; } }
  @container kgbook (min-width: 396px) { .fp--kishuf #alphabet .kg-scroll { --kg-rows: 4; } }
}

/* ===== 80-story.css ===== */
/* ---------- 80-story: #about (SPEC §12). 2008 = FS HP (bronze), 2026 = Kishuf Regular (letter).
   FS HP is assigned only under #about.k-near (js/80-story.js, K.seen with 1200px margin) so the file is not fetched at load.
   FS HP always at var(--k-hp) x the Kishuf size: the letter bodies match (.7197 x .7267 = .523 = Kishuf). ---------- */

/* Row A: the story and the facts */
.fp--kishuf #about .k-st__a {
  width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 5vw, 80px); align-items: start;
}
.fp--kishuf #about .k-st__story { display: grid; gap: 1em; max-width: 60ch; }
.fp--kishuf #about .k-st__story p { margin: 0; font: 400 var(--fs-lead)/1.75 var(--f-text); color: var(--k-cream); }
.fp--kishuf #about .k-st__facts { margin: 0; display: grid; border-top: 1px solid var(--k-line); }
.fp--kishuf #about .k-st__fact {
  display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 4px 16px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--k-line);
}
.fp--kishuf #about .k-st__fact dt { font: 700 13px/1.3 var(--f-text); letter-spacing: .06em; color: var(--k-muted); }
.fp--kishuf #about .k-st__fact dd {
  margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0;
  font: 400 1rem/1.4 var(--f-text); color: var(--k-cream);
}
.fp--kishuf #about .k-st__s {
  font-family: 'FS Kishuf', var(--f-brand); font-weight: 400; font-synthesis: none; font-kerning: normal;
  font-size: 1.5em; line-height: 1.35; color: var(--k-letter); white-space: nowrap; overflow-wrap: normal;
}
.fp--kishuf #about .k-st__s .k-first { color: var(--k-charge); }
.fp--kishuf #about .k-st__s--bolt { font-family: 'FS Kishuf Bolt', var(--f-brand); color: var(--k-charge); }
.fp--kishuf #about .k-st__s--num { direction: ltr; unicode-bidi: isolate; }
.fp--kishuf #about .k-st__gold { color: var(--k-gold); }
.fp--kishuf #about .k-st__txt { color: var(--k-cream); }
.fp--kishuf #about .k-st__pair { display: inline-flex; align-items: baseline; gap: 10px; }
.fp--kishuf #about .k-st__dot { color: var(--k-muted); }
.fp--kishuf #about .k-st__trio { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.fp--kishuf #about .k-st__opt { display: inline-grid; justify-items: center; gap: 0; }
.fp--kishuf #about .k-st__opt .k-st__s { line-height: 1.5; }
.fp--kishuf #about .k-st__lab { font: 400 13px/1.2 var(--f-text); color: var(--k-muted); }

/* Row B: the then-and-now plate */
.fp--kishuf #about .k-st__plate {
  --st-t: 180ms; width: var(--wrap); margin: clamp(48px, 7vw, 96px) auto 0; padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--k-line); display: grid; gap: clamp(24px, 3.5vw, 44px);
}

/* timeline: 2008 on the right, 2026 on the left (RTL order) */
.fp--kishuf #about .k-st__tl { width: min(100%, 760px); margin-inline: auto; display: grid; gap: 14px; }
.fp--kishuf #about .k-st__nodes { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; align-items: center; }
.fp--kishuf #about .k-st__rail { display: block; height: 2px; background: var(--k-gold); opacity: .55; margin-inline: -14px; }
.fp--kishuf #about .k-st__node {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px;
  padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--k-muted);
  font: 800 1.05rem/1 var(--f-text); letter-spacing: .04em; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color var(--k-t-micro) var(--k-ease);
}
.fp--kishuf #about .k-st__node[data-era="2008"] { flex-direction: row-reverse; }
.fp--kishuf #about .k-st__dotn {
  display: block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--k-gold); background: var(--k-night);
  box-sizing: border-box; transition: background-color var(--k-t-ui) var(--k-ease), box-shadow var(--k-t-ui) var(--k-ease);
}
.fp--kishuf #about .k-st__node[aria-pressed="true"] { color: var(--k-gold); }
.fp--kishuf #about .k-st__node[aria-pressed="true"] .k-st__dotn { box-shadow: 0 0 0 3px var(--k-night), 0 0 0 4.5px var(--k-gold); }
.fp--kishuf #about .k-st__plate[data-era="2008"] .k-st__node[data-era="2008"] .k-st__dotn,
.fp--kishuf #about .k-st__plate[data-era="2026"] .k-st__node[data-era="2026"] .k-st__dotn { background: var(--k-gold); }
@media (hover: hover) {
  .fp--kishuf #about .k-st__node:hover { color: var(--k-cream); }
  .fp--kishuf #about .k-st__node[aria-pressed="true"]:hover { color: var(--k-gold); }
}
.fp--kishuf #about .k-st__caps { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 64px); }
.fp--kishuf #about .k-st__cap { margin: 0; font: 400 15px/1.6 var(--f-text); color: var(--k-muted); text-align: start; }
.fp--kishuf #about .k-st__cap:last-child { text-align: end; }
.fp--kishuf #about .k-st__cap b { display: block; margin-bottom: 4px; font: 800 1rem/1.3 var(--f-text); color: var(--k-cream); }
.fp--kishuf #about .k-st__meta { display: block; margin-top: 4px; font: 700 13px/1.3 var(--f-text); letter-spacing: .06em; color: var(--k-gold); }

/* stage: the word and the 27 letters. Each holder stacks both eras in one grid area, baseline-aligned, fixed size. */
.fp--kishuf #about .k-st__stage {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 720px); gap: clamp(24px, 4vw, 64px); align-items: center;
}
.fp--kishuf #about .k-st__word,
.fp--kishuf #about .k-st__c {
  margin: 0; display: grid; grid-template: 1fr / 1fr; align-items: baseline; justify-items: center;
  font-family: 'FS Kishuf', var(--f-brand); font-weight: 400; font-synthesis: none; font-kerning: normal; overflow-wrap: normal;
}
.fp--kishuf #about .k-st__word { font-size: clamp(5rem, 3rem + 6vw, 9.5rem); height: 1.4em; white-space: nowrap; }
.fp--kishuf #about .k-st__k,
.fp--kishuf #about .k-st__h {
  grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(4px);
  transition: opacity var(--st-t) var(--k-ease) var(--st-d, 0ms), transform var(--st-t) var(--k-ease) var(--st-d, 0ms);
}
.fp--kishuf #about .k-st__k { line-height: 1.4; color: var(--k-letter); }
.fp--kishuf #about .k-st__h { font-family: var(--f-text); font-size: calc(var(--k-hp) * 1em); line-height: 1; color: var(--k-bronze); }
.fp--kishuf #about.k-near .k-st__h { font-family: 'FS HP', var(--f-brand); }
/* which era a holder shows: the plate's era, flipped for a peeked cell (.is-alt) */
.fp--kishuf #about .k-st__plate[data-era="2026"] .k-st__word .k-st__k,
.fp--kishuf #about .k-st__plate[data-era="2026"] .k-st__c:not(.is-alt) .k-st__k,
.fp--kishuf #about .k-st__plate[data-era="2008"] .k-st__c.is-alt .k-st__k,
.fp--kishuf #about .k-st__plate[data-era="2008"] .k-st__word .k-st__h,
.fp--kishuf #about .k-st__plate[data-era="2008"] .k-st__c:not(.is-alt) .k-st__h,
.fp--kishuf #about .k-st__plate[data-era="2026"] .k-st__c.is-alt .k-st__h { opacity: 1; transform: none; }
.fp--kishuf #about .k-st__plate.is-wave { --st-t: 420ms; }
.fp--kishuf #about .k-st__plate.is-wave .k-st__c { --st-d: calc(var(--i) * 35ms); }
.fp--kishuf #about .k-st__plate.is-run .k-st__k,
.fp--kishuf #about .k-st__plate.is-run .k-st__h { will-change: opacity, transform; }
.fp--kishuf #about .k-st__plate.is-instant .k-st__k,
.fp--kishuf #about .k-st__plate.is-instant .k-st__h { transition: none; }

.fp--kishuf #about .k-st__grid {
  container-type: inline-size; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px 0;
}
.fp--kishuf #about .k-st__c {
  font-size: min(56px, 100cqi / 9 / 1.3); height: 1.6em; cursor: default; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent; border-bottom: 1px solid var(--k-line);
}
.fp--kishuf #about .k-st__c .k-st__k { line-height: 1.5; }

/* end: the measured line, the bridge, the link */
.fp--kishuf #about .k-st__end { display: grid; justify-items: center; gap: 8px; text-align: center; }
.fp--kishuf #about .k-st__count { margin: 0; font: 800 1.15rem/1.4 var(--f-text); color: var(--k-gold); }
.fp--kishuf #about .k-st__bridge,
.fp--kishuf #about .k-st__note { margin: 0; max-width: 56ch; font: 400 1rem/1.6 var(--f-text); color: var(--k-muted); }
.fp--kishuf #about .k-st__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--k-gold);
  font: 700 1rem/1 var(--f-text); text-decoration: underline; text-underline-offset: .3em;
}

@media (prefers-reduced-motion: reduce) {
  .fp--kishuf #about .k-st__k, .fp--kishuf #about .k-st__h { transition: none; }
}

@media (max-width: 1000px) {
  .fp--kishuf #about .k-st__stage { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .fp--kishuf #about .k-st__grid { width: min(100%, 720px); }
}

/* phone: paragraphs, the plate, then the facts as compact rows */
@media (max-width: 700px) {
  .fp--kishuf #about { display: flex; flex-direction: column; align-items: center; }
  .fp--kishuf #about .k-st__a { display: contents; }
  .fp--kishuf #about .k-st__story { width: var(--wrap); order: 1; }
  .fp--kishuf #about .k-st__plate { order: 2; }
  .fp--kishuf #about .k-st__facts { width: var(--wrap); order: 3; margin-top: 24px; }
  .fp--kishuf #about .k-st__story p { font-size: 1rem; }
  .fp--kishuf #about .k-st__fact { grid-template-columns: 6.5em minmax(0, 1fr); padding: 6px 0; }
  .fp--kishuf #about .k-st__s { font-size: 1.5em; }
  .fp--kishuf #about .k-st__caps { grid-template-columns: minmax(0, 1fr); }
  .fp--kishuf #about .k-st__cap:last-child { text-align: start; }
  .fp--kishuf #about .k-st__word { font-size: 22vw; }
  .fp--kishuf #about .k-st__grid { width: 100%; }
  /* the timeline is the whole control: the word above it, one caption under it (both in one cell: no jump). The 27-letter
     grid stays on larger screens. */
  .fp--kishuf #about .k-st__grid, .fp--kishuf #about .k-st__stage .sr-only { display: none; }
  .fp--kishuf #about .k-st__plate {
    gap: 8px; margin-top: 28px; padding: 8px 14px 14px; border: 1px solid var(--k-line); border-radius: 16px; background: rgba(11,7,22,.55);
  }
  .fp--kishuf #about .k-st__stage { order: -1; display: block; }
  .fp--kishuf #about .k-st__tl { gap: 8px; }
  .fp--kishuf #about .k-st__cap { grid-area: 1 / 1; visibility: hidden; }
  .fp--kishuf #about .k-st__plate[data-era="2008"] #k-st-cap-2008,
  .fp--kishuf #about .k-st__plate[data-era="2026"] #k-st-cap-2026 { visibility: visible; }
  .fp--kishuf #about .k-st__end { gap: 4px; padding-top: 10px; border-top: 1px solid var(--k-line); }
  .fp--kishuf #about .k-st__bridge { font-size: 15px; }
}

/* ===== 90-cta.css ===== */
/* ---------- 90-cta: the last page (SPEC §13). No panel: a centred title card on the night castle, under a hairline ---------- */
.fp--kishuf .k-cta {
  width: min(var(--wrap), 760px); margin: 0 auto clamp(48px, 7vw, 96px);
  padding: clamp(48px, 7vw, 96px) 0 0; border-top: 1px solid var(--k-line);
  display: grid; justify-items: center; gap: 18px; text-align: center;
}
.fp--kishuf .k-cta__t {
  margin: 0; font: 800 clamp(1.7rem, 1rem + 2.6vw, 3.2rem)/1.25 var(--f-brand); color: var(--k-cream);
  text-wrap: balance;
}
.fp--kishuf .k-cta__v { display: inline-block; }
/* the word: Kishuf at 1.5em in letter slots (no font-size inside the .k-line itself) */
.fp--kishuf .k-cta__w { font-size: 1.5em; line-height: 1.35; white-space: nowrap; }
.fp--kishuf .k-cta__w .k-line { color: var(--k-letter); vertical-align: baseline; }
.fp--kishuf .k-cta__r { font-family: 'FS Kishuf', var(--f-brand); font-weight: 400; font-synthesis: none; font-size: 1.5em; line-height: 1.35; color: var(--k-letter); }
.fp--kishuf .k-cta__p { margin: 0; max-width: 46ch; font: 400 var(--fs-lead)/1.6 var(--f-text); color: var(--k-cream); }
.fp--kishuf .k-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.fp--kishuf .k-cta__btns .fp-btn { white-space: nowrap; justify-content: center; }
.fp--kishuf .k-cta__colo { margin: 6px 0 0; font: 400 13px/1.5 var(--f-text); letter-spacing: .02em; color: var(--k-muted); }

/* glow only where the word is 64px and up (h2 >= 42.7px from about 1030px wide) */
@media (min-width: 1030px) {
  .fp--kishuf .k-cta__w .k-g { text-shadow: var(--k-glow); }
  .fp--kishuf .k-cta__w .k-g.is-bolt { text-shadow: var(--k-glow-bolt); }
}

/* the rise (JS adds .is-pre while armed and .is-rise on first view; both only with motion) */
.js-motion .fp--kishuf .k-cta.is-pre .k-cta__w .k-f { opacity: 0; transform: translateY(.35em); }
.js-motion .fp--kishuf .k-cta.is-pre.is-rise .k-cta__w .k-f {
  opacity: 1; transform: none;
  transition: opacity 600ms var(--k-ease), transform 600ms var(--k-ease), translate var(--k-t-settle) var(--k-ease);
  transition-delay: calc(var(--i, 0) * 60ms), calc(var(--i, 0) * 60ms), 0ms;
  will-change: opacity, transform;
}

@media (max-width: 700px) {
  .fp--kishuf .k-cta { gap: 16px; }
  .fp--kishuf .k-cta__btns { width: 100%; }
  .fp--kishuf .k-cta__btns .fp-btn { flex: 1 1 0; padding-inline: 16px; }
}
/* below 360px the two buttons stack, full width */
@media (max-width: 359.98px) {
  .fp--kishuf .k-cta__btns { flex-direction: column; }
  .fp--kishuf .k-cta__btns .fp-btn { flex: none; width: 100%; }
}
