/* /brand/: the drawings only this page needs, scoped under .bk and built on the site's tokens (app/tokens.css) and
   registers, so every ground (ink, paper, mint) re-points them. Components (buttons, cells, tiles, carousel nav) come
   from app/components.css. */
.bk { --nav-h: 3.25rem; --ease: cubic-bezier(.23, 1, .32, 1); }
.bk ::selection { background: var(--color-green-300); color: var(--color-ink-950); }
.bk .register-ink ::selection, .bk .register-ink::selection { background: var(--color-green-500); color: var(--color-ink-950); }
.bk :focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.bk .num { font-variant-numeric: tabular-nums; }
/* html already pads anchors by the header plus 1rem; the sticky in-page links add their height, less that 1rem, so a
   part starts right under them */
.bk [id] { scroll-margin-top: calc(var(--nav-h) - 1rem); }

/* ── Hero: the headline beside the person, his portrait set like the logo between «>» and the green cursor ── */
.bk-hero-main { display: grid; gap: 2.5rem; align-items: end; margin-top: 2rem; padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.bk-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.bk-hero-copy h1 { max-width: 11ch; text-wrap: balance; }
@media (width >= 64rem) {
  .bk-hero-main { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--spacing-gutter); margin-top: 3rem; }
  .bk-hero-copy { padding-bottom: 4.25rem; }
}
.bk-face-hero { justify-self: start; width: min(100%, 17rem); }
@media (width >= 40rem) { .bk-face-hero { width: min(100%, 22rem); } }
@media (width >= 64rem) { .bk-face-hero { justify-self: end; width: min(100%, 27rem); } }
.bk-face-hero .frame { position: relative; margin: 0 1.25rem 1.25rem 1.75rem; }
.bk-face-hero img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1) contrast(1.05); box-shadow: 0 0 0 1px var(--color-line); }
/* «>» in an ink square on the top-left corner, the cursor block on the bottom-right: the person is the answer */
.bk-face-hero .chev { position: absolute; left: -1.75rem; top: 1.5rem; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; background: var(--color-ink-950); color: var(--color-paper); box-shadow: 0 0 0 1px var(--color-line-strong); }
.bk-face-hero .chev svg { width: 1.25rem; height: 2.25rem; animation: bk-in .8s var(--ease) .2s both; }
.bk-face-hero .cur { position: absolute; right: -1.25rem; bottom: -1.25rem; width: 2.5rem; height: 3.2rem; background: var(--color-green-500); animation: bk-blink 1.05s steps(1) 1s 3; }
@keyframes bk-in { from { transform: translateX(-.5rem); opacity: 0; } }
.bk-face-hero figcaption { display: flex; flex-direction: column; gap: .125rem; margin-left: 1.75rem; padding-top: .875rem; border-top: 1px solid var(--color-line); }
.bk-face-hero figcaption b { font-weight: 500; }
.bk-face-hero figcaption span { font-size: var(--text-small); color: var(--color-fg-muted); }

