/* Brand guidelines page. Shared brand-v2 shell + a .bg-* layer: a compact
   index strip under the nav, one column of numbered chapters, label | body
   blocks, native specimens, and full-width Figma frames between them.
   Type and colour come from brand-v2 tokens; mono labels are Latent Mono,
   uppercase, at the site's L2 size and tracking. */

.bg-page {
  --bg-label-w: 264px;
  /* Side gutter that puts the content on the site's 1300 field */
  --bg-pad: max(var(--v2-grid-margin), calc((100% - var(--v2-field-max)) / 2));
  --bg-bleed: min(calc(50% - 50vw), calc(-1 * var(--v2-grid-margin)));
  --bg-vpad: 72px;
  --bg-hair: var(--v2-platinum);
  --bg-mid: var(--v2-taupe);
  --bg-paper: var(--v2-off-white);
  --bg-ink: var(--v2-onyx);
  background: var(--bg-paper); color: var(--bg-ink);
}
.bg-page .bg-guide { overflow-x: clip; }
.bg-page a { color: inherit; }

.bg-page .bg-skip {
  position: absolute; left: var(--v2-space-16); top: -100px;
  padding: var(--v2-space-8) var(--v2-space-12);
  background: var(--v2-onyx); color: var(--v2-off-white);
  font: 400 var(--v2-l1)/var(--v2-l1-lh) var(--v2-font-body); z-index: 100;
}
.bg-page .bg-skip:focus { top: var(--v2-space-8); color: var(--v2-off-white); outline: 2px solid var(--v2-mauve); outline-offset: 2px; }

.bg-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.bg-progress span {
  display: block; height: 100%; width: 100%; background: var(--v2-mauve);
  transform: scaleX(var(--bg-progress, 0)); transform-origin: 0 50%;
}

/* Mono label used everywhere a value, tag or caption appears: the site's L2 */
.bg-tag, .bg-mono {
  font-family: var(--v2-font-mono); font-size: var(--v2-text-xs); line-height: var(--v2-mono-l2-lh);
  letter-spacing: var(--v2-tracking-mono); text-transform: uppercase; color: var(--bg-mid);
}
.bg-tag--dim { text-transform: none; letter-spacing: 0; opacity: .7; }
.bg-sans { font-family: var(--v2-font-body); }

/* ---------------------------------------------------------------- rail */
/* A short index that floats down the left, outside the 1300 field when the
   viewport allows, over the content. It inverts when the section beneath
   it is dark. */
.bg-rail {
  position: fixed; z-index: 20; left: max(var(--v2-grid-margin), calc((100% - var(--v2-field-max)) / 2 - 176px));
  top: 50%; transform: translateY(-50%); pointer-events: none;
  --bg-rail-ink: var(--v2-onyx); --bg-rail-dim: var(--v2-taupe);
  transition: color var(--v2-dur-base) var(--v2-ease-out);
}
.bg-rail.is-dark { --bg-rail-ink: var(--v2-off-white); --bg-rail-dim: var(--v2-dusk); }
.bg-rail__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--v2-space-12); }
.bg-page .bg-rail__link {
  display: inline-flex; align-items: center; gap: var(--v2-space-8); pointer-events: auto;
  text-decoration: none; white-space: nowrap;
  font-family: var(--v2-font-mono); font-size: var(--v2-text-xs); line-height: var(--v2-mono-l2-lh);
  letter-spacing: var(--v2-tracking-mono); text-transform: uppercase; color: var(--bg-rail-dim);
  transition: color var(--v2-dur-fast) var(--v2-ease-out);
}
.bg-page .bg-rail__link:hover, .bg-page .bg-rail__link[aria-current="true"] { color: var(--bg-rail-ink); }
.bg-rail__dot {
  width: var(--v2-dot-size); height: var(--v2-dot-size); border-radius: var(--v2-radius-full);
  background: var(--bg-rail-dim); opacity: .4; flex: none;
  transition: width .4s var(--v2-ease-out), height .4s var(--v2-ease-out),
    opacity .4s var(--v2-ease-out), background-color .4s var(--v2-ease-out);
}
.bg-rail__link[aria-current="true"] .bg-rail__dot {
  width: var(--v2-dot-size-lg); height: var(--v2-dot-size-lg); background: var(--v2-mauve); opacity: 1;
}
/* Copied-hex feedback for the primary colour swatches */
.bg-copy {
  all: unset; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px;
}
.bg-copy:focus-visible { outline: 2px solid var(--v2-mauve); outline-offset: 2px; }
.bg-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 8px);
  padding: var(--v2-space-8) var(--v2-space-12); background: var(--v2-onyx); color: var(--v2-off-white);
  border: 1px solid var(--v2-border-on-dark); opacity: 0; pointer-events: none;
  transition: opacity var(--v2-dur-fast) var(--v2-ease-out), transform var(--v2-dur-fast) var(--v2-ease-out);
}
.bg-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------- canvas */
.bg-guide { max-width: 100%; }

