/* Black gold (signature page; owner, 2 Dec 2026): darkness, then light. A pinned near-black stage holds one caviar
   pearl drawn live by black-gold.js; the four chapters cross-fade as the visitor scrolls. Without JavaScript the same
   lines read as one still composition. Prefix cmb-bg-. */
html body .cmb.cmb-black-gold { background: #02040A; }
html body .cmb .cmb-bg { position: relative; background: linear-gradient(180deg, #02040A 55%, #000E34); color: var(--b-ivory); }

/* ---------- the still composition (no JavaScript, or no drawing) ---------- */
html body .cmb .cmb-bg-pin { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(72px, 10vw, 128px); padding: clamp(48px, 7vw, 96px) var(--b-pad) clamp(80px, 10vw, 136px); text-align: center; }
html body .cmb .cmb-bg-still { display: block; width: min(80vw, 440px); height: auto; margin-bottom: clamp(-96px, -7vw, -48px); animation: cmb-bg-dawn 2.4s .7s both; }
@keyframes cmb-bg-dawn { from { opacity: 0; } to { opacity: 1; } }
html body .cmb .cmb-bg-ch, html body .cmb .cmb-bg-mid, html body .cmb .cmb-bg-spec { display: flex; flex-direction: column; align-items: center; gap: 18px; }
html body .cmb .cmb-bg-title { font-size: clamp(58px, 7.6vw, 108px); line-height: .98; color: var(--b-ivory); }
html body .cmb .cmb-bg em, html body .cmb .cmb-bg-close h2 em { color: var(--b-gold-2); }
html body .cmb .cmb-bg-sub { font: italic 400 clamp(16px, 1.35vw, 19px)/1.5 "Lora", Georgia, serif; color: var(--b-mist); }
html body .cmb .cmb-bg-line { max-width: 15em; font-size: clamp(30px, 3.1vw, 46px); line-height: 1.1; color: var(--b-ivory); }
html body .cmb .cmb-bg-shades { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 30px 18px; width: min(100%, 1000px); }
html body .cmb .cmb-bg-shades li { display: flex; flex-direction: column; align-items: center; gap: 7px; }
html body .cmb .cmb-bg-shades :is(b, span) { display: block; text-indent: .3em; text-transform: uppercase; }
html body .cmb .cmb-bg-shades b { font: 500 15px/1.3 "Jost", sans-serif; letter-spacing: .34em; color: var(--b-gold-2); }
html body .cmb .cmb-bg-shades span { font: 400 11px/1.5 "Jost", sans-serif; letter-spacing: .26em; color: rgba(247, 243, 234, .74); }
html body .cmb .cmb-bg-shades span + span { color: rgba(201, 169, 110, .8); }
/* the house emblem (gold light on black): screened so only the light remains, edges dissolved by a round mask */
html body .cmb .cmb-bg-emb { --cmb-bg-m: radial-gradient(closest-side, #000 74%, #0000); position: relative; width: min(86vw, 440px); aspect-ratio: 1; mix-blend-mode: screen; -webkit-mask-image: var(--cmb-bg-m); mask-image: var(--cmb-bg-m); }
html body .cmb .cmb-bg-emb img { display: block; width: 100%; height: 100%; }
html body .cmb .cmb-bg-emb .cmb-bg-sheen { --cmb-bg-m: linear-gradient(105deg, #0000 calc(var(--cmb-bg-s, -60%) - 15%), #000 var(--cmb-bg-s, -60%), #0000 calc(var(--cmb-bg-s, -60%) + 15%));
  position: absolute; inset: 0; mix-blend-mode: screen; filter: brightness(1.9); opacity: var(--cmb-bg-sa, 0); -webkit-mask-image: var(--cmb-bg-m); mask-image: var(--cmb-bg-m); }
html body .cmb .cmb-bg-since { font: 500 12px/1.3 "Jost", sans-serif; letter-spacing: .46em; text-indent: .46em; text-transform: uppercase; color: var(--b-gold-2); }
html body .cmb .cmb-bg:not(.cmb-bg-on) :is(.cmb-bg-cue, .cmb-bg-hint, .cmb-bg-dots, .cmb-bg-rail) { display: none; }
html body .cmb .cmb-bg:not(.cmb-bg-on) .cmb-bg-spec { width: 100%; }
html body .cmb .cmb-bg:not(.cmb-bg-on) .cmb-bg-ch--3 .cmb-bg-line { order: -1; margin-bottom: 18px; }

/* small print on the stage */
html body .cmb .cmb-bg-hint { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; font: 500 11px/1.4 "Jost", sans-serif; letter-spacing: .28em; text-transform: uppercase; color: rgba(201, 169, 110, .82); }
html body .cmb .cmb-bg-hint .cmb-bg-hint-hold::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 16px 0 calc(16px - .28em); border-radius: 50%; background: rgba(201, 169, 110, .6); vertical-align: middle; }
@media (max-width: 599px) { html body .cmb .cmb-bg-hint { flex-direction: column; align-items: center; gap: 10px; } html body .cmb .cmb-bg-hint span { text-indent: .28em; } html body .cmb .cmb-bg-hint .cmb-bg-hint-hold::before { display: none; } }
@media (hover: none) { html body .cmb .cmb-bg-hint-mouse { display: none; } }
@media (hover: hover) { html body .cmb .cmb-bg-hint-touch { display: none; } }
html body .cmb .cmb-bg-cue { display: flex; flex-direction: column; align-items: center; gap: 12px; font: 500 10px/1 "Jost", sans-serif; letter-spacing: .4em; text-indent: .4em; text-transform: uppercase; color: rgba(247, 243, 234, .5); }
html body .cmb .cmb-bg-cue::after { content: ""; width: 1px; height: 38px; background: linear-gradient(180deg, var(--b-gold-2), rgba(201, 169, 110, 0)); transform-origin: top; animation: cmb-bg-cue 2.8s var(--b-ease) infinite; }
@keyframes cmb-bg-cue { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* the five shades, as five tiny pearls */
html body .cmb .cmb-bg-dots { display: flex; justify-content: center; gap: 2px; margin-top: 6px; }
html body .cmb .cmb-bg .cmb-bg-dot { position: relative; display: block; width: 42px; height: 44px; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
html body .cmb .cmb-bg .cmb-bg-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--cmb-bg-sw); box-shadow: 0 0 0 1px rgba(201, 169, 110, .42); transition: transform .5s var(--b-ease), box-shadow .5s var(--b-ease); }
html body .cmb .cmb-bg .cmb-bg-dot:hover::before { box-shadow: 0 0 0 1px var(--b-gold-2); }
html body .cmb .cmb-bg .cmb-bg-dot[aria-pressed="true"]::before { transform: scale(1.4); box-shadow: 0 0 0 .8px var(--b-gold-2), 0 0 0 4.5px rgba(201, 169, 110, .16); }
html body .cmb .cmb-bg .cmb-bg-dot:focus-visible { outline: 1px solid var(--b-gold-2); outline-offset: -8px; }
html body .cmb .cmb-bg-dot:nth-child(1) { --cmb-bg-sw: radial-gradient(circle at 34% 30%, #8A8C90, #2B2D31 45%, #0C0D0F); }
html body .cmb .cmb-bg-dot:nth-child(2) { --cmb-bg-sw: radial-gradient(circle at 34% 30%, #FBE3A6, #C4943C 45%, #5E3C0E); }
html body .cmb .cmb-bg-dot:nth-child(3) { --cmb-bg-sw: radial-gradient(circle at 34% 30%, #6E5440, #24170E 45%, #070504); }
html body .cmb .cmb-bg-dot:nth-child(4) { --cmb-bg-sw: radial-gradient(circle at 34% 30%, #D2B66A, #6E5C28 45%, #231B08); }
html body .cmb .cmb-bg-dot:nth-child(5) { --cmb-bg-sw: radial-gradient(circle at 34% 30%, #F4F5F6, #A3A6AB 45%, #3A3D42); }

/* ---------- the pinned stage (JavaScript on): the chapters lie over the drawing and cross-fade ---------- */
html body .cmb .cmb-bg.cmb-bg-on { height: calc((100vh - var(--cmb-bg-top, 0px)) * 6.4); height: calc((100svh - var(--cmb-bg-top, 0px)) * 6.4); background: #02040A; }
html body .cmb .cmb-bg-on .cmb-bg-pin { position: sticky; top: var(--cmb-bg-top, 0px); display: block; height: calc(100vh - var(--cmb-bg-top, 0px)); height: calc(100svh - var(--cmb-bg-top, 0px)); padding: 0; overflow: hidden; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
html body .cmb .cmb-bg-on .cmb-bg-still { display: none; }
html body .cmb .cmb-bg-canvas { display: none; }
html body .cmb .cmb-bg-on .cmb-bg-canvas { display: block; position: absolute; left: 0; bottom: 0; width: 100%; height: 100vh; height: 100svh; }
html body .cmb .cmb-bg-on .cmb-bg-ch { position: absolute; inset: 0; gap: 14px; padding: calc(var(--cmb-bg-cy, 45vh) + var(--cmb-bg-r, 25vh) + clamp(22px, 4.6vh, 52px)) var(--b-pad) clamp(18px, 3.6vh, 36px); opacity: 0; pointer-events: none; }
html body .cmb .cmb-bg-on .cmb-bg-mid { position: absolute; left: var(--b-pad); right: var(--b-pad); top: var(--cmb-bg-cy, 45vh); transform: translateY(-50%); gap: clamp(12px, 2vh, 22px); }
html body .cmb .cmb-bg-on :is(.cmb-bg-cue, .cmb-bg-hint) { margin-top: auto; }
html body .cmb .cmb-bg-on .cmb-bg-ch--3 { gap: 0; }
html body .cmb .cmb-bg-on .cmb-bg-ch--3 .cmb-bg-line { margin-top: auto; }
html body .cmb .cmb-bg-on .cmb-bg-spec { gap: 0; width: 100%; }
html body .cmb .cmb-bg-on .cmb-bg-shades { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; gap: 0; }
html body .cmb .cmb-bg-on .cmb-bg-shades li { grid-area: 1 / 1; opacity: 0; }
html body .cmb .cmb-bg-on .cmb-bg-shades li:first-child { opacity: 1; }
html body .cmb .cmb-bg-on .cmb-bg-dots { pointer-events: auto; visibility: hidden; }
/* IV fades via the emblem: a faded parent would isolate it and show the black square */
html body .cmb .cmb-bg-on .cmb-bg-ch--4 { opacity: 1; }
html body .cmb .cmb-bg-on .cmb-bg-ch--4 .cmb-bg-since { opacity: 0; }
/* it opens from the centre, where the pearl vanished, and rises out of the dark */
html body .cmb .cmb-bg-on .cmb-bg-emb { position: absolute; left: calc(var(--cmb-bg-cx, 50vw) - var(--cmb-bg-r, 25vh) * 1.32); top: calc(var(--cmb-bg-cy, 45vh) - var(--cmb-bg-r, 25vh) * 1.32); width: calc(var(--cmb-bg-r, 25vh) * 2.64); opacity: 0; filter: brightness(var(--cmb-bg-b, 1));
  --cmb-bg-m: radial-gradient(closest-side, #000 calc(var(--cmb-bg-o, 1) * 94% - 20%), #0000 calc(var(--cmb-bg-o, 1) * 120% - 20%)); }
html body .cmb .cmb-bg-on .cmb-bg-rail { display: none; }

@media (min-width: 900px) and (min-aspect-ratio: 11/10) {
  html body .cmb .cmb-bg-on .cmb-bg-ch--3 .cmb-bg-line { margin-top: 0; }
  html body .cmb .cmb-bg-on .cmb-bg-ch--3 .cmb-bg-spec { position: absolute; left: calc(var(--cmb-bg-cx, 50vw) + var(--cmb-bg-r, 25vh) + clamp(64px, 6.4vw, 112px)); right: var(--b-pad); top: var(--cmb-bg-cy, 45vh); width: auto; transform: translateY(-50%); align-items: flex-start; }
  html body .cmb .cmb-bg-on .cmb-bg-ch--3 .cmb-bg-spec::before { content: ""; position: absolute; right: calc(100% + 20px); top: 10px; width: clamp(34px, 4.4vw, 76px); height: 1px; background: linear-gradient(90deg, rgba(201, 169, 110, 0), var(--b-gold-2)); }
  html body .cmb .cmb-bg-on .cmb-bg-ch--3 .cmb-bg-shades li { align-items: flex-start; text-align: left; }
  html body .cmb .cmb-bg-on .cmb-bg-ch--3 .cmb-bg-shades :is(b, span) { text-indent: 0; }
  html body .cmb .cmb-bg-on .cmb-bg-ch--3 .cmb-bg-dots { margin: 18px 0 0 -16px; }
  html body .cmb .cmb-bg-on .cmb-bg-rail { display: block; position: absolute; right: clamp(22px, 2.4vw, 40px); top: 50%; width: 1px; height: 24vh; transform: translateY(-50%); background: rgba(247, 243, 234, .14); }
  html body .cmb .cmb-bg-on .cmb-bg-rail i { position: absolute; inset: 0; background: var(--b-gold-2); transform-origin: top; transform: scaleY(var(--cmb-bg-p, 0)); }
}

/* ---------- the close ---------- */
html body .cmb .cmb-bg-close { text-align: center; padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(72px, 9vw, 120px); }
html body .cmb .cmb-bg-close h2 { font-size: clamp(38px, 4.8vw, 62px); line-height: 1.05; color: var(--b-ivory); }
html body .cmb .cmb-bg-close .cmb-btns { justify-content: center; margin-top: clamp(26px, 3vw, 36px); }
html body .cmb .cmb-bg-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(22px, 3.4vw, 52px); max-width: 820px; margin: clamp(44px, 5vw, 64px) auto 0; padding-top: 22px; border-top: 1px solid rgba(194, 163, 107, .26); }
html body .cmb .cmb-bg-links a { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font: 500 12px/1.2 "Jost", sans-serif; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--b-mist); transition: color .3s var(--b-ease); }
html body .cmb .cmb-bg-links a::after { content: "→"; color: var(--b-gold-2); transition: transform .3s var(--b-ease); }
html body .cmb .cmb-bg-links a:hover { color: var(--b-ivory); }
html body .cmb .cmb-bg-links a:hover::after { transform: translateX(4px); }
@media (max-width: 599px) { html body .cmb .cmb-bg-links { flex-direction: column; align-items: center; } }