/* The brand at a glance: four ruled cells along the hero's foot */
.bk-glance { position: relative; border-top: 1px solid var(--color-line); }
.bk-glance ul { display: grid; }
@media (width >= 48rem) { .bk-glance ul { grid-template-columns: repeat(2, 1fr); } }
@media (width >= 64rem) { .bk-glance ul { grid-template-columns: repeat(4, 1fr); } }
.bk-glance li + li { border-top: 1px solid var(--color-line); }
@media (width >= 48rem) {
  .bk-glance li + li { border-top: 0; }
  .bk-glance li:nth-child(n+3) { border-top: 1px solid var(--color-line); }
  .bk-glance li:nth-child(even) { border-left: 1px solid var(--color-line); padding-left: 1.25rem; }
}
@media (width >= 64rem) {
  .bk-glance li:nth-child(n+3) { border-top: 0; }
  .bk-glance li + li { border-left: 1px solid var(--color-line); padding-left: 1.25rem; }
}
.bk-glance a { display: flex; align-items: center; gap: 1rem; min-height: 5.5rem; padding: 1rem 1.25rem 1rem 0; }
.bk-glance a > svg { width: 1rem; height: 1rem; margin-left: auto; flex: none; color: var(--color-fg-muted); transition: transform var(--duration-base) var(--ease), color var(--duration-fast) var(--ease-out); }
.bk-glance a:hover > svg { transform: translateX(3px); color: var(--color-accent); }
.g-t { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.g-t b { font-weight: 500; }
.g-t span { font-size: var(--text-small); color: var(--color-fg-muted); }
.g-mark img { width: 2.5rem; height: 2.5rem; }
.g-aa { font-size: 2.25rem; line-height: 1; letter-spacing: -.05em; }
.g-green { width: 2.5rem; height: 2.5rem; flex: none; background: var(--color-green-500); }
.g-sign { flex: none; max-width: 7.5rem; font-size: 1.0625rem; line-height: 1.05; letter-spacing: -.025em; }
/* Phones: two by two, the picture over the name */
@media (width < 48rem) {
  .bk-glance ul { grid-template-columns: repeat(2, 1fr); }
  .bk-glance li:nth-child(2) { border-top: 0; }
  .bk-glance li:nth-child(even) { border-left: 1px solid var(--color-line); padding-left: 1rem; }
  .bk-glance a { flex-direction: column; align-items: flex-start; gap: .75rem; min-height: 0; padding: 1rem 1rem 1rem 0; }
  .bk-glance a > svg, .g-t span { display: none; }
}

/* The portrait: grey, square, the green pixel on its corner (as the home About and the author block) */
.bk-portrait { position: relative; flex: none; display: block; width: 3rem; height: 3rem; }
.bk-portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.bk-portrait::after { content: ""; position: absolute; right: -.375rem; bottom: -.375rem; width: .625rem; height: .625rem; background: var(--color-green-500); }
.bk-portrait.sm { width: 4rem; height: 4rem; }
.bk-portrait.sm::after { width: .75rem; height: .75rem; right: -.5rem; bottom: -.5rem; }
.bk-portrait.lg { width: 7rem; height: 7rem; }
.bk-portrait.lg::after { width: 1rem; height: 1rem; right: -.625rem; bottom: -.625rem; }

/* The logo's own parts, drawn inline: the mark whose cursor blinks, the star that turns once */
.bk-mark { width: 100%; color: var(--color-paper); }
.bk-cursor { fill: var(--color-green-500); animation: bk-blink 1.05s steps(1) .9s 3; }
@keyframes bk-blink { 50% { opacity: 0; } }
.bk-star { width: .5em; height: .5em; animation: bk-turn 520ms var(--ease) .6s both; }
@keyframes bk-turn { from { transform: rotate(-90deg); } }

/* ── In-page links: sticky under the header, the part in view marked ── */
.bk-nav { position: sticky; top: var(--spacing-header); z-index: 30; background: var(--color-paper); border-bottom: 1px solid var(--color-ink-100); }
.bk-nav ul { display: flex; gap: 1.5rem; overflow-x: auto; scrollbar-width: none; }
.bk-nav ul::-webkit-scrollbar { display: none; }
.bk-nav a { display: flex; align-items: center; gap: .5rem; flex: none; height: var(--nav-h); font-size: var(--text-ui); color: var(--color-ink-600); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out); }
.bk-nav a:hover { color: var(--color-ink-950); }
.bk-nav a[aria-current] { color: var(--color-ink-950); border-bottom-color: var(--color-green-500); }

/* ── Sections: a sticky head beside its demos ── */
.bk-sec { padding-block: clamp(3.5rem, 2rem + 5vw, 7rem); }
.bk-ledger { display: grid; gap: 2.5rem; }
@media (width >= 64rem) {
  .bk-ledger { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--spacing-gutter); }
  .bk-ledger > header { position: sticky; top: calc(var(--spacing-header) + var(--nav-h) + 2rem); align-self: start; }
}
.bk-rules { display: grid; margin-top: 2rem; border-top: 1px solid var(--color-line); }
.bk-rules > div { padding: 1.125rem 1.25rem 1.125rem 0; border-bottom: 1px solid var(--color-line); }
.bk-rules dt { font-weight: 500; margin-bottom: .25rem; }
.bk-rules dd { color: var(--color-fg-muted); }
@media (width >= 48rem) {
  .bk-rules { grid-template-columns: repeat(3, 1fr); }
  .bk-rules > div + div { padding-left: 1.25rem; border-left: 1px solid var(--color-line); }
}

/* ── Work strip: a sideways row like the home carousels, every piece the same height ── */
.bk-strip {
  --bleed: max(var(--spacing-gutter), calc((100% - var(--container-page)) / 2));
  --h: clamp(17rem, 12rem + 14vw, 28rem);
  display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--bleed); padding-inline: var(--bleed); scrollbar-width: none;
}
.bk-strip::-webkit-scrollbar { display: none; }
.bk-strip > li { flex: none; height: var(--h); scroll-snap-align: start; position: relative; overflow: hidden; background: var(--color-ink-100); }
.bk-strip > li > img { height: 100%; width: auto; }
.bk-strip > li:has(.art) { aspect-ratio: var(--ar, 4/5); }
.bk-strip > li:has(.art[style*="--ar:1"]) { aspect-ratio: 1; }