.bg-cover {
  box-sizing: border-box; padding: calc(var(--v2-nav-height) + 120px) var(--bg-pad) 72px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 16px;
  background: var(--v2-onyx); color: var(--v2-off-white);
  border-bottom: 1px solid var(--bg-hair);
}
.bg-cover h1 {
  margin: 0; font-family: var(--v2-font-display); font-weight: 400;
  font-size: var(--v2-h1); line-height: var(--v2-h1-lh); letter-spacing: -.02em;
  padding: .2em 0; /* room for the veil's displacement */
}
.js .bg-cover.has-veil h1 { filter: url(#bg-veil); will-change: filter; }
.bg-cover__meta { margin: 0; color: var(--v2-dusk); }
.bg-cover__dek { margin: 0; max-width: 40rem; font-size: var(--v2-p1); line-height: var(--v2-p1-lh); color: var(--v2-dusk); }
.bg-cover__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.bg-cover .ltv2-btn { color: var(--v2-onyx); background: var(--v2-off-white); border-color: var(--v2-off-white); }
.bg-cover .ltv2-btn--secondary { color: var(--v2-off-white); background: transparent; border-color: var(--v2-border-on-dark); }
.bg-cover .ltv2-btn--secondary:hover { border-color: var(--v2-off-white); }

.bg-chapter { padding: var(--bg-vpad) var(--bg-pad) 0; scroll-margin-top: var(--v2-nav-height); }
.bg-chapter__head { display: flex; align-items: baseline; gap: var(--v2-space-16); margin-bottom: 32px; }
.bg-chapter__dot { align-self: center; background: var(--v2-slate-blue); }
.bg-num { color: var(--bg-mid); }
.bg-chapter__head h2 {
  margin: 0; font-family: var(--v2-font-display); font-weight: 400;
  font-size: var(--v2-s1); line-height: var(--v2-s1-lh); letter-spacing: -.02em;
}

/* ------------------------------------------------------- Figma stages */
/* Each frame is laid out at its source size (1920 wide) and scaled to fit
   the column with a transform; the box keeps the frame's aspect ratio. */
.bg-stage { margin: 0 0 24px; position: relative; }
.bg-stage__box { position: relative; overflow: hidden; width: 100%; aspect-ratio: var(--bg-ar, 16 / 9); }
.bg-stage__box > [data-stage-root] {
  position: absolute !important; top: 0; left: 0; transform-origin: 0 0; transform: scale(var(--bg-s, 1));
}
.bg-stage--bleed { margin: 24px var(--bg-bleed); }
/* Application imagery under 2.12: square tiles four across, wide ones two across, inside the field */
.bg-apps { display: grid; gap: var(--v2-grid-gutter); margin: 0 0 24px; }
.bg-apps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bg-apps--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bg-apps .bg-stage { margin: 0; }
.bg-stage--half-r .bg-stage__box > [data-stage-root] { left: -100%; }
@media (max-width: 640px) {
  .bg-apps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bg-apps--2 { grid-template-columns: 1fr; }
}
/* Body copy inside the frames: Taupe, as on the site */
.bg-stage .bg-fx-body { color: var(--v2-taupe); }
.bg-block__body > p, .bg-note, .bg-contact__t { color: var(--v2-taupe); }
.bg-stage[data-frame="06"] .fx82 { gap: 72px; }
.bg-stage + .bg-block { margin-top: 32px; }
.bg-colophon .bg-stage { margin: 0; }
/* Frame-level edits: the intro closing line in the accent; brand attributes as site mono labels
   (24px in frame units renders at the site's 16px mono once the 1920 frame sits on the 1300 field). */
.bg-stage .bg-fx-mauve { color: var(--v2-mauve); }
.bg-stage .bg-fx-tag { text-transform: none; }
/* Attribute chips use the site's filled tag (partners page): 30.6px tall, 17px
   side padding, 4px radius, Light Lavender well, 10.2px mono. Frame units are
   the site sizes / 0.677 (1920 frame on the 1300 field). */
.bg-stage[data-frame="06"] .fx97 { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; height: auto; }
.bg-stage[data-frame="06"] .fx97 > div {
  height: 45px; padding: 0 25px; border-radius: 6px;
  background: var(--v2-accent-well); box-shadow: none;
}
.bg-stage[data-frame="06"] .fx97 .bg-fx-mono { font-size: 15px; line-height: 1; }
.bg-stage .bg-fx-mono {
  font-family: var(--v2-font-mono); font-size: 24px; line-height: var(--v2-mono-l1-lh);
  letter-spacing: var(--v2-tracking-mono); text-transform: uppercase;
}
/* Scale labels (1X to 8X): Latent Mono at 80% of the 16px they rendered at. */
.bg-stage[data-frame="13"] .fx272.bg-fx-mono { font-size: 12.8px; line-height: 1; }
/* Correct Use body copy: one left-aligned paragraph, no pre-wrap indents. */
.bg-stage .bg-fx-para { white-space: normal; text-align: left; line-height: 1.3; }
.bg-stage .bg-fx-para p { margin: 0; }
.bg-stage .bg-fx-steps { display: grid; gap: 16px; }
.bg-stage[data-frame="77"] .fx1871 { right: auto; white-space: nowrap; }
/* Primary colours: names and values in Latent Mono; the combinations frame
   sits at 85%; the specimen names on the type frame at 90%. */
.bg-stage[data-frame="27"] .fx524, .bg-stage[data-frame="27"] .fx528, .bg-stage[data-frame="27"] .fx531 {
  font-family: var(--v2-font-mono); text-transform: uppercase; letter-spacing: var(--v2-tracking-mono);
}
.bg-stage[data-frame="29"] { width: 85%; margin-inline: auto; }
.bg-stage[data-frame="36"] .fx740 { font-size: 12.6px; }
/* Download row under a frame */
.bg-dlrow { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: -8px 0 32px; }
.bg-dlrow__i { display: inline-flex; align-items: center; gap: 12px; }

/* ---------------------------------------------------- LinkedIn banners */
.bg-lis { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; width: 50%; margin-inline-start: auto; }
.bg-lis--avatars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 767px) { .bg-lis { width: 100%; } }
.bg-li img { display: block; width: 100%; height: auto; border: 1px solid var(--bg-hair); }

.bg-block {
  display: grid; grid-template-columns: var(--bg-label-w) minmax(0, 1fr); gap: 48px;
  padding: 40px 0;
}
.bg-block--wide { grid-template-columns: 1fr; }
.bg-block--wide .bg-block__label { max-width: 40rem; }
.bg-block__label h3 { margin: 8px 0 12px; font-family: var(--v2-font-display); font-weight: 400; font-size: 22px; line-height: 1.15; letter-spacing: -.01em; }
.bg-block__label p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--bg-mid); }
.bg-block__body { min-width: 0; display: grid; gap: 16px; align-content: start; }
.bg-block__body > p { margin: 0; }
.bg-note, .bg-statement { font-size: 15px; line-height: 1.5; max-width: 52rem; }
.bg-statement { font-size: 22px; line-height: 1.3; letter-spacing: -.01em; margin-bottom: 8px !important; }

