/* ============================================================
   Works archive /project/, /ua/project/ (+ /page/2-4/, the ?type= views): the hero with the map of the realized works
   (owner request 2026-10-14, Claude Design handoff design_handoff_works_hero; markup template-parts/works/hero.php +
   inc/works-map.php, interactions assets/js/works-map.js). Loaded on the archive views only (inc/pages/assets.php: the view
   key archive-project), after catalog.css + pages.css, before works.css. Own classes only: .bm-wkh* (the hero),
   .bm-wkh-trigger* (the map button), .bm-wkmap* (the map, dark in the hero, light in the desktop window), .bm-wkh-win*
   (the window) - grep-checked 2026-10-14: no other file of the theme uses them. The root keeps .bm-pg-hero
   .bm-pg-hero--navy (pages.css: position, overflow, the navy band, the dark-surface tokens of base.css).
   Handoff tokens: navy #2A2E47 (--bm-navy-700), #232639 (--bm-navy-800), #1B1E2E (--bm-navy-900), orange #F85A00
   (--bm-orange, never darker), muted on dark #AEB2C6 (--wkh-mut; the site's --bm-on-dark is #B9BDCE), light map #F7F8FA /
   #E4E6EC / #E9EBEF / #D5DAE2. ASCII only outside comments (rule category.css_ascii_2026_10_14).
   Deviations (decided): the breadcrumb is the theme's (12.5 px, the "\203A" separator; the handoff draws 15 px with a
   chevron icon) - one look site-wide; the side gutters are the theme's .bm-wrap ones (--bm-pad): 24 px at 768-1100 px
   (handoff 32 px) and 14 px at <= 400 px (handoff 18 px), so the hero's text lines up with the list under it.
   ============================================================ */

/* ---------- hero frame (handoff 1.1) ---------- */
.bm-wkh { --wkh-mut: #AEB2C6; }
.bm-wkh__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: stretch; gap: 0; min-height: 380px; }
.bm-wkh--hero .bm-wkh__in { align-items: start; } /* the text pinned to the top: it never moves when the card opens under the map */
.bm-wkh--photo .bm-wkh__copy { grid-column: 1; }

/* photo variants (modal, none): the photo under the handoff's gradient, at every width */
.bm-wkh__pic { position: absolute; inset: 0; }
.bm-wkh__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.bm-wkh--photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, #2A2E47 0%, rgba(42, 46, 71, .92) 30%, rgba(42, 46, 71, .55) 58%, rgba(42, 46, 71, .2) 100%);
}

/* ---------- text column (handoff 1.2) ---------- */
.bm-wkh__copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; min-width: 0; padding: 52px 48px 52px 0; }
.bm-wkh__copy > * { max-width: 100%; }
/* the margins off (the column's gap spaces it) - but not the crumbs': on phones / coarse pointers catalog.css gives them
   -13 px top and bottom around their 44 px tap rows, so the text stays where the design has it (fixer 2026-10-14);
   :where() keeps this rule as weak as one class (the trigger's and the figures' own margins win) */
.bm-wkh__copy > :where(:not(.bm-crumbs)) { margin: 0; }
/* the eyebrow on the body's line height as in the handoff (12 / 19.8 px; the site's .bm-eyebrow has 1.3), so the H1, the
   lead and the figures sit where the design has them */
.bm-wkh .bm-wkh__eyebrow { line-height: 1.65; }
.bm-wkh .bm-wkh__title {
	max-width: 590px;
	font: 500 clamp(1.9rem, .9rem + 4.2vw, 3.625rem)/1.05 var(--bm-fd);
	letter-spacing: -.01em;
	text-transform: uppercase;
	color: #fff;
}
.bm-wkh__lead { max-width: 470px; font-size: 1.225rem; line-height: 1.45; color: var(--wkh-mut); text-wrap: pretty; }
/* the four figures in ONE row as designed: the site's labels are longer than the handoff's («років — термін служби
   будівель»), so instead of wrapping the 4th figure to a second row (handoff: flex wrap) the items shrink and their labels
   wrap (min-content = the longest word); their line height is 1.35, not the handoff's inherited 1.65: the site's labels
   wrap to 2-3 lines and 1.65 spreads them apart (decided deviation, fixer 2026-10-14: with the handoff's one-line labels
   the block is about 4 px shorter) */