/* Artboards: drawn in container units so they scale with the strip */
.art { container-type: size; position: absolute; inset: 0; }
.art .pad { position: absolute; inset: 0; padding: 7cqw; display: flex; flex-direction: column; }
.art .row { display: flex; justify-content: space-between; align-items: center; }
.art .mk { width: 9cqw; height: 9cqw; }
.art .chipx { font-size: 3.2cqw; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 1.4cqw 2.4cqw; box-shadow: inset 0 0 0 1px currentColor; opacity: .75; }
.art .foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 3cqw; opacity: .6; font-variant-numeric: tabular-nums; }
.art .h { font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.art .px { display: inline-block; width: .16em; height: .16em; margin-left: .06em; background: var(--color-green-500); }
.a-ink { background: var(--color-ink-950); color: var(--color-paper); }
.a-paper { background: var(--color-paper); color: var(--color-ink-950); box-shadow: inset 0 0 0 1px var(--color-ink-100); }
.a-mint { background: var(--color-mint-100); color: var(--color-ink-950); }
.a-green { background: var(--color-green-500); color: var(--color-ink-950); }
.a-white { background: var(--color-white); color: var(--color-ink-950); box-shadow: inset 0 0 0 1px var(--color-ink-100); }
.bk-gridbg { position: absolute; inset: 0; background-image: linear-gradient(90deg, #3e433a 1px, transparent 1px), linear-gradient(180deg, #3e433a 1px, transparent 1px); background-size: 12cqw 12cqw; mask-image: radial-gradient(ellipse 90% 80% at 90% 0%, #000, transparent 80%); }
.steps { display: grid; grid-template-columns: repeat(4, 5cqw); grid-auto-rows: 5cqw; gap: .8cqw; align-self: flex-end; }
.steps i { background: var(--color-mint-100); }
.steps i.g { background: var(--color-green-600); }
.steps i.G { background: var(--color-green-500); }
.steps i.o { background: transparent; }
.big-n { font-size: 34cqw; letter-spacing: -.06em; line-height: .85; color: var(--color-green-700); }
.codebox { background: var(--color-ink-950); color: var(--color-paper); margin-top: auto; }
.codebox .bar { display: flex; justify-content: space-between; align-items: center; height: 11cqw; padding: 0 4cqw; border-bottom: 1px solid #2a2e27; font-size: 3.2cqw; }
.codebox .bar b { color: var(--color-green-500); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.codebox .bar span { background: var(--color-green-500); color: var(--color-ink-950); padding: 1cqw 2.4cqw; font-weight: 500; }
.codebox p { padding: 5cqw 4cqw; font-size: 4.2cqw; line-height: 1.45; }
.codebox u { text-decoration: none; box-shadow: inset 0 -.5cqw var(--color-green-500); }
.icog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #cfe2b2; margin-top: auto; box-shadow: 0 0 0 1px #cfe2b2; }
.icog span { aspect-ratio: 1; background: var(--color-white); display: grid; place-items: center; }
.icog svg { width: 11cqw; height: 11cqw; }
.btnx { display: inline-flex; height: 12cqw; background: var(--color-green-500); color: var(--color-ink-950); font-weight: 500; font-size: 4.2cqw; }
.btnx > span { display: flex; align-items: center; padding: 0 4.5cqw; }
.btnx i { width: 12cqw; display: grid; place-items: center; background: var(--color-ink-950); color: var(--color-green-500); }
.btnx svg { width: 5.5cqw; height: 5.5cqw; }

/* ── Брэнд ── */
.bk-pos { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.12; letter-spacing: -.03em; max-width: 24ch; text-wrap: balance; }
.bk-pos em { font-style: normal; color: var(--color-accent-text); }
.bk-traits { margin-top: 2.5rem; border-top: 1px solid var(--color-line-strong); }
.bk-traits li { display: grid; grid-template-columns: 4rem 1fr; gap: .375rem 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--color-line); }
.bk-traits .tile { grid-row: span 2; }
.bk-traits p { color: var(--color-fg-muted); max-width: 46ch; }
@media (width >= 48rem) {
  .bk-traits li { grid-template-columns: 4rem 12rem 1fr; align-items: center; }
  .bk-traits .tile { grid-row: auto; }
}

/* ── Лого ── */
.bk-logo { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; min-height: 19rem; padding: clamp(1.5rem, 1rem + 2.4vw, 2.75rem); }
.bk-logo.register-paper { background: var(--color-paper); }
.bk-logo .lockup { width: min(100%, 26rem); height: auto; }
.bk-marks { display: flex; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.bk-marks figure { display: flex; flex-direction: column; gap: .5rem; }
.bk-marks figcaption { font-size: .75rem; color: var(--color-fg-muted); }
.bk-clear { display: grid; place-items: center; gap: 1.25rem; margin-top: 1px; padding: clamp(2rem, 1rem + 4vw, 4rem) 1rem 1.5rem; box-shadow: 0 0 0 1px var(--color-line); }
.bk-clear .box { position: relative; padding: clamp(1.25rem, .8rem + 2vw, 2.4rem); outline: 1px dashed var(--color-green-700); }
.bk-clear .box img { width: min(22rem, 60vw); height: auto; }
.bk-clear .box::before, .bk-clear .box::after { content: ""; position: absolute; width: clamp(1.25rem, .8rem + 2vw, 2.4rem); aspect-ratio: 1; background: var(--color-mint-100); }
.bk-clear .box::before { left: 0; top: 0; }
.bk-clear .box::after { right: 0; bottom: 0; }
.bk-clear figcaption { font-size: var(--text-small); color: var(--color-fg-muted); }

/* ── Өнгө ── */
.bk-share { display: flex; height: clamp(5rem, 3rem + 6vw, 9rem); box-shadow: 0 0 0 1px var(--color-line); }
.bk-share i { position: relative; display: block; }
.bk-share span { position: absolute; left: .75rem; bottom: .625rem; font-size: var(--text-small); font-style: normal; font-variant-numeric: tabular-nums; }
.bk-share .s-g span { left: 50%; transform: translateX(-50%); }
@media (width < 48rem) { .bk-share .s-m span, .bk-share .s-g span { display: none; } }
.s-k { background: var(--color-ink-950); color: var(--color-paper); }
.s-p { background: var(--color-paper); color: var(--color-ink-600); }
.s-m { background: var(--color-mint-100); color: var(--color-ink-600); }
.s-g { background: var(--color-green-500); color: var(--color-ink-950); }
.bk-sw { padding: 1rem 1.25rem 1.25rem; }
.bk-sw .chip-c { display: inline-block; width: .75rem; height: .75rem; margin-right: .5rem; box-shadow: inset 0 0 0 1px var(--color-line-strong); }
.bk-sw b { display: block; font-weight: 500; font-size: 1.0625rem; }
.bk-sw p { font-size: var(--text-small); color: var(--color-fg-muted); }
.bk-hex { display: inline-flex; align-items: center; gap: .375rem; margin: .25rem 0 .375rem; font-size: var(--text-small); font-variant-numeric: tabular-nums; color: var(--color-fg); text-decoration: underline; text-decoration-color: var(--color-line-strong); text-underline-offset: .3em; cursor: pointer; transition: text-decoration-color var(--duration-fast) var(--ease-out); }
.bk-hex svg { width: .875rem; height: .875rem; color: var(--color-fg-subtle); }
.bk-hex:hover { text-decoration-color: var(--color-accent); }
.bk-hex[data-copied] { text-decoration-color: var(--color-accent); }
.bk-scales { display: grid; gap: .75rem; margin-top: 2rem; }
.bk-scales > div { display: grid; gap: .5rem; align-items: center; }
@media (width >= 48rem) { .bk-scales > div { grid-template-columns: 5rem 1fr; } }
.bk-scale { display: flex; height: 2.5rem; }
.bk-scale i { flex: 1; }
.bk-pair { display: grid; margin-top: 2rem; }
@media (width >= 40rem) { .bk-pair { grid-template-columns: 1fr 1fr; } }
.bk-pair > div { padding: 1.25rem; box-shadow: 0 0 0 1px var(--color-line); }
.bk-pair b { display: block; font-size: 1.25rem; font-weight: 500; letter-spacing: -.02em; }
.bk-pair small { display: block; margin-top: .375rem; font-size: var(--text-small); color: var(--color-fg-muted); }

/* ── Фонт ── */
.bk-specimen { font-size: clamp(2.75rem, 1rem + 6vw, 6rem); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.bk-tscale { margin-top: 2.5rem; border-top: 1px solid var(--color-line-strong); }
.bk-tscale > div { display: grid; gap: .5rem 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--color-line); align-items: baseline; }
.bk-tscale > div > span:first-child { font-size: var(--text-small); color: var(--color-fg-muted); }
@media (width >= 48rem) { .bk-tscale > div { grid-template-columns: 10rem 1fr; } }
.bk-glyphs { display: grid; grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr)); margin-top: 2rem; border-top: 1px solid var(--color-line); border-left: 1px solid var(--color-line); }
.bk-glyphs span { aspect-ratio: 1; display: grid; place-items: center; font-size: 1.375rem; border-right: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); transition: background-color var(--duration-fast) var(--ease-out); }
.bk-glyphs span:hover { background: var(--color-raised); }

/* ── Грид ── */
.bk-gcell { display: flex; flex-direction: column; gap: .375rem; min-height: 9.5rem; padding: 1.25rem; }
.bk-gcell.register-mint { background: var(--color-mint-100); }
.bk-gcell .num { margin-bottom: auto; font-size: var(--text-small); color: var(--color-fg-muted); }
.bk-gcell b { font-weight: 500; font-size: 1.0625rem; letter-spacing: -.015em; }
.bk-gcell p { font-size: var(--text-small); color: var(--color-fg-muted); }
.bk-demo { display: flex; flex-direction: column; background: var(--color-raised); box-shadow: 0 0 0 1px var(--color-line); }
.bk-demo figcaption { padding: 1rem 1.25rem 1.25rem; font-size: var(--text-small); color: var(--color-fg-muted); }
.bk-demo figcaption b { display: block; margin-bottom: .25rem; font-size: var(--text-ui); font-weight: 500; color: var(--color-fg); }
.bk-cols { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr auto auto 1fr; row-gap: .5rem; aspect-ratio: 16 / 9; padding: 0 8%; }
.bk-cols i { grid-row: 1 / -1; border-left: 1px solid var(--color-line-strong); }
.bk-cols i:nth-child(1) { grid-column: 1; } .bk-cols i:nth-child(2) { grid-column: 2; } .bk-cols i:nth-child(3) { grid-column: 3; }
.bk-cols i:nth-child(4) { grid-column: 4; border-right: 1px solid var(--color-line-strong); }
.bk-cols b { grid-column: 1 / 4; grid-row: 2; height: clamp(.625rem, .4rem + .6vw, 1rem); margin-left: 1px; background: var(--color-paper); }
.bk-cols b + b { grid-column: 1 / 3; grid-row: 3; display: flex; justify-content: flex-end; background: linear-gradient(90deg, var(--color-paper) calc(100% - 1.6em), transparent 0); }
.bk-cols b + b::after { content: ""; width: clamp(.625rem, .4rem + .6vw, 1rem); background: var(--color-green-500); }
@media (width < 48rem) {
  .bk-cols { grid-template-columns: repeat(2, 1fr); }
  .bk-cols i:nth-child(n+3) { display: none; }
  .bk-cols i:nth-child(2) { border-right: 1px solid var(--color-line-strong); }
  .bk-cols b { grid-column: 1 / 3; } .bk-cols b + b { grid-column: 1 / 2; }
}
.bk-cut { display: grid; grid-template-rows: 2fr 1.4fr 1fr; aspect-ratio: 16 / 9; }
.bk-cut i { display: flex; align-items: flex-end; padding: .5rem .75rem; font-size: var(--text-small); font-style: normal; color: var(--color-fg-muted); }
.bk-cut i.register-paper { box-shadow: inset 0 -1px 0 var(--color-line); }

/* ── Дүрс тэмдэг ── */
.bk-anat { position: relative; display: grid; place-items: center; min-height: 16rem; aspect-ratio: 1; }
.bk-anat::before { content: ""; position: absolute; inset: 15%; background-image: linear-gradient(90deg, var(--color-mint-200) 1px, transparent 1px), linear-gradient(180deg, var(--color-mint-200) 1px, transparent 1px); background-size: calc(100% / 24) calc(100% / 24); box-shadow: inset 0 0 0 1px var(--color-mint-200); }
.bk-anat svg { position: relative; width: 70%; height: 70%; }
.bk-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 0 !important; background: var(--color-line) !important; box-shadow: none !important; }
@media (width >= 48rem) { .bk-icons { grid-template-columns: repeat(6, 1fr); } }
.bk-icons figure { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .625rem; padding: .5rem; background: var(--color-raised); transition: background-color var(--duration-fast) var(--ease-out); }
.bk-icons figure:hover { background: var(--color-mint-50); }
.bk-icons svg { width: 28px; height: 28px; }
.bk-icons figcaption { font-size: .6875rem; color: var(--color-fg-muted); }

/* ── Пиксел ── */
.bk-px-stage { display: grid; gap: 2rem; align-items: end; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); background: var(--color-raised); box-shadow: 0 0 0 1px var(--color-line); }
@media (width >= 40rem) { .bk-px-stage { grid-template-columns: minmax(0, 1fr) auto; } }
.bk-px-head { display: flex; flex-direction: column; gap: 2.5rem; }
.bk-px-h { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.bk-px-spec { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 1.75rem; border-top: 1px solid var(--color-line); padding-top: 1rem; }
.bk-px-spec dt { font-size: var(--text-small); color: var(--color-fg-muted); }
.bk-px-spec dd { font-weight: 500; font-variant-numeric: tabular-nums; }
.bk-field { --px: clamp(.875rem, .5rem + 1vw, 1.5rem); display: flex; align-items: flex-end; gap: 5px; }
.bk-field .col { display: flex; flex-direction: column-reverse; gap: 5px; }
.bk-field i { display: block; width: var(--px); aspect-ratio: 1; background: var(--color-ink-700); }
.bk-field .col i:last-child { background: var(--color-mint-100); }
.bk-field .col.g i { background: var(--color-green-600); }
.bk-field .col.g i:last-child { background: var(--color-green-400); }
/* The rise never hides a pixel: they sit a little low and step up, staggered by column and row */
.bk-field i { animation: bk-rise .7s var(--ease) both; animation-delay: calc(var(--c) * 50ms + var(--r) * 50ms + 200ms); }
.bk-px-field i { animation-play-state: paused; }
.bk-px-field.in i { animation-play-state: running; }
@keyframes bk-rise { from { transform: translateY(.75rem); } }
.bk-where { display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; min-height: 12rem; padding: 1.25rem; }
.bk-where .demo { display: flex; align-items: center; justify-content: center; flex: 1; }
.bk-where .bk-mark { width: 4.5rem; height: 4.5rem; flex: none; padding: .5rem; background: var(--color-ink-950); }
.bk-where figcaption { font-size: var(--text-small); color: var(--color-fg-muted); }
.bk-where figcaption b { display: block; font-size: var(--text-ui); font-weight: 500; color: var(--color-fg); }
.w-title { font-size: clamp(1.125rem, 1rem + .5vw, 1.5rem); letter-spacing: -.025em; line-height: 1.1; text-align: center; }
.w-nav { display: flex; flex-direction: column; gap: .5rem; font-size: var(--text-ui); color: var(--color-fg-muted); }
.w-nav .on { display: flex; align-items: center; gap: .5rem; color: var(--color-fg); }
.w-nav .on::before { content: ""; width: 6px; height: 6px; background: var(--color-green-500); }
.w-nav span:not(.on) { padding-left: calc(6px + .5rem); }

/* ── Зураг ── */
.bk-shot { position: relative; display: flex; flex-direction: column; background: var(--color-raised); box-shadow: 0 0 0 1px var(--color-line); }
.bk-shot img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.bk-shot-bar { position: absolute; left: clamp(.75rem, .5rem + 1vw, 1.25rem); right: clamp(.75rem, .5rem + 1vw, 1.25rem); bottom: calc(3.75rem + clamp(.75rem, .5rem + 1vw, 1.25rem)); display: flex; align-items: center; gap: .875rem; padding: 1rem 1.125rem; font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); letter-spacing: -.025em; line-height: 1.1; }
.bk-shot-bar .mk { width: 1.75rem; height: 1.75rem; flex: none; }
.bk-shot.light .bk-shot-bar { background: var(--color-paper); color: var(--color-ink-950); }
.bk-shot.dark .bk-shot-bar { background: var(--color-ink-950); color: var(--color-paper); }
.bk-shot figcaption { display: flex; align-items: baseline; gap: .375rem; height: 3.75rem; padding: 0 1.25rem; align-items: center; font-size: var(--text-small); color: var(--color-fg-muted); }
.bk-shot figcaption b { font-size: var(--text-ui); font-weight: 500; color: var(--color-fg); }
.bk-face { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; padding: clamp(1.25rem, .8rem + 1.6vw, 2rem); }
.bk-face b { display: block; font-weight: 500; font-size: 1.0625rem; margin-bottom: .375rem; }
.bk-face p { color: var(--color-fg-muted); max-width: 32ch; }
.bk-dodont { display: grid; gap: 1.5rem; padding: clamp(1.25rem, .8rem + 1.6vw, 2rem); }
@media (width >= 40rem) { .bk-dodont { grid-template-columns: 1fr 1fr; } }
.bk-dodont ul { display: flex; flex-direction: column; gap: .625rem; margin-top: .875rem; }
.bk-dodont .no li { color: var(--color-fg-muted); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: var(--color-line-strong); }
.bk-say-h { display: flex; align-items: center; gap: .5rem; font-weight: 500; color: var(--color-accent-text); }
.no > .bk-say-h { color: var(--color-fg-muted); }