/* Plates: bordered fields that hold a specimen */
.bg-plate {
  position: relative; border: 1px solid var(--bg-hair); padding: 40px;
  display: flex; align-items: center; justify-content: center; min-height: 160px;
  overflow: hidden;
}
.bg-plate--tall { min-height: 280px; }
.bg-plate--bare { border-color: transparent; padding: 0; }
.bg-plate--flush { padding: 0; align-items: stretch; justify-content: stretch; }
.bg-plate--left { align-items: flex-start; justify-content: flex-start; text-align: left; }
.bg-plate--light { background: var(--v2-off-white); color: var(--v2-onyx); --bg-mid: var(--v2-taupe); --bg-hair: var(--v2-platinum); }
.bg-plate--dark, .bg-plate--onyx { background: var(--v2-onyx); color: var(--v2-white-smoke); --bg-mid: var(--v2-dusk); --bg-hair: rgba(250,250,250,.14); }
.bg-plate--image {
  color: var(--v2-white-smoke);
  background: linear-gradient(135deg, #3D2B60 0%, #7783A6 45%, #BCBFD3 70%, #F5F5F5 100%);
}
.bg-scrim { position: absolute; inset: 0; background: rgba(19,18,21,.3); display: flex; align-items: center; justify-content: center; padding: 40px; }
.bg-plate svg { fill: currentColor; max-width: 100%; }
.bg-plate .bg-tag { color: var(--bg-mid); }

.bg-caption {
  display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  font-family: var(--v2-font-mono); font-size: var(--v2-text-xs); line-height: var(--v2-mono-l2-lh); letter-spacing: var(--v2-tracking-mono); text-transform: uppercase; color: var(--bg-mid);
  margin-top: 10px; margin-bottom: 8px;
}
.bg-dlbtn {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  border: 1px solid var(--bg-hair); text-decoration: none; color: var(--bg-ink);
  font-family: var(--v2-font-mono); font-size: var(--v2-text-xs); line-height: var(--v2-mono-l2-lh); letter-spacing: var(--v2-tracking-mono); text-transform: uppercase;
}
.bg-dlbtn:hover { background: var(--bg-ink); color: var(--bg-paper); border-color: var(--bg-ink); }

.bg-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bg-split--top { align-items: start; }
.bg-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bg-caps { margin-top: -8px; }

/* Rows, specs, chips, don'ts */
.bg-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bg-hair); }
.bg-rows li {
  display: grid; grid-template-columns: 32px 200px minmax(0, 1fr); gap: 16px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--bg-hair); font-size: 14px; line-height: 1.5;
}
.bg-rows--plain li { grid-template-columns: 200px minmax(0, 1fr); }
.bg-rows__n { font-family: var(--v2-font-mono); font-size: var(--v2-text-xs); letter-spacing: var(--v2-tracking-mono); color: var(--bg-mid); }
.bg-rows__k { font-weight: 400; }
.bg-rows__v { color: var(--bg-mid); }
.bg-rows__v a { text-decoration: underline; text-underline-offset: 2px; }
.bg-specs { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; border-top: 1px solid var(--bg-hair); padding-top: 16px; }
.bg-specs dt { font-family: var(--v2-font-mono); font-size: var(--v2-text-xs); line-height: var(--v2-mono-l2-lh); letter-spacing: var(--v2-tracking-mono); text-transform: uppercase; color: var(--bg-mid); }
.bg-specs dd { margin: 4px 0 0; font-size: 14px; }
.bg-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bg-chips li { border: 1px solid var(--bg-hair); padding: 10px 16px; font-size: 15px; }
.bg-donts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bg-donts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bg-donts li { display: flex; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--bg-mid); }
.bg-donts li span { color: var(--bg-ink); }

/* ---------------------------------------------------------- introduction */
.bg-two-vantages { display: grid; grid-template-columns: 1fr 1fr; width: 100%; min-height: 320px; }
.bg-vantage { padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.bg-vantage--dark { background: var(--v2-onyx); color: var(--v2-off-white); }
.bg-vantage--light { background: var(--v2-off-white); color: var(--v2-onyx); border: 1px solid var(--v2-platinum); }
.bg-vantage svg { width: 100%; height: auto; }
.bg-vantage__t { font-size: 15px; line-height: 1.45; max-width: 26rem; }
.bg-found { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 8px; }
.bg-found__q { margin: 0; padding: 0; border: 0; }
.bg-found p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--bg-mid); }
.bg-found__lead { font-size: 20px !important; line-height: 1.25 !important; color: var(--bg-ink) !important; letter-spacing: -.01em; }
.bg-values { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bg-hair); }
.bg-values li { display: grid; grid-template-columns: var(--bg-label-w) minmax(0, 1fr); gap: var(--v2-space-16); align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--bg-hair); }
.bg-values__k { color: var(--bg-ink); }
.bg-values__v { font-size: 15px; line-height: 1.5; color: var(--bg-mid); }
.bg-chips--mono li { font-family: var(--v2-font-mono); font-size: var(--v2-text-xs); line-height: var(--v2-mono-l2-lh); letter-spacing: var(--v2-tracking-mono); text-transform: uppercase; padding: 10px 14px; color: var(--bg-ink); }
.bg-thesis { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; width: 100%; }
.bg-thesis svg { width: 100%; height: auto; border: 1px solid var(--bg-hair); }
.bg-thesis p { margin: 0; font-size: 22px; line-height: 1.3; letter-spacing: -.01em; }

/* ------------------------------------------------------------------ logo */
.bg-lockup-hero { width: min(100%, 440px); height: auto; }
.bg-wordmark-hero { width: min(100%, 360px); height: auto; }
.bg-mark-hero { width: 140px; height: auto; }
.bg-lockup-md { width: min(100%, 180px); height: auto; }
.bg-lockup-sm { width: 140px; height: auto; }
.bg-lockup-xs { width: 84px; height: auto; }
.bg-con { width: min(100%, 260px); height: auto; }
.bg-con__orbit { fill: none; stroke: var(--v2-haze); stroke-width: .8; stroke-dasharray: 3 3; }
.bg-con__spoke { stroke: var(--v2-haze); stroke-width: .5; opacity: .6; }
.bg-con__node { fill: none; stroke: currentColor; stroke-width: 1.2; }
.bg-con__dim { stroke: var(--v2-slate-blue); stroke-width: 1; }
.bg-con__t { font-family: var(--v2-font-mono); font-size: 8px; fill: var(--v2-taupe); text-anchor: middle; }
.bg-cs { width: 100%; max-width: 640px; height: auto; }
.bg-cs__zone { fill: none; stroke: var(--v2-slate-blue); stroke-width: 1; stroke-dasharray: 4 4; }
.bg-cs__sq { fill: var(--v2-light-lavender); stroke: var(--v2-slate-blue); stroke-width: .8; }
.bg-cs__dim { stroke: var(--v2-slate-blue); stroke-width: 1; }
.bg-cs__t { font-family: var(--v2-font-mono); font-size: 11px; fill: var(--v2-slate-blue); text-anchor: middle; }
.bg-cs__t--l { text-anchor: start; font-size: 14px; }
.bg-ink { fill: currentColor; }