.bm-wkh .bm-wkh__stats { flex-wrap: nowrap; align-items: flex-start; gap: 32px; margin-top: 14px; } /* values on one line */
.bm-wkh .bm-wkh__stats .bm-stats__item { flex: 0 1 auto; min-width: 0; gap: 2px; }
.bm-wkh .bm-wkh__stats .bm-stats__value { font: 800 clamp(1.4rem, 1rem + 1.4vw, 1.9rem)/1 var(--bm-fd); color: #fff; }
.bm-wkh .bm-wkh__stats .bm-stats__label { font-size: .8rem; line-height: 1.35; color: var(--wkh-mut); text-wrap: balance; }

/* ---------- the map button (handoff 1.2 item 6; variants modal - every width, hero - phones only) ---------- */
.bm-wkh-trigger {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 14px;
	margin-top: 4px;
	padding: 7px 18px 7px 7px;
	border: 1px solid rgba(255, 255, 255, .24);
	border-radius: 6px;
	background: rgba(255, 255, 255, .06);
	color: #fff;
	font-family: var(--bm-fb);
	text-align: left;
	cursor: pointer;
	transition: border-color 200ms var(--bm-ease-out), background-color 200ms var(--bm-ease-out);
}
.bm-wkh-trigger:hover { border-color: var(--bm-orange); background: rgba(255, 255, 255, .1); }
.bm-wkh-trigger__mini { flex: none; display: grid; place-items: center; width: 72px; height: 47px; padding: 4px; border-radius: 4px; background: rgba(255, 255, 255, .06); }
.bm-wkh-trigger__svg { display: block; width: 100%; height: auto; }
.bm-wkh-trigger__regs { fill: rgba(255, 255, 255, .2); stroke: #353950; stroke-width: 10; stroke-linejoin: round; }
.bm-wkh-trigger__dots { fill: var(--bm-orange); }
.bm-wkh-trigger__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bm-wkh-trigger__title { font-size: 14.5px; font-weight: 700; line-height: 1.2; }
.bm-wkh-trigger__sub { font-size: 12.5px; line-height: 1.3; color: var(--wkh-mut); }
.bm-wkh-trigger__arrow { width: 18px; height: 18px; margin-left: 6px; stroke-width: 2.2; color: var(--bm-orange); }
.bm-wkh-trigger--phone { display: none; }

/* ---------- map column of the hero variant (handoff 1.3) ---------- */
.bm-wkh__map { min-width: 0; padding: 40px 0 40px 16px; }

/* ---------- the map (handoff 2.1-2.3, 2.7): dark (hero, phone window) / light (desktop window) ----------
   Markers are drawn in design units around (0, 0) inside g.bm-wkmap__s and scaled by --wkm-m = u / k (k = map width /
   1000, u = clamp(k, .9, 1.25)) so they never shrink on a narrow map. Without the script the bands below approximate it
   for the hero map (>= 1281 px: 562 px wide -> 1.6; 1101-1280: 477-562 px -> 1.75; <= 1100: 640 px -> 1.41; where the map
   is sized by the text - the @supports block further down, 2026-10-15 - >= 1273 px: 614 px -> 1.466, 1101-1272 px:
   533-614 px -> 1.58); the script sets the exact value on .bm-wkmap (inline --wkm-m) from a ResizeObserver. */
.bm-wkmap { --wkm-m: 1.6; display: flex; flex-direction: column; min-width: 0; }
.bm-wkmap__frame { position: relative; overflow: hidden; border-radius: 4px; }
.bm-wkmap--light .bm-wkmap__frame { border: 1px solid #E4E6EC; background: #F7F8FA; }
.bm-wkmap__svg { display: block; width: 100%; height: auto; }
.bm-wkmap__reg { fill: rgba(255, 255, 255, .07); stroke: rgba(27, 30, 46, .9); stroke-width: 2; stroke-linejoin: round; }
.bm-wkmap__reg.is-on { fill: rgba(255, 255, 255, .13); }
.bm-wkmap--light .bm-wkmap__reg { fill: #E9EBEF; stroke: #fff; }
.bm-wkmap--light .bm-wkmap__reg.is-on { fill: #D5DAE2; }
.bm-wkmap__s { transform: scale(var(--wkm-m)); }
.bm-wkmap__kyiv { pointer-events: none; transition: opacity 240ms ease-out; }
.bm-wkmap__kyiv circle { fill: #fff; }
.bm-wkmap__kyiv text { font: 700 13px var(--bm-fb); fill: #fff; }
.bm-wkmap--light .bm-wkmap__kyiv circle, .bm-wkmap--light .bm-wkmap__kyiv text { fill: #2A2E47; }
.bm-wkmap__hub { transition: opacity 240ms ease-out; }
.bm-wkmap__btn { cursor: pointer; }
.bm-wkmap__btn, .bm-wkmap__btn:focus, .bm-wkmap__btn:focus-visible { outline: none; }
.bm-wkmap__hit { fill: transparent; }
.bm-wkmap__ring { fill: none; stroke: var(--bm-orange); stroke-width: 2; opacity: 0; }
.bm-wkmap__btn:focus-visible .bm-wkmap__ring { opacity: 1; } /* handoff 7: the orange ring r + 4.5 on keyboard focus */
.bm-wkmap__dot { fill: var(--bm-orange); stroke: #1B1E2E; stroke-width: 2.5; }
.bm-wkmap--light .bm-wkmap__dot { stroke: #fff; }
.bm-wkmap__n { font: 700 11px var(--bm-fb); fill: #fff; pointer-events: none; }
/* the pulse of the effect «none» (printed only then): dot scale 1 -> 2.1, group 1 -> 1.6, gone once something is open */
@keyframes bm-wkm-dot-pulse { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(2.1); opacity: 0; } }
@keyframes bm-wkm-hub-pulse { 0% { transform: scale(1); opacity: .45; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.bm-wkmap__pulse { fill: var(--bm-orange); pointer-events: none; transform-box: fill-box; transform-origin: center; animation: bm-wkm-dot-pulse 2.4s ease-out infinite; }
.bm-wkmap__hub--group .bm-wkmap__pulse { animation-name: bm-wkm-hub-pulse; }
.bm-wkmap.is-focus .bm-wkmap__pulse { display: none; }
/* the count line (handoff 2.7), bottom left over the map */
.bm-wkmap__count { position: absolute; left: 16px; bottom: 14px; margin: 0; font-size: 12px; line-height: 1.4; color: rgba(255, 255, 255, .65); pointer-events: none; }
.bm-wkmap--light .bm-wkmap__count { color: #5E6066; }
.bm-wkmap__count-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--bm-orange); }
/* the card under the hero map (handoff 2.6 «reveal»): collapsed until the script opens it (.is-open; its timing and the
   card itself: the script's part of this file) */
.bm-wkmap__reveal { display: grid; grid-template-rows: 0fr; }
.bm-wkmap__reveal.is-open { grid-template-rows: 1fr; }
.bm-wkmap__reveal-in { min-height: 0; overflow: hidden; }

/* ---------- responsive (handoff 1.4) ---------- */
@media (max-width: 1280px) {
	.bm-wkmap { --wkm-m: 1.75; }
}
@media (max-width: 1100px) {
	.bm-wkh__in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.bm-wkh__copy { padding-right: 0; }
	.bm-wkh__map { max-width: 640px; padding: 0 0 44px; }
	.bm-wkmap { --wkm-m: 1.41; }
}
@media (max-width: 767px) {
	.bm-wkh__in { min-height: 0; }
	.bm-wkh__copy { gap: 14px; padding-top: 34px; padding-bottom: 34px; }
	.bm-wkh__lead { font-size: 15px; line-height: 1.5; }
	.bm-wkh .bm-wkh__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; margin-top: 6px; }
	.bm-wkh .bm-wkh__stats .bm-stats__label { font-size: 11.5px; line-height: 1.3; }
	.bm-wkh__map { display: none; } /* phones: the trigger opens the full-screen window instead */
	.bm-wkh-trigger--phone { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
	.bm-wkmap__pulse { display: none; }
	.bm-wkh-trigger, .bm-wkmap__hub, .bm-wkmap__kyiv { transition: none; }
}

/* ---------- the map beside the text, sized by the text (>= 1101 px; owner 2026-10-15: «Пропорции карты относительно
   текстового блока слева должны быть как на скриншоте. Нижняя часть карты должна быть вровень с цифрами») ----------
   As in the owner's screenshot of the prototype: the drawing's top (y 18 of the 650 viewBox) level with the breadcrumb, its
   lowest point (Crimea, y 625) level with the bottom of the figures row, the count line on the figures' (last) label
   baseline. The site's text block is taller than the prototype's, so the map is sized by it, not by the column: the map
   wrapper and the map root become contents boxes, the frame is placed absolutely in the grid area of row 1 / column 2 (the
   text column's height, the 52 px paddings included) - height H = (area - 104 px) * 650 / 607, width by the ratio, right
   edge on the column's, bottom 52 px - H * 25 / 650 under the area's - and it may grow 40 px into the text column's 48 px
   right padding; where even that is too narrow (about 1101-1250 px) H is capped by that width (47.5cqw = the column, the
   grid being 1.05fr / .95fr without gap) and the map stays bottom-aligned (drawing bottom = figures bottom, the count line
   on the baseline; its top then lower than the breadcrumb). The card under the map (the reveal) is row 2 of column 2, from
   the map's left (--wkm-fw = the frame's width, written by the script, which also opens the card; fallback -40 px = the
   capped map), 37 px up (= under the map's own bottom edge, as before) and 40 px below it when open: it pushes the content
   below and never moves the text. Without container units the previous in-flow layout stays. The count line: its line
   box's bottom 1.5 px under the drawing's bottom (Noto Sans 12 / 19.8 vs the labels' 12.8 / 17.28: equal baselines,
   measured within 0.05 px). The marker scale before the script runs (or without it): the bands of the map's two widths.
   On the paged views (/page/2-4/) the H1 is the title on one line + the small page line «СТОРІНКА N» under it (base.css
   .bm-h1-page, owner request 2026-10-15; until then «... - сторінка N» wrapped to two lines, 61 px taller, the map's top
   58.8 px below the breadcrumb): the text block is 27 px taller than page 1's and the width cap binds at every width - the
   map stays bottom-aligned (0.00 px, the count line on the label baseline), its top 24.9 px below the breadcrumb at
   >= 1280 px (26.9 at 1273, 93.8 at 1101). <= 1100 px: unchanged (map under the text). */
@supports (width: 1cqw) {
	@media (min-width: 1101px) {
		.bm-wkh--hero .bm-wkh__in { grid-template-rows: auto auto; container-type: inline-size; }
		.bm-wkh--hero .bm-wkh__copy { grid-area: 1 / 1; }
		.bm-wkh--hero .bm-wkh__map, .bm-wkh--hero .bm-wkh__map > .bm-wkmap { display: contents; }
		.bm-wkh--hero .bm-wkh__map .bm-wkmap__frame {
			--wkh-mh: min(calc((100% - 104px) * 650 / 607), calc((47.5cqw + 40px) * .65));
			position: absolute;
			grid-area: 1 / 2 / 2 / 3; /* explicit end lines: an absolute grid item's "auto" end is the grid's padding edge */
			right: 0;
			bottom: calc(52px - var(--wkh-mh) * 25 / 650);
			height: var(--wkh-mh);
			aspect-ratio: 1000 / 650;
			overflow: visible;
		}
		.bm-wkh--hero .bm-wkh__map .bm-wkmap__count { bottom: calc(100% * 25 / 650 - 1.5px); }
		.bm-wkh--hero .bm-wkh__map .bm-wkmap__reveal { grid-area: 2 / 2; margin: -37px 0 0 calc(100% - var(--wkm-fw, calc(100% + 40px))); }
		.bm-wkh--hero .bm-wkh__map .bm-wkmap__reveal-pad { padding-bottom: 40px; }
		.bm-wkh--hero .bm-wkh__map .bm-wkmap { --wkm-m: 1.466; }
	}
	@media (min-width: 1101px) and (max-width: 1272px) {
		.bm-wkh--hero .bm-wkh__map .bm-wkmap { --wkm-m: 1.58; }
	}
}

/* ---------- JS states, the card, the windows, the effects (handoff 2.4-2.8, 3, 4): assets/js/works-map.js ----------
   (builder 2 of the round appends its rules below this line, ASCII only; the contract: scratchpad workshero/contract.md) */
/* Builder 2 (2026-10-14). The script adds: on a map .is-focus (a group open or a work selected), .is-open (a group
   open), .is-hov (routes: a hub under the pointer), .is-paused (off screen), .is-narrow (< 700 px), .is-wide (>= 460 px)
   and --wkm-m (exact); on a hub .is-open / .is-sel; the open-group layer .bm-wkmap__burst (halo, rays, work dots, the
   centre), the cards, the effect layers; the window's modifier --desk (> 767 px) / --phone (<= 767 px). Every
   transition / animation of these parts sits in the prefers-reduced-motion: no-preference block at the end (with reduce
   the same states switch at once). OM_OUT = cubic-bezier(.16, 1, .3, 1), OM_IN = cubic-bezier(.4, 0, 1, 1). */

/* ---------- marker states (handoff 2.4): the others dim to .45 (a dot selected) / .35 (a group open), the city label
   to .2; the selected dot grows to r 9 (the script) with a contrast outline ---------- */
.bm-wkmap.is-focus .bm-wkmap__hub { opacity: .45; }
.bm-wkmap.is-open .bm-wkmap__hub { opacity: .35; }
.bm-wkmap.is-focus .bm-wkmap__hub.is-open, .bm-wkmap.is-focus .bm-wkmap__hub.is-sel { opacity: 1; }
.bm-wkmap.is-open .bm-wkmap__kyiv { opacity: .2; }
/* a dimmed hub with the keyboard focus shows in full, so its orange ring stays visible (WCAG 2.4.11; fixer 2026-10-14;
   the hubs under an open group's halo leave the tab order: the script) */
.bm-wkmap.is-focus .bm-wkmap__hub:has(.bm-wkmap__btn:focus-visible) { opacity: 1; }
.bm-wkmap__hub.is-sel .bm-wkmap__dot, .bm-wkmap__item.is-sel .bm-wkmap__dot { stroke: #fff; }
.bm-wkmap--light .bm-wkmap__hub.is-sel .bm-wkmap__dot, .bm-wkmap--light .bm-wkmap__item.is-sel .bm-wkmap__dot { stroke: #2A2E47; }
/* the count line: the prototype's legend inherits the body line height (12 / 19.8 px; above 1.4 = 16.8 px, 1.5 px lower) */
.bm-wkmap .bm-wkmap__count { line-height: 1.65; }

/* ---------- an open group (2.4): halo, one ray + dot per work, the centre "collapse"; every group is drawn closed,
   .is-open runs it both ways ---------- */
.bm-wkmap__burst { pointer-events: none; }
.bm-wkmap__halo, .bm-wkmap__item, .bm-wkmap__center { transform-box: fill-box; transform-origin: center; }
.bm-wkmap__halo { opacity: 0; transform: scale(.3); fill: #363A52; fill-opacity: .94; stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
.bm-wkmap__ray { stroke: #fff; stroke-opacity: .45; stroke-width: 1.25; stroke-dasharray: var(--l) var(--l); stroke-dashoffset: var(--l); }
.bm-wkmap__item { opacity: 0; transform: translate(0px, 0px) scale(.4); }
.bm-wkmap__center { opacity: 0; transform: scale(.85); }
.bm-wkmap__center .bm-wkmap__dot { fill: #fff; stroke: #1B1E2E; }
.bm-wkmap__center .bm-wkmap__n { fill: #2A2E47; }
.bm-wkmap__burst.is-open .bm-wkmap__halo { opacity: 1; transform: scale(1); pointer-events: visiblePainted; }
.bm-wkmap__burst.is-open .bm-wkmap__ray { stroke-dashoffset: 0; }
.bm-wkmap__burst.is-open .bm-wkmap__item { opacity: 1; transform: translate(var(--dx), var(--dy)) scale(1); pointer-events: visiblePainted; }
.bm-wkmap__burst.is-open .bm-wkmap__center { opacity: 1; transform: scale(1); pointer-events: visiblePainted; }
.bm-wkmap--light .bm-wkmap__halo { fill: #fff; fill-opacity: .86; stroke: #DDE0E6; }
.bm-wkmap--light .bm-wkmap__ray { stroke: #2A2E47; }
.bm-wkmap--light .bm-wkmap__center .bm-wkmap__dot { fill: #2A2E47; stroke: #fff; }
.bm-wkmap--light .bm-wkmap__center .bm-wkmap__n { fill: #fff; }

/* ---------- the card (2.6), white: floating beside the dot / halo (light window, map >= 700 px), docked under the map
   (light window below that), the tile in the reveal box under the hero map; photo = the work's image (cover) or the
   grey placeholder ---------- */
.bm-wkmap--light { gap: 14px; }
.bm-wkmap__card { position: relative; overflow: hidden; border: 1px solid #DDE0E6; border-top: 3px solid #F85A00; border-radius: 4px; background: #fff; color: #2A2E47; }
.bm-wkmap__card--float { position: absolute; z-index: 5; width: 280px; box-shadow: 0 12px 32px rgba(42, 46, 71, .18); }
.bm-wkmap__card--dock, .bm-wkmap__card--tile { display: grid; grid-template-columns: 96px 1fr; }
.bm-wkmap.is-wide .bm-wkmap__card--dock, .bm-wkmap.is-wide .bm-wkmap__card--tile { grid-template-columns: 168px 1fr; }
.bm-wkmap__card-pic { position: relative; height: 150px; background: #EFF1F5; }
.bm-wkmap__card-pic img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.bm-wkmap__card--dock .bm-wkmap__card-pic, .bm-wkmap__card--tile .bm-wkmap__card-pic { height: 100%; min-height: 96px; }
.bm-wkmap.is-wide .bm-wkmap__card--dock .bm-wkmap__card-pic, .bm-wkmap.is-wide .bm-wkmap__card--tile .bm-wkmap__card-pic { min-height: 124px; }
.bm-wkmap__card-body { min-width: 0; padding: 14px 16px 16px; }
.bm-wkmap__card--dock .bm-wkmap__card-body, .bm-wkmap__card--tile .bm-wkmap__card-body { padding: 10px 34px 12px 12px; }
.bm-wkmap.is-wide .bm-wkmap__card--dock .bm-wkmap__card-body, .bm-wkmap.is-wide .bm-wkmap__card--tile .bm-wkmap__card-body { padding: 14px 40px 14px 16px; }
.bm-wkmap__card-type { display: inline-block; margin-bottom: 6px; padding: 3px 8px; border-radius: 2px; background: #F85A00; color: #fff; font: 700 10.5px var(--bm-fb); letter-spacing: .1em; text-transform: uppercase; }
.bm-wkmap__card-title { margin: 0 0 6px; font: 700 15px/1.35 var(--bm-fb); color: #2A2E47; text-wrap: pretty; }
.bm-wkmap__card--dock .bm-wkmap__card-title, .bm-wkmap__card--tile .bm-wkmap__card-title { font: 700 13.5px/1.3 var(--bm-fb); }
.bm-wkmap.is-wide .bm-wkmap__card--dock .bm-wkmap__card-title, .bm-wkmap.is-wide .bm-wkmap__card--tile .bm-wkmap__card-title { font: 700 14.5px/1.35 var(--bm-fb); }
.bm-wkmap__card-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 0; font-size: 12.5px; line-height: 1.65; color: #5E6066; }
.bm-wkmap__card-sep { color: #C7CBD1; }
.bm-wkmap__card-more { display: inline-block; margin-top: 10px; font: 700 12.5px var(--bm-fb); color: #F85A00; text-decoration: none; }
.bm-wkmap__card-more:hover { color: #D94E00; }
.bm-wkmap__card-x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 3px; background: rgba(42, 46, 71, .75); color: #fff; font: 400 16px/1 var(--bm-fb); cursor: pointer; }
/* the reveal box (2.6): 14 px over the tile inside it, so the closed box is 0 px; the last work stays while it closes */
.bm-wkmap__reveal-pad { padding-top: 14px; }
.bm-wkmap__reveal:not(.is-open) .bm-wkmap__reveal-in { visibility: hidden; }
.bm-wkmap__card--tile { opacity: 0; transform: translateY(10px); }
.bm-wkmap__reveal.is-open .bm-wkmap__card--tile { opacity: 1; transform: none; }

/* ---------- filter chips of the light window (2.8) ---------- */
.bm-wkmap__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-wkmap__chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border: 1px solid #DDE0E6; border-radius: 3px; background: transparent; color: #2A2E47; font: 700 12.5px var(--bm-fb); letter-spacing: .02em; cursor: pointer; }
.bm-wkmap.is-narrow .bm-wkmap__chip { padding: 7px 11px; font-size: 12px; }
.bm-wkmap__chip[aria-pressed="true"] { border-color: #2A2E47; background: #2A2E47; color: #fff; }
.bm-wkmap__chip-n { font-size: 11px; opacity: .6; }

/* ---------- effects of the dark maps (3), drawn by the script into .bm-wkmap__fx ---------- */
.bm-wkmap__fx { pointer-events: none; }
.bm-wkmap.is-paused .bm-wkmap__svg * { animation-play-state: paused; }
.bm-wkmap.is-focus .bm-wkmap__gl, .bm-wkmap.is-focus .bm-wkmap__rt-net { opacity: 0; }
.bm-wkmap.is-hov .bm-wkmap__rt-net { opacity: .35; }
.bm-wkmap.is-focus .bm-wkmap__dh { opacity: .3; }
.bm-wkmap.is-open .bm-wkmap__base { opacity: .2; }
/* glint: a light sweep over the regions from the north-west, the dots answer with a ring */
.bm-wkmap[data-fx="glint"] .bm-wkmap__reg:hover { fill: rgba(255, 255, 255, .2); }
.bm-wkmap__gl-reg { opacity: 0; fill: #fff; fill-opacity: .12; stroke: rgba(27, 30, 46, .9); stroke-width: 2; stroke-linejoin: round; }
.bm-wkmap__gl-reg.is-on { fill: #FFD3B8; fill-opacity: .24; }
.bm-wkmap__gl-ping, .bm-wkmap__rt-ping, .bm-wkmap__base-pulse { fill: none; transform-box: fill-box; transform-origin: center; }
.bm-wkmap__gl-ping { opacity: 0; stroke: #F85A00; stroke-width: 1.6; }
/* routes: the dashed network from production, one arc drawn after the other with its comet, the hub answers */
.bm-wkmap__rt-dash { fill: none; stroke: #fff; stroke-opacity: .16; stroke-linecap: round; }
.bm-wkmap__rt-line, .bm-wkmap__rt-hl { fill: none; stroke: #F85A00; stroke-linecap: round; stroke-dasharray: 100 100; }
.bm-wkmap__rt-line { stroke-dashoffset: 100; }
.bm-wkmap__rt-comet, .bm-wkmap__rt-hc { opacity: 0; fill: none; stroke: #fff; stroke-linecap: round; stroke-dasharray: .01 200; }
.bm-wkmap__rt-ping { opacity: 0; stroke: #F85A00; stroke-width: 2; }
.bm-wkmap__base-pulse { stroke: #fff; stroke-width: 1.5; }
.bm-wkmap__base-dot { fill: #fff; stroke: #1B1E2E; stroke-width: 2.5; }
.bm-wkmap__base-label { font: 600 11.5px var(--bm-fb); fill: rgba(255, 255, 255, .78); }
/* dots: the regions as a dot raster (the patterns: the script), waves of lit dots, a light spot under the pointer */
.bm-wkmap[data-fx="dots"] .bm-wkmap__reg { stroke: rgba(255, 255, 255, .07); stroke-width: 1.5; }

/* ---------- the window (4): dialog#bm-wkh-win (.bm-dialog, assets/js/dialogs.js), filled by the script on opening ---------- */
.bm-wkh-win { color: #2A2E47; }
.bm-wkh-win__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.bm-wkh-win__heading { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bm-wkh-win__eyebrow { margin: 0; line-height: 1.65; }
.bm-wkh-win__title { margin: 0; font: 500 1.75rem/1.1 var(--bm-fd); letter-spacing: -.015em; color: #2A2E47; }
.bm-wkh-win__close { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 6px; background: #EFF1F5; color: #2A2E47; cursor: pointer; }
.bm-wkh-win__close:hover { background: #DDE0E6; }
.bm-wkh-win__close .bm-ico { width: 20px; height: 20px; stroke-width: 2.2; }
/* > 767 px (4.1): the light modal; the map as wide as the screen height allows */
.bm-wkh-win--desk { width: min(1120px, calc(100% - 48px)); max-width: none; max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; border-radius: 16px; box-shadow: 0 30px 80px -20px rgba(27, 30, 46, .5); }
.bm-wkh-win--desk::backdrop { background: rgba(27, 30, 46, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.bm-wkh-win--desk .bm-wkh-win__box { padding: 28px 32px 32px; }
.bm-wkh-win__mapbox { width: min(100%, max(560px, calc((100vh - 280px) * 1.538))); margin: 0 auto; }
/* <= 767 px (4.2): the full-screen dark sheet; the map centred between the head and the dock's reserved height */
.bm-wkh-win--phone { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; overflow: hidden; border-radius: 0; background: #232639; color: #fff; box-shadow: none; }
.bm-wkh-win--phone .bm-wkh-win__box { position: relative; display: flex; flex-direction: column; height: 100%; }
.bm-wkh-win--phone .bm-wkh-win__head { flex: none; margin: 0; padding: 18px 16px 0; }
.bm-wkh-win--phone .bm-wkh-win__title { font-size: 1.3rem; color: #fff; }
.bm-wkh-win--phone .bm-wkh-win__close { width: 44px; height: 44px; background: rgba(255, 255, 255, .1); color: #fff; }
.bm-wkh-win--phone .bm-wkh-win__close:hover { background: rgba(255, 255, 255, .18); }
.bm-wkh-win--phone .bm-wkh-win__body { display: flex; flex: 1 1 0; flex-direction: column; min-height: 0; }
.bm-wkh-win__stage { display: grid; flex: 1 1 0; place-items: center; min-height: 0; container-type: size; }
.bm-wkh-win__fit { width: calc(100% - 24px); width: min(100cqw - 24px, (100cqh - 24px) * 1.538); }
.bm-wkh-win__spacer { flex: none; height: calc(var(--wkh-rest, 74px) + 46px + env(safe-area-inset-bottom)); }
.bm-wkh-win__dock { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; padding: 10px 0 calc(18px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: #2A2E47; box-shadow: 0 -12px 32px -16px rgba(0, 0, 0, .6); }
.bm-wkh-win__grab { display: block; width: 36px; height: 4px; margin: 0 auto 14px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
/* the dock's two rows: A (chips + hint) and B (the work), 1fr <-> 0fr */
.bm-wkh-win__row { display: grid; grid-template-rows: 1fr; opacity: 1; }
.bm-wkh-win__row.is-off { grid-template-rows: 0fr; opacity: 0; }
.bm-wkh-win__row-in { min-height: 0; overflow: hidden; }
.bm-wkh-win__row.is-off .bm-wkh-win__row-in { visibility: hidden; }
.bm-wkh-win__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; }
.bm-wkh-win__chip { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 3px; background: transparent; color: #fff; font: 700 12px var(--bm-fb); letter-spacing: .01em; white-space: nowrap; cursor: pointer; }
.bm-wkh-win__chip[aria-pressed="true"] { border-color: #fff; background: #fff; color: #2A2E47; }
.bm-wkh-win__chip-n { font-size: 10.5px; opacity: .6; }
.bm-wkh-win__hint { margin: 0; padding: 12px 16px 0; font-size: 12.5px; line-height: 1.45; color: #AEB2C6; }
.bm-wkh-win__hint--solo { padding: 0 16px; }
/* an open group on the phone sheet covers most of the map (Kyiv: about 35 works, 2026-10-15): the count line under its
   lower rays steps aside while it is open (still read by assistive tech) */
.bm-wkh-win--phone .bm-wkmap.is-open .bm-wkmap__count { opacity: 0; }
/* state B: the "outline" card - photo 112, type with the orange dash, title (2 lines), place / year, x, the button */
.bm-wkh-win__card { position: relative; padding: 0 16px; }
.bm-wkh-win__card-grid { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; }
.bm-wkh-win__card-pic { position: relative; height: 112px; overflow: hidden; border-radius: 6px; background: #EFF1F5; }
.bm-wkh-win__card-pic img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.bm-wkh-win__card-text { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; padding-right: 36px; }
.bm-wkh-win__card-type { display: inline-flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #AEB2C6; }
.bm-wkh-win__card-type::before { content: ""; flex: none; width: 14px; height: 2px; background: #F85A00; }
.bm-wkh-win__card-title { display: -webkit-box; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font: 600 15px/1.3 var(--bm-fd); color: #fff; }
.bm-wkh-win__card-meta { margin: 0; font-size: 12.5px; line-height: 1.3; color: #AEB2C6; }
.bm-wkh-win__card-x { position: absolute; top: 0; right: 8px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.bm-wkh-win__card-x > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.bm-wkh-win__card-x .bm-ico { width: 16px; height: 16px; stroke-width: 2.2; }
.bm-wkh-win__more { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 16px; padding: 13px 24px; border: 1.5px solid rgba(255, 255, 255, .28); border-radius: 4px; background: transparent; font: 700 .98rem/1 var(--bm-fb); letter-spacing: .01em; color: #fff; text-decoration: none; }
.bm-wkh-win__more:hover { color: #fff; }
.bm-wkh-win__nudge { display: inline-flex; color: #F85A00; }
.bm-wkh-win__nudge .bm-ico { width: 18px; height: 18px; stroke-width: 2.4; }

/* ---------- motion: only without prefers-reduced-motion (handoff 7) ---------- */
@keyframes bm-wkm-card-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes bm-wkm-tile-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bm-wkm-glint { 0% { opacity: 0; } 6% { opacity: 1; } 22% { opacity: 0; } 100% { opacity: 0; } }
@keyframes bm-wkm-ping { 0% { transform: scale(.7); opacity: 0; } 2% { opacity: .85; } 20% { transform: scale(2.7); opacity: 0; } 100% { transform: scale(2.7); opacity: 0; } }
@keyframes bm-wkm-base { 0% { transform: scale(1); opacity: .6; } 60%, 100% { transform: scale(2.8); opacity: 0; } }
@keyframes bm-wkm-hdraw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes bm-wkm-hcomet { 0% { stroke-dashoffset: 0; opacity: 0; } 6% { opacity: 1; } 90% { opacity: 1; } 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes bm-wkm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bm-wkm-pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes bm-wkm-sheet { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes bm-wkm-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@media (prefers-reduced-motion: no-preference) {
	.bm-wkmap__halo { transition: transform 260ms cubic-bezier(.4, 0, 1, 1), opacity 200ms ease-in; }
	.bm-wkmap__ray { transition: stroke-dashoffset 220ms cubic-bezier(.4, 0, 1, 1); }
	.bm-wkmap__item { transition: transform 240ms cubic-bezier(.4, 0, 1, 1), opacity 200ms ease-in; }
	.bm-wkmap__center { transition: transform 200ms cubic-bezier(.4, 0, 1, 1), opacity 160ms ease-in; }
	.bm-wkmap__burst.is-open .bm-wkmap__halo { transition: transform 460ms cubic-bezier(.16, 1, .3, 1), opacity 200ms ease-out; }
	.bm-wkmap__burst.is-open .bm-wkmap__ray { transition: stroke-dashoffset 460ms cubic-bezier(.16, 1, .3, 1) var(--d); }
	.bm-wkmap__burst.is-open .bm-wkmap__item { transition: transform 460ms cubic-bezier(.16, 1, .3, 1) var(--d), opacity 160ms ease-out var(--d); }
	.bm-wkmap__burst.is-open .bm-wkmap__center { transition: transform 260ms cubic-bezier(.16, 1, .3, 1), opacity 180ms ease-out; }
	.bm-wkmap__card--float, .bm-wkmap__card--dock { animation: bm-wkm-card-in 220ms ease-out; }
	.bm-wkmap__reveal { transition: grid-template-rows 380ms cubic-bezier(.4, 0, 1, 1); }
	.bm-wkmap__reveal.is-open { transition: grid-template-rows 520ms cubic-bezier(.22, .61, .36, 1); }
	.bm-wkmap__reveal:not(.is-open) .bm-wkmap__reveal-in { transition: visibility 0s 380ms; }
	.bm-wkmap__card--tile { transition: opacity 200ms ease-in, transform 260ms cubic-bezier(.4, 0, 1, 1); animation: bm-wkm-tile-in 520ms cubic-bezier(.16, 1, .3, 1) 90ms backwards; }
	.bm-wkmap__reveal.is-open .bm-wkmap__card--tile { transition: opacity 320ms ease-out, transform 460ms cubic-bezier(.16, 1, .3, 1); }
	.bm-wkmap__chip, .bm-wkh-win__chip { transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out; }
	.bm-wkmap__gl, .bm-wkmap__rt-net, .bm-wkmap__dh { transition: opacity 300ms ease-out; }
	.bm-wkmap__base { transition: opacity 240ms ease-out; }
	.bm-wkmap[data-fx="glint"] .bm-wkmap__reg { transition: fill 240ms ease-out; }
	.bm-wkmap__gl-reg { animation: bm-wkm-glint 8s ease-in-out infinite; }
	.bm-wkmap__gl-ping { animation: bm-wkm-ping 8s ease-out infinite; }
	.bm-wkmap__base-pulse { animation: bm-wkm-base 3s ease-out infinite; }
	.bm-wkmap__rt-hl { animation: bm-wkm-hdraw 650ms cubic-bezier(.22, .61, .36, 1) forwards; }
	.bm-wkmap__rt-hc { animation: bm-wkm-hcomet 1.6s cubic-bezier(.45, 0, .25, 1) 650ms infinite; }
	.bm-wkh-win__close { transition: background-color 160ms ease; }
	.bm-wkh-win--desk { animation: bm-wkm-pop .26s cubic-bezier(.2, .8, .2, 1); }
	.bm-wkh-win--desk::backdrop { animation: bm-wkm-fade .2s ease; }
	.bm-wkh-win--phone { animation: bm-wkm-sheet .3s cubic-bezier(.2, .8, .2, 1); }
	.bm-wkh-win__row { transition: grid-template-rows 460ms cubic-bezier(.22, .61, .36, 1), opacity 240ms ease-out 140ms; }
	.bm-wkh-win__row.is-off { transition: grid-template-rows 340ms cubic-bezier(.4, 0, 1, 1), opacity 140ms ease-in; }
	.bm-wkh-win__row.is-off .bm-wkh-win__row-in { transition: visibility 0s 340ms; }
	.bm-wkh-win__nudge { animation: bm-wkm-nudge 2s cubic-bezier(.45, 0, .55, 1) infinite; }
}