/* ── Хөдөлгөөн: a small curve beside three timings you can play ── */
.bk-curve { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; padding: 1.25rem; min-height: 15rem; }
.bk-curve > svg { width: 100%; max-width: 20rem; height: auto; aspect-ratio: 16 / 10; overflow: visible; margin: .75rem auto 0; }
.bk-curve .run { offset-path: path("M0 200 C 70 200, 80 0, 320 0"); offset-rotate: 0deg; offset-distance: 100%; }
.bk-curve.play .run { animation: bk-run 1.1s var(--ease) both; }
@keyframes bk-run { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.bk-curve > p { font-size: var(--text-small); color: var(--color-fg-muted); }
.bk-replay { position: absolute; right: .75rem; bottom: .75rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid var(--color-line-strong); color: var(--color-fg); transition: border-color var(--duration-fast) var(--ease-out); }
.bk-replay:hover { border-color: var(--color-fg); }
.bk-replay svg { width: 1rem; height: 1rem; }
.bk-durs > li { display: grid; grid-template-columns: 3rem 5.5rem 1fr; gap: 1.25rem; align-items: center; padding: 1.125rem 1.25rem; border-bottom: 1px solid var(--color-line); cursor: default; outline-offset: -2px; }
.bk-durs > li:last-child { border-bottom: 0; }
.bk-durs .num { font-size: 1.5rem; letter-spacing: -.035em; }
.bk-durs p { color: var(--color-fg-muted); }
.bk-durs .demo { display: grid; place-items: center; width: 3rem; height: 3rem; overflow: hidden; }
.d-arrow i { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; background: var(--color-green-500); color: var(--color-ink-950); }
.d-arrow svg { width: 1rem; height: 1rem; }
.d-star { color: var(--color-green-500); }
.d-star .bk-star { width: 1.75rem; height: 1.75rem; animation: none; }
.d-px { display: flex !important; align-items: flex-end; justify-content: center; gap: 3px; }
.d-px i { width: .625rem; height: .625rem; background: var(--color-green-500); }
.d-px i:nth-child(2) { box-shadow: 0 -13px 0 var(--color-green-600); }
.d-px i:nth-child(3) { box-shadow: 0 -13px 0 var(--color-green-600), 0 -26px 0 var(--color-green-400); }
.bk-durs li:is(:hover, :focus-visible, .play) .d-arrow svg { animation: bk-nudge 250ms var(--ease) 2 alternate; }
.bk-durs li:is(:hover, :focus-visible, .play) .d-star .bk-star { animation: bk-spin 520ms var(--ease); }
.bk-durs li:is(:hover, :focus-visible, .play) .d-px i { animation: bk-rise 700ms var(--ease) both; }
.bk-durs li .d-px i:nth-child(2) { animation-delay: 50ms; } .bk-durs li .d-px i:nth-child(3) { animation-delay: 100ms; }
@keyframes bk-nudge { to { transform: translateX(3px); } }
@keyframes bk-spin { from { transform: rotate(0); } to { transform: rotate(90deg); } }
@media (width < 40rem) { .bk-durs > li { grid-template-columns: 3rem 1fr; } .bk-durs p { grid-column: 2; } }

/* ── Дуу хоолой ── */
/* The edit: habits as tabs on the left, an ink stage on the right where the line to drop is struck and the line to
   use types itself in after a green cursor, like the logo's terminal */
.bk-edit { display: grid; gap: 1px; }
@media (width >= 64rem) { .bk-edit { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--spacing-gutter); } }
.bk-edit-tabs { display: flex; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--color-line-strong); }
.bk-edit-tabs::-webkit-scrollbar { display: none; }
.bk-edit-tabs button { display: flex; align-items: center; gap: .875rem; flex: none; min-height: 3.25rem; padding: .75rem 1.25rem .75rem 0; color: var(--color-fg-muted); text-align: left; border-bottom: 2px solid transparent; transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out); }
.bk-edit-tabs button .num { font-size: var(--text-small); color: var(--color-fg-subtle); }
.bk-edit-tabs button:hover { color: var(--color-fg); }
.bk-edit-tabs button[aria-selected="true"] { color: var(--color-fg); border-bottom-color: var(--color-green-500); }
.bk-edit-tabs button[aria-selected="true"] .num { color: var(--color-accent-text); }
@media (width >= 64rem) {
  .bk-edit-tabs { flex-direction: column; overflow: visible; }
  .bk-edit-tabs button { position: relative; min-height: 3.75rem; padding: .875rem 0; border-bottom: 1px solid var(--color-line); font-size: 1.0625rem; letter-spacing: -.01em; }
  .bk-edit-tabs button[aria-selected="true"] { border-bottom-color: var(--color-line); }
  .bk-edit-tabs button[aria-selected="true"]::after { content: ""; position: absolute; right: 0; width: 8px; height: 8px; background: var(--color-green-500); }
}
.bk-edit-stage { display: flex; flex-direction: column; min-height: clamp(19rem, 14rem + 10vw, 25rem); box-shadow: 0 0 0 1px var(--color-line); }
.bk-edit-bar { display: flex; align-items: center; gap: .625rem; height: 2.75rem; padding: 0 1.25rem; border-bottom: 1px solid var(--color-line); font-size: var(--text-small); color: var(--color-fg-muted); }
.bk-edit-bar img { width: 1rem; height: 1rem; }
.bk-edit-panel { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; flex: 1; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.bk-edit-panel[hidden] { display: none; }
.bk-edit-panel .tag { display: flex; align-items: center; gap: .375rem; margin-bottom: .75rem; font-size: var(--text-label); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--color-fg-muted); }
.bk-edit-panel .tag svg { width: .875rem; height: .875rem; }
.bk-edit-panel .no s { font-size: clamp(1.0625rem, 1rem + .4vw, 1.375rem); line-height: 1.3; color: var(--color-ink-400); text-decoration-thickness: 2px; text-decoration-color: var(--color-ink-600); }
.bk-edit-panel .yes .tag { color: var(--color-green-500); }
.bk-edit-panel .line { display: block; max-width: 22ch; font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3.25rem); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.bk-caret { display: inline-block; width: .42em; height: .62em; margin-left: .1em; vertical-align: -.02em; background: var(--color-green-500); animation: bk-blink 1.05s steps(1) 3; }
.bk-edit[data-typing] .bk-caret { animation: none; }