.bg-scale { display: flex; align-items: flex-end; gap: 40px; flex-wrap: wrap; width: 100%; padding: 32px; }
.bg-scale--baseline { align-items: flex-end; }
.bg-scale__item { display: grid; gap: 12px; }
.bg-scale__art svg { height: var(--x); width: auto; display: block; fill: currentColor; }
.bg-scale__art .bg-mark { width: var(--x); height: auto; }
.bg-favs { display: flex; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding: 32px; width: 100%; }
.bg-fav { display: grid; grid-template-columns: auto auto; gap: 12px; align-items: end; }
.bg-fav .bg-tag { grid-column: 1 / -1; }
.bg-fav__sq, .bg-fav__ci { display: flex; align-items: center; justify-content: center; width: min(var(--s), var(--s-max, 999px)); height: min(var(--s), var(--s-max, 999px)); background: var(--v2-onyx); color: var(--v2-off-white); }
.bg-fav__ci { border-radius: 50%; }
.bg-fav__sq svg, .bg-fav__ci svg { width: 58%; height: auto; fill: currentColor; }

.bg-misuse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bg-mis { position: relative; border: 1px solid var(--bg-hair); padding: 40px 20px 16px; display: grid; gap: 20px; justify-items: center; background: var(--v2-off-white); color: var(--v2-onyx); }
.bg-mis__x { position: absolute; top: 10px; left: 12px; font-size: 18px; line-height: 1; color: var(--v2-slate-blue); }
.bg-combo--never .bg-mis__x { color: var(--fg); }
.bg-mis__art { height: 40px; display: flex; align-items: center; gap: 12px; }
.bg-mis__art svg { height: 100%; width: auto; fill: currentColor; }
.bg-mis--warp .bg-mis__art svg { transform: scaleX(1.5); }
.bg-mis--stack .bg-mis__art { flex-direction: column; height: 64px; gap: 6px; }
.bg-mis--stack .bg-mis__mk { height: 32px; }
.bg-mis--stack .bg-mis__wm { height: 20px; }
.bg-mis--shadow .bg-mis__art svg { filter: drop-shadow(4px 6px 4px rgba(19,18,21,.45)); }
.bg-mis--prop .bg-mis__mk { height: 64px; }
.bg-mis--prop .bg-mis__art { height: 64px; }
.bg-mis--prop .bg-mis__wm { height: 20px; }
.bg-mis--multi .bg-mis__mk { color: var(--v2-mauve); }
.bg-mis--multi .bg-mis__wm { color: var(--v2-slate-blue); }
.bg-mis--multi .bg-mis__art { gap: 15px; }
.bg-mis--multi .bg-mis__mk { height: 40px; } .bg-mis--multi .bg-mis__wm { height: 29px; }
.bg-mis--outline .bg-mis__art svg { fill: none; stroke: currentColor; stroke-width: 2; }

.bg-partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; padding: 32px; width: 100%; }
.bg-partners .bg-tag { grid-row: 2; }
.bg-partner { display: flex; align-items: center; gap: 24px; height: 40px; }
.bg-partner svg { height: 30px; width: auto; }
.bg-partner__sep { font-family: var(--v2-font-display); font-size: 26px; line-height: 1; color: var(--bg-mid); }
.bg-partner__ghost { width: 96px; height: 28px; border: 1px dashed var(--v2-haze); }
/* Tagline lockups: the two-line tagline stands as tall as the mark or wordmark beside it
   (X). With the mark alone, the mark runs 5% taller than the text. Gap is the brand's
   tagline unit, two-thirds of the mark width. */
.bg-tagline { display: flex; align-items: center; gap: calc(var(--x) * .667); }
.bg-tagline svg { height: var(--x); width: auto; }
.bg-tagline__t {
  font-family: var(--v2-font-body); font-size: calc(var(--x) * .55); line-height: calc(var(--x) * .6);
  letter-spacing: -.02em; color: var(--bg-ink); white-space: nowrap;
}
.bg-tagline { --x: 40px; }
/* Icon Tagline Lockup: the tag frame's construction, at the tag frame's rendered
   scale (frame units: icon 78.757 tall, text 32/34.3, gap 23.2). */
.bg-tagline--mark { --s: var(--bg-tag-s, .677); gap: calc(23.2px * var(--s)); }
.bg-tagline--mark .bg-tagline__mk { display: block; height: calc(78.757px * var(--s)); width: auto; }
.bg-tagline--mark .bg-tagline__t { font-size: calc(32px * var(--s)); line-height: calc(34.3px * var(--s)); letter-spacing: -.02em; }
.bg-tagline__solo { margin: 0; font-family: var(--v2-font-body); font-size: 22px; line-height: 1.1; letter-spacing: -.02em; text-align: center; }

/* ---------------------------------------------------------------- colour */
.bg-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; min-height: 300px; }
.bg-field { background: var(--c); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; font-family: var(--v2-font-mono); font-size: var(--v2-text-xs); line-height: var(--v2-mono-l2-lh); letter-spacing: var(--v2-tracking-mono); text-transform: uppercase; color: var(--v2-onyx); border: 1px solid rgba(19,18,21,.06); }
.bg-field[style*="#7262B7"], .bg-field[style*="#131215"] { color: var(--v2-off-white); }
.bg-swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.bg-swatch { display: grid; gap: 6px; font-size: 13px; }
.bg-swatch__chip { display: block; aspect-ratio: 4 / 3; background: var(--c); border: 1px solid rgba(19,18,21,.08); }
.bg-swatch__name { font-size: 14px; margin-top: 4px; }
.bg-swatch__role { font-size: 12px; color: var(--bg-mid); line-height: 1.35; min-height: 2.7em; }
.bg-swatch dl { margin: 4px 0 0; display: grid; gap: 2px; }
.bg-swatch dl div { display: flex; gap: 8px; font-family: var(--v2-font-mono); font-size: var(--v2-text-xs); letter-spacing: var(--v2-tracking-mono); color: var(--bg-mid); text-transform: uppercase; }
.bg-swatch dt { width: 36px; } .bg-swatch dd { margin: 0; color: var(--bg-ink); }
.bg-ratio { display: flex; height: 120px; width: 100%; }
.bg-ratio span { background: var(--c); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; }
.bg-ratio i { font-style: normal; font-family: var(--v2-font-mono); font-size: 9px; color: rgba(19,18,21,.55); }
.bg-ratio span[style*="#131215"] i, .bg-ratio span[style*="#0A0A0A"] i, .bg-ratio span[style*="#342F37"] i, .bg-ratio span[style*="#57505C"] i, .bg-ratio span[style*="#7262B7"] i, .bg-ratio span[style*="#3D2B60"] i { color: rgba(250,250,250,.6); }
.bg-ratio__legend { display: grid; grid-template-columns: 60fr 24fr 13fr 3fr; font-family: var(--v2-font-mono); font-size: var(--v2-text-xs); line-height: var(--v2-mono-l2-lh); letter-spacing: var(--v2-tracking-mono); text-transform: uppercase; color: var(--bg-mid); margin-top: -8px; }
.bg-ratio__legend span:last-child { overflow: hidden; white-space: nowrap; }
.bg-combos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
.bg-combos--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bg-combos .bg-tag { margin-top: -16px; }
.bg-combo { position: relative; background: var(--bg); color: var(--fg); aspect-ratio: 1; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(19,18,21,.06); }
.bg-combo__mk { width: 20px; height: auto; fill: currentColor; }
.bg-combo p { margin: 0; font-size: 17px; line-height: 1.25; letter-spacing: -.01em; }
.bg-combo__meta { font-family: var(--v2-font-mono); font-size: var(--v2-text-xs); letter-spacing: var(--v2-tracking-mono); opacity: .8; }
.bg-combo--never { justify-content: flex-end; gap: 16px; }