/* Opening lines and channel calls: a title on the left, ruled rows on the right */
.bk-vrow { display: grid; gap: 1.5rem; margin-top: clamp(3.5rem, 2.5rem + 3vw, 6rem); }
@media (width >= 64rem) { .bk-vrow { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--spacing-gutter); } }
.bk-hooks { border-top: 1px solid var(--color-line-strong); }
.bk-hooks li { display: grid; gap: .375rem 1.5rem; padding: 1.125rem 0; border-bottom: 1px solid var(--color-line); }
@media (width >= 48rem) { .bk-hooks li { grid-template-columns: 13rem 1fr; align-items: baseline; } }
.bk-hooks .t { display: flex; align-items: center; gap: .5rem; font-size: var(--text-small); font-weight: 500; color: var(--color-fg-muted); }
.bk-hooks .t::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--color-green-500); }
.bk-hooks p { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.75rem); line-height: 1.15; letter-spacing: -.025em; }
.bk-cta { border-top: 1px solid var(--color-line-strong); }
.bk-cta > div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--color-line); }
.bk-cta dt { display: flex; align-items: center; gap: .5rem; font-size: var(--text-small); color: var(--color-fg-muted); }
.bk-cta dt img { width: 1rem; height: 1rem; }
.bk-cta dd { font-size: 1.125rem; letter-spacing: -.015em; }
@media (width < 40rem) { .bk-cta > div { grid-template-columns: 1fr; gap: .375rem; } }