/* ------------------------------------------------------------ typography */
.bg-spec { display: grid; gap: 20px; width: 100%; }
.bg-spec__aa { font-size: clamp(64px, 9vw, 140px); line-height: .95; letter-spacing: -.03em; }
.bg-mono.bg-spec__aa { letter-spacing: -.02em; text-transform: none; color: inherit; font-size: clamp(56px, 8vw, 120px); }
.bg-spec__glyphs { margin: 0; font-size: 20px; line-height: 1.5; word-break: break-all; }
.bg-mono.bg-spec__glyphs { text-transform: none; letter-spacing: 0; color: inherit; font-size: 16px; }
.bg-hier { border-top: 1px solid var(--bg-hair); }
.bg-hier__row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--bg-hair); align-items: start; }
.bg-hier__row p { margin: 0; }
.bg-h-display { font-size: clamp(40px, 5.6vw, 86px); line-height: 1; letter-spacing: -.02em; }
.bg-h-sub { font-size: clamp(22px, 2.4vw, 32px); line-height: 1; letter-spacing: -.02em; max-width: 34ch; }
.bg-h-body { font-size: clamp(17px, 1.7vw, 24px); line-height: 1.1; max-width: 46ch; }
.bg-h-mono { font-family: var(--v2-font-mono); font-size: 14px; line-height: 1.1; text-transform: uppercase; }
.bg-typescale { border-top: 1px solid var(--bg-hair); }
.bg-scale-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--bg-hair); }
.bg-scale-row p { margin: 0; line-height: 1; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bg-scale-row .bg-sc-body, .bg-scale-row .bg-sc-bodys, .bg-scale-row .bg-sc-cap, .bg-scale-row .bg-sc-mono { white-space: normal; line-height: 1.35; letter-spacing: 0; }
.bg-sc-h0 { font-size: clamp(64px, 7.2vw, 200px); }
.bg-sc-h2 { font-size: clamp(48px, 6.5vw, 128px); }
.bg-sc-h3 { font-size: clamp(40px, 5vw, 96px); }
.bg-sc-h4 { font-size: clamp(32px, 4vw, 72px); }
.bg-sc-body { font-size: 24px; letter-spacing: 0 !important; line-height: 1.1 !important; }
.bg-sc-bodys { font-size: 18px; letter-spacing: 0 !important; line-height: 1.1 !important; }
.bg-sc-cap { font-size: 14px; letter-spacing: 0 !important; line-height: 1.1 !important; }
.bg-sc-mono { font-family: var(--v2-font-mono); font-size: 14px; letter-spacing: 0 !important; text-transform: uppercase; }
.bg-mono-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 16px; }
.bg-mono-cards .bg-plate { min-height: 150px; padding: 24px; }
.bg-terminal { margin: 0; font-family: var(--v2-font-mono); font-size: var(--v2-text-xs); line-height: 1.7; white-space: pre-wrap; color: inherit; }
.bg-cardspec { display: grid; gap: 10px; }
.bg-bignum { font-family: var(--v2-font-display); font-size: 56px; line-height: 1; letter-spacing: -.03em; }

/* --------------------------------------------------------- graphic system */
.bg-states { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
.bg-states--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bg-state { display: grid; gap: 10px; align-content: start; }
.bg-state .bg-plate { aspect-ratio: 5 / 3; min-height: 0; padding: 20px; }
.bg-state p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--bg-mid); }
.bg-cluster { width: 100%; height: auto; }
.bg-orbit { fill: none; stroke: var(--v2-haze); stroke-width: .6; stroke-dasharray: 2 2; opacity: 0; }
.bg-plate--orbits .bg-orbit { opacity: 1; }
.bg-plategrid { width: 100%; height: auto; display: block; }
.bg-traces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 32px; width: 100%; }
.bg-trace { display: grid; gap: 8px; justify-items: start; }
.bg-trace__dot { display: block; width: 56px; height: 56px; border-radius: 50%; background: var(--fill); margin-bottom: 8px;
  box-shadow: 0 0 1.08px var(--fx), 0 0 6.31px color-mix(in srgb, var(--fx) 30%, transparent), inset 0 0 5.66px color-mix(in srgb, var(--fx) 60%, transparent); filter: blur(.4px); }
.bg-pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
.bg-pairs > div { display: grid; gap: 8px; }
.bg-pairs .bg-plate { padding: 0; min-height: 0; }
.bg-halftone { width: 100%; min-height: 280px;
  background:
    radial-gradient(circle at 50% 50%, rgba(192,161,255,.95) 0 1.4px, transparent 1.6px) 0 0 / 8px 8px,
    radial-gradient(ellipse at 60% 45%, rgba(192,161,255,.55), transparent 55%),
    radial-gradient(ellipse at 30% 60%, rgba(114,98,183,.5), transparent 50%);
  mask-image: radial-gradient(ellipse at 55% 50%, var(--v2-onyx) 20%, transparent 78%); -webkit-mask-image: radial-gradient(ellipse at 55% 50%, var(--v2-onyx) 20%, transparent 78%); }
.bg-network { width: 100%; height: auto; }