/* The sign-off closes the section at full width */
.bk-signoff { display: grid; gap: 1rem; margin-top: clamp(3.5rem, 2.5rem + 3vw, 6rem); padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); border-top: 1px solid var(--color-line-strong); }
@media (width >= 64rem) { .bk-signoff { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; gap: var(--spacing-gutter); } }
.bk-sign { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5.5rem); letter-spacing: -.045em; line-height: 1; }
.bk-sign i { display: inline-block; width: .42em; height: .62em; margin-left: .08em; background: var(--color-accent); animation: bk-blink 1.05s steps(1) 3; }

/* ── Загвар: the formats side by side at their real ratios, on one baseline ── */
.bk-wide-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
@media (width >= 64rem) { .bk-wide-head { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--spacing-gutter); align-items: end; } }
.bk-lineup {
  --bleed: max(var(--spacing-gutter), calc((100% - var(--container-page)) / 2));
  --H: clamp(12rem, 7rem + 9vw, 19rem);
  display: flex; align-items: flex-start; gap: clamp(1rem, .5rem + 1.5vw, 2rem); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--bleed); padding-inline: var(--bleed); scrollbar-width: none;
}
.bk-lineup::-webkit-scrollbar { display: none; }
.bk-lineup > li { flex: none; width: max(calc(var(--H) * var(--r)), 11rem); scroll-snap-align: start; }
.bk-lineup .frame { position: relative; height: var(--H); width: calc(var(--H) * var(--r)); overflow: hidden; box-shadow: 0 0 0 1px var(--color-line); }
.bk-lineup .art { position: absolute; inset: 0; }
.bk-lineup b { display: block; margin-top: 1rem; font-weight: 500; font-size: 1.0625rem; }
.bk-lineup .num { font-size: var(--text-small); color: var(--color-fg-muted); }
.bk-lineup p { margin-top: .375rem; max-width: 26ch; font-size: var(--text-small); color: var(--color-fg-muted); }
.fmt-tile { display: grid; place-items: center; width: 16cqw; height: 16cqw; background: var(--color-mint-100); }
.fmt-tile svg { width: 9cqw; height: 9cqw; }
.fmt-thumb > img, .fmt-reel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fmt-thumb > img { left: 45%; width: 55%; }
.fmt-thumb .pad { right: 55%; background: var(--color-ink-950); }
.fmt-thumb .mk { width: 9cqw; height: 9cqw; }
.fmt-thumb .pad { padding: 5cqw; }
.fmt-thumb .h { font-size: 9cqw !important; }
.fmt-reel .mk { width: 12cqw; height: 12cqw; }
.fmt-reel .cap { margin-top: auto; align-self: center; padding: 1.5cqw 3cqw; background: var(--color-ink-950); font-size: 5.5cqw; }
.fmt-reel .bar { display: block; height: 1.2cqw; margin-top: 6cqw; background: linear-gradient(90deg, var(--color-green-500) 40%, rgb(255 255 255 / .3) 0); }
.fmt-block { display: block; margin: auto 0 6cqw; height: 28cqw; background: var(--color-mint-100); }

/* ── Вэб UI: the components the site is built from ── */
.bk-ui { display: flex; flex-direction: column; gap: 1rem; min-width: 0; padding: clamp(1.25rem, .8rem + 1.6vw, 2rem); }
.ui-l { font-size: var(--text-small); color: var(--color-fg-muted); }
.ui-row { display: flex; flex-wrap: wrap; align-items: center; gap: .875rem 1.25rem; }
.bk-card { max-width: 21rem; height: auto; }
.bk-card .post-card-title { display: -webkit-box; }
.bk-prompt { max-width: none; }
.bk-prompt pre { margin: 0 !important; }
.bk-pg { display: inline-grid; place-items: center; height: 3rem; min-width: 3rem; padding: 0 .75rem; border: 1px solid var(--color-line); background: var(--color-raised); color: var(--color-fg-muted); font-variant-numeric: tabular-nums; transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
.bk-pg:hover { border-color: var(--color-line-strong); color: var(--color-fg); }
.bk-pg.on { border-color: var(--color-fg); background: var(--color-fg); color: var(--color-bg); }

/* Reduced motion: everything rests in its final state */
@media (prefers-reduced-motion: reduce) {
  .bk *, .bk *::before, .bk *::after { animation: none !important; transition: none !important; }
}