/* ------------------------------------------------------------ photography */
.bg-portrait { aspect-ratio: 4 / 5; position: relative; overflow: hidden; border: 1px solid var(--bg-hair); }
.bg-portrait--sm { aspect-ratio: 1; width: 96px; }
.bg-portrait--subtle { background: linear-gradient(180deg, #FAFAFA 0%, #EBEBEB 100%); }
.bg-portrait--soft { background: linear-gradient(180deg, #FAFAFA 0%, #BCBFD3 100%); }
.bg-portrait--solid { background: linear-gradient(180deg, #7262B7 0%, #3D2B60 100%); }
.bg-portrait__bust { position: absolute; left: 50%; bottom: -12%; width: 62%; aspect-ratio: 1 / 1.25; transform: translateX(-50%);
  border-radius: 46% 46% 12% 12% / 60% 60% 8% 8%; background: rgba(19,18,21,.18); }
.bg-portrait__bust::before { content: ""; position: absolute; left: 50%; top: -34%; width: 44%; aspect-ratio: 1 / 1.15; transform: translateX(-50%); border-radius: 50%; background: inherit; }
.bg-card { display: grid; gap: 14px; width: 100%; }
.bg-card p { margin: 0; font-size: 16px; line-height: 1.3; letter-spacing: -.01em; }
.bg-card__quote { font-size: 20px !important; }

/* ------------------------------------------------------------ iconography */
.bg-icons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 40px; width: 100%; }
.bg-iconcell { display: grid; gap: 12px; justify-items: center; text-align: center; }
.bg-icon { width: 48px; height: 48px; }
.bg-featrow { display: grid; gap: 16px; width: 100%; }
.bg-feat__lead { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -.01em; }
.bg-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.bg-feat { display: grid; gap: 12px; border-top: 1px solid var(--bg-hair); padding-top: 14px; font-size: 14px; }
.bg-feat .bg-icon { width: 24px; height: 24px; }

/* ----------------------------------------------------------------- layout */
.bg-gridh, .bg-gridv, .bg-grids { position: relative; display: grid; gap: 12px; padding: 20px; width: 100%; }
.bg-gridh { grid-template-columns: repeat(12, 1fr); aspect-ratio: 16 / 9; }
.bg-gridv { grid-template-columns: repeat(6, 1fr); aspect-ratio: 3 / 4; }
.bg-grids { grid-template-columns: repeat(4, 1fr); aspect-ratio: 1; gap: 10px; padding: 4%; }
.bg-gridh > span, .bg-gridv > span, .bg-grids > span { background: rgba(114,98,183,.08); border-left: 1px solid rgba(114,98,183,.3); border-right: 1px solid rgba(114,98,183,.3); }
.bg-grids__safe { position: absolute; inset: 4%; border: 1px dashed rgba(200,40,40,.7); pointer-events: none; }
.bg-gridh__type, .bg-gridv__type, .bg-grids__type { position: absolute; inset: 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }
.bg-gridh__type { inset: 20px calc(20px + 25%) 20px 20px; }
.bg-gridh__h, .bg-gridv__h, .bg-grids__h { margin: 0; font-size: clamp(22px, 3vw, 44px); line-height: 1; letter-spacing: -.02em; }
.bg-gridh__p { margin: 0; font-size: 14px; line-height: 1.45; max-width: 36ch; color: var(--bg-mid); }
.bg-grids__type { inset: 8%; }
.bg-gridv__type { justify-content: space-between; }

/* ------------------------------------------------- full-width moments */
/* The Figma frames, edge to edge. Break out of the chapter padding. */
.bg-moment {
  margin: 56px var(--bg-bleed) 0; padding: 0; max-width: none;
  background: var(--v2-onyx);
}
.bg-moment--light { background: var(--v2-white-smoke); }
.bg-moment img { display: block; width: 100%; height: auto; }
.bg-moment--contain img { max-height: 90vh; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; }
.bg-moment figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: var(--v2-space-16); flex-wrap: wrap;
  padding: 10px var(--bg-pad); border-top: 1px solid var(--bg-hair);
  background: var(--bg-paper); color: var(--bg-mid);
}
.bg-moment + .bg-moment { margin-top: 0; }
.bg-moment + .bg-moment img { border-top: 1px solid var(--bg-hair); }
.bg-chapter__body > .bg-moment:last-child { margin-bottom: calc(-1 * var(--bg-vpad)); }
.bg-chapter__body > .bg-moment:last-child figcaption { border-bottom: 0; }

/* ---------------------------------------------------------------- motion */
.bg-demo { position: relative; width: 100%; min-height: inherit; display: flex; align-items: center; justify-content: center; padding: 48px 24px 56px; }
.bg-demo__hint { position: absolute; left: 20px; bottom: 16px; }
.bg-plate--veil { min-height: 420px; overflow: clip; }
.bg-plate--veil .dveil { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.bg-plate--veil .dveil canvas { display: block; width: 100%; height: 100%; }
.bg-plate--veil .dveil--off { display: none; }
.bg-plate--veil .bg-veil__hole, .bg-plate--veil .bg-demo__hint { position: relative; z-index: 2; }
.bg-plate--veil .bg-demo__hint { position: absolute; color: var(--v2-dusk); }
.bg-plate--engine { padding: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); }

/* The home page's mission stage (markup and behaviour from studio/runs/2026-09-09-home-figma-brandv2). */
.bg-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bg-plate--stage { display: block; padding: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); }
.bg-mission { position: relative; width: 100%; max-width: 720px; margin-inline: auto; }
.mission__right { position: relative; isolation: isolate; width: 100%; aspect-ratio: 908 / 795; container-type: inline-size; }
.mission__right::before, .mission__right::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 1.888px; pointer-events: none;
  box-shadow: 0 0 0 .5px rgba(19,18,21,.07), 0 .5px 1px rgba(0,0,0,.05);
}
.mission__right::before { background: rgba(19,18,21,.055); transform: translate(1cqw, .7cqw) rotate(.45deg); }
.mission__right::after { background: rgba(19,18,21,.085); transform: translate(2cqw, 1.5cqw) rotate(.95deg); }
.mission__stage {
  position: relative; width: 100%; aspect-ratio: 908 / 795; container-type: inline-size; isolation: isolate; overflow: clip;
  background: #ebebeb; border-radius: 1.888px;
  box-shadow: 0 .796px 3.183px rgba(0,0,0,.25), inset 0 0 1.592px .796px rgba(255,255,255,.2);
  --backing-paper: #ebebeb; --backing-ink: #131215; --backing-muted: #808080;
}
.mission .plate { position: absolute; left: 2.79cqw; right: 2.79cqw; top: 2.79cqw; height: 75.3cqw; z-index: 1; }
.mission .plate__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; z-index: 1; transition: opacity .8s cubic-bezier(.22, 1, .36, 1); }
.mission__stage[data-chapter="0"] .plate__canvas[data-canvas="0"],
.mission__stage[data-chapter="1"] .plate__canvas[data-canvas="1"],
.mission__stage[data-chapter="2"] .plate__canvas[data-canvas="2"],
.mission__stage[data-chapter="3"] .plate__canvas[data-canvas="3"] { opacity: 1; z-index: 0; transition: none; }
@media (prefers-reduced-motion: reduce) { .mission .plate__canvas { transition: none; } }
.mission .backing { position: absolute; inset: 0; --u: calc(100cqw / 908); pointer-events: none; overflow: clip; border-radius: inherit; color: var(--backing-ink); font-family: var(--v2-font-mono); z-index: 0; }
.mission .backing__grid { position: absolute; left: calc(var(--u) * 25.32); top: calc(var(--u) * 25.32); width: calc(var(--u) * 857.36); height: calc(var(--u) * 683.77); }
.mission .backing__axes { position: absolute; color: var(--backing-muted); font-size: calc(var(--u) * 13.761); line-height: 1.2; letter-spacing: calc(var(--u) * -.2752); text-transform: uppercase; }
.mission .backing__axis-title { position: absolute; top: calc(var(--u) * 365.67); color: var(--backing-muted); font-size: calc(var(--u) * 13.761); line-height: 1.2; letter-spacing: calc(var(--u) * -.2752); text-transform: uppercase; white-space: nowrap; }
.mission .backing__axis-title--right { left: calc(var(--u) * 879); transform: translate(-50%, -50%) rotate(90deg); }
.mission .backing__x-axis { left: calc(var(--u) * 25.12); top: calc(var(--u) * 658.43); width: calc(var(--u) * 880); display: grid; grid-template-columns: repeat(8, 1fr); text-align: center; }
.mission .backing__y-axis { left: 0; width: calc(var(--u) * 70); top: calc(var(--u) * 39.12); height: calc(var(--u) * 549.6); display: grid; grid-template-rows: repeat(6, 1fr); justify-items: end; align-items: center; text-align: right; }
.mission .backing__readout { position: absolute; left: calc(var(--u) * 205.05); top: calc(var(--u) * 91.31); display: flex; flex-direction: column; color: #aeaeae; font-size: calc(var(--u) * 8); line-height: 1.3; gap: calc(var(--u) * 2.37); white-space: pre; }
.mission .backing__readout span { white-space: pre; }
.mission .backing__footer { position: absolute; left: calc(var(--u) * 25.32); top: calc(var(--u) * 741.09); width: calc(var(--u) * 857); display: flex; align-items: flex-end; justify-content: space-between; }
.mission .backing__mark { width: calc(var(--u) * 26.42); height: calc(var(--u) * 29.0249); overflow: visible; }
.mission .backing__dot { fill: #000; }
.mission .backing__grain { position: absolute; inset: 0; opacity: .05; mix-blend-mode: difference; background: url("assets/plates/mission-grain.jpg") center / cover no-repeat; z-index: 2; }
.mission .backing::after {
  content: ""; position: absolute; inset: 0; background: url("assets/plates/mission-grain.jpg") center / cover no-repeat;
  mix-blend-mode: screen; opacity: calc(var(--lift, 0) * .08); z-index: 2;
  -webkit-mask-image: radial-gradient(circle 22cqw at var(--lift-x, -100cqw) var(--lift-y, -100cqw), #000, transparent);
  mask-image: radial-gradient(circle 22cqw at var(--lift-x, -100cqw) var(--lift-y, -100cqw), #000, transparent);
}
.bg-demo--engine { display: block; padding: 0; }
.eng { position: relative; display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr) minmax(0, 260px); align-items: center; justify-items: center; column-gap: 2rem; }
.eng-field { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.eng-in { display: grid; gap: 1.25rem; width: 100%; margin: 0; padding: 0; list-style: none; }
.eng-node { position: relative; z-index: 2; display: grid; gap: .4rem; width: 100%; max-width: 260px; padding: .875rem 1rem; border: 1px solid var(--v2-text-on-dark-2); background: var(--v2-onyx); color: var(--v2-text-on-dark); font-family: var(--v2-font-mono); font-size: var(--v2-text-base); letter-spacing: var(--v2-tracking-mono); line-height: 1.2; }
.eng-node > span:first-child { text-transform: uppercase; }
.eng-sub { font-family: var(--v2-font-body); font-size: var(--v2-text-sm); letter-spacing: 0; line-height: 1.35; color: var(--v2-dusk); text-wrap: balance; }
.eng-core { position: relative; display: grid; place-items: center; width: clamp(180px, 16vw, 220px); aspect-ratio: 1; padding: 1rem; border: 1px solid var(--v2-text-on-dark-2); background: var(--v2-deep-black); }
.eng-core img { position: relative; z-index: 2; display: block; width: 52%; height: auto; }
@media (max-width: 760px) {
  .bg-plate--engine { padding: 1.25rem 1rem 1rem; }
  .eng { grid-template-columns: 1fr; row-gap: 2rem; }
  .eng-in { justify-items: center; }
  .eng-node { max-width: 320px; text-align: center; justify-items: center; }
  .eng-core { width: 160px; }
}
.bg-demo__lockup { width: min(100%, 320px); }
.bg-demo__lockup svg { display: block; width: 100%; height: auto; fill: currentColor; }
.bg-live__mk circle { fill: currentColor; will-change: transform; }
.bg-demo--rollover { cursor: crosshair; }
.bg-demo--endcard, .bg-demo--reveals { cursor: pointer; }
.bg-demo--endcard:focus-visible, .bg-demo--reveals:focus-visible { outline: 2px solid var(--v2-slate-blue); outline-offset: -2px; }
.bg-demo__reveals { display: grid; gap: 18px; width: 100%; max-width: 560px; }
.bg-demo__rv { margin: 0; font-family: var(--v2-font-display); font-size: clamp(28px, 4vw, 48px); line-height: 1; letter-spacing: -.02em; opacity: 0; animation: none; animation-fill-mode: both; }
.bg-demo--reveals.is-in .bg-demo__rv--blur { animation: bg-reveal-blur .5s var(--v2-ease-out) 0s both; --ry: 6px; }
.bg-demo--reveals.is-in .bg-demo__rv--rise { animation: bg-fan-rise .85s var(--v2-ease-out) .15s both; }
@property --bg-goo-blur { syntax: "<length>"; inherits: false; initial-value: 50px; }
.bg-demo--reveals.is-in .bg-demo__rv--goo { opacity: 1; filter: blur(var(--bg-goo-blur)) url(#goo); animation: bg-goo-in 1.2s var(--v2-ease-out) .3s both, bg-goo-settle 0s linear 1.5s forwards; }
@keyframes bg-reveal-blur { 0% { filter: blur(.25em); opacity: 0; transform: translateY(var(--ry, 0)); } 100% { filter: blur(0); opacity: 1; transform: translateY(0); } }
@keyframes bg-fan-rise { 0% { transform: translateY(26px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes bg-goo-in { 0% { --bg-goo-blur: .78em; } 100% { --bg-goo-blur: 0px; } }
@keyframes bg-goo-settle { 100% { filter: none; } }
.bg-demo--iris { padding: 0; min-height: 0; aspect-ratio: 1280 / 761; cursor: crosshair; }
.bg-iris { position: absolute; inset: 0; background: var(--v2-onyx) url("assets/plates/iris-field.webp") center / cover no-repeat; }
.bg-iris__aurora { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bg-demo--iris .bg-demo__hint { color: var(--v2-dusk); }
.bg-code {
  margin: 0; padding: 20px 24px; overflow-x: auto; border: 1px solid var(--bg-hair); background: var(--v2-white-smoke);
  font-family: var(--v2-font-mono); font-size: 12px; line-height: 1.6; color: var(--bg-ink);
}
.bg-chapter[data-field="dark"] .bg-code, .bg-plate--dark .bg-code { background: var(--v2-shadow); }
.bg-code code { font: inherit; }

/* ----------------------------------------------------------------- grain */
.bg-grain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--v2-space-16); }
.bg-block--grain .bg-block__label h3 { font-size: 17.6px; }
.bg-block--grain .bg-block__label p { font-size: 11.2px; }
.bg-grain__f { margin: 0; display: grid; gap: 8px; }
.bg-grain__f img { display: block; width: 100%; height: auto; border: 1px solid var(--bg-hair); }

/* ---------------------------------------------------------------- assets */
.bg-dl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bg-hair); }
.bg-dl a { display: grid; grid-template-columns: 240px minmax(0, 1fr) 56px; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--bg-hair); text-decoration: none; font-size: 14px; }
.bg-dl a:hover .bg-dl__label { text-decoration: underline; text-underline-offset: 3px; }
.bg-dl__meta { color: var(--bg-mid); }
.bg-dl__ext { font-family: var(--v2-font-mono); font-size: var(--v2-text-xs); letter-spacing: var(--v2-tracking-mono); color: var(--bg-mid); text-align: right; }

/* -------------------------------------------------------------- colophon */
.bg-colophon { padding: 96px var(--bg-pad); }
.bg-contact { border: 1px solid var(--bg-hair); padding: 40px; display: grid; gap: 20px; justify-items: start; max-width: 40rem; }
.bg-contact__t { margin: 0; font-size: var(--v2-p1); line-height: var(--v2-p1-lh); }
.bg-contact__t a { text-decoration: underline; text-underline-offset: 3px; }

.bg-page .ltv2-footer { max-width: 100%; overflow-x: clip; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .bg-page { --bg-label-w: 200px; --bg-vpad: 40px; }
  .bg-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bg-misuse, .bg-combos, .bg-states, .bg-pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .bg-cover { padding-top: calc(var(--v2-nav-height) + 40px); min-height: 0; }
  .bg-block { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
  .bg-hier__row, .bg-rows li, .bg-rows--plain li, .bg-dl a, .bg-values li { grid-template-columns: 1fr; gap: 6px; }
  .bg-rows__n { display: none; }
  .bg-dl__ext { text-align: left; }
}
@media (max-width: 1660px) {
  /* No room beside the field: the rail collapses to dots in the margin and
     reveals its labels on hover or focus so it never sits on the copy */
  .bg-rail { left: var(--v2-grid-margin); }
  .bg-rail__t { display: none; }
  .bg-rail:hover .bg-rail__t, .bg-rail:focus-within .bg-rail__t { display: inline; }
}
@media (max-width: 640px) {
  .bg-page { --bg-vpad: 24px; }
  .bg-rail { left: 6px; }
  .bg-rail__t, .bg-rail:hover .bg-rail__t, .bg-rail:focus-within .bg-rail__t { display: none; }
  .bg-tagline__solo { font-size: clamp(14px, 4.6vw, 22px); white-space: nowrap; }
  .bg-contact { padding: 24px; }
  .bg-split, .bg-grid3, .bg-two-vantages, .bg-found, .bg-thesis, .bg-misuse, .bg-combos, .bg-states, .bg-states--2, .bg-pairs,
  .bg-mono-cards, .bg-donts--2, .bg-traces, .bg-partners, .bg-feats, .bg-grain { grid-template-columns: 1fr; }
  .bg-fields { grid-template-columns: 1fr 1fr; }
  .bg-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bg-scale, .bg-favs { gap: 20px; padding: 20px; }
  .bg-favs { align-items: flex-start; }
  .bg-fav { --s-max: 96px; }
  .bg-sc-h0 { font-size: clamp(40px, 12vw, 64px); }
  .bg-sc-h2 { font-size: clamp(32px, 10vw, 56px); }
  .bg-sc-h3 { font-size: clamp(28px, 9vw, 48px); }
  .bg-plate { padding: 20px; }
  .bg-scale-row { grid-template-columns: 1fr; gap: 6px; }
  .bg-partners .bg-tag { grid-row: auto; }
  .bg-partner { flex-wrap: wrap; height: auto; gap: 12px; }
  .bg-partner svg { height: 22px; }
  .bg-tagline--wordmark { flex-wrap: wrap; gap: 12px; }
  .bg-tagline--wordmark .bg-tagline__t { padding-left: 0; border-left: 0; font-size: 17px; }
  .bg-moment figcaption { padding: 8px var(--bg-pad); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-rail__dot, .bg-rail__link, .bg-rail, .bg-toast { transition: none; }
  .js .bg-cover.has-veil h1 { filter: none; }
  .bg-demo__rv, .bg-demo--reveals.is-in .bg-demo__rv { animation: none; opacity: 1; }
}
@keyframes bg-reveal-fade { from { opacity: 0; } to { opacity: 1; } }
