/*
 * Design B (the direction the client chose on 2026-11-21): components the main stylesheet does not carry.
 * Generated by tools/build_design_b_css.py; edit the generator or tools/design-b-extra.css, not this file.
 */
.chip { display: inline-flex; align-items: center; gap: 12px; color: var(--fg-2); }
.chip__tag { position: relative; isolation: isolate; padding: 4px 9px 3px 8px; color: #000; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.chip__tag::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #d7dde1; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%); }
.lbar { display: block; height: 14px; background: var(--light); }
.lbar--r { background: var(--light-r); }
.lbar--thin { height: 6px; }
.hero__copy .chip { margin-bottom: 26px; }
.meter { width: 100%; max-width: 420px; }
.meter__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 20px; margin-bottom: 14px; }
.meter__row .t-label { white-space: nowrap; }
.meter__val { white-space: nowrap; font-family: var(--sans); font-stretch: 118%; font-weight: 260; font-size: clamp(26px, 2.4vw, 34px); line-height: 1; letter-spacing: -.02em; color: var(--fg); }
.meter__bar { position: relative; height: 36px; background: var(--light); }
.meter__ticks { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(10, 1fr); }
.meter__ticks span { border-right: 1px solid rgba(0, 0, 0, .55); }
.meter__ticks span:last-child { border-right: 0; }
.meter__foot { margin-top: 12px; display: flex; justify-content: space-between; }
@media (min-width: 960px) {
	.meter { width: clamp(300px, 28vw, 420px); margin-bottom: 8px; }
}
.strip { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.strip__cell { display: flex; align-items: center; justify-content: center; min-height: 76px; padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; color: #8f969b; font-size: 14px; font-stretch: 112%; letter-spacing: .01em; }
.strip__cell:nth-child(2n) { border-right: 0; }
.strip__cell--label { grid-column: 1 / -1; border-right: 0; min-height: 52px; }
.strip__cell:last-child:nth-child(even) { grid-column: 1 / -1; border-right: 0; }
@media (min-width: 760px) {
	.strip { grid-template-columns: 1.1fr repeat(5, 1fr); }
	.strip__cell,
	.strip__cell:nth-child(2n) { border-right: 1px solid var(--line); border-bottom: 0; min-height: 88px; }
	.strip__cell:last-child,
	.strip__cell:last-child:nth-child(even) { grid-column: auto; border-right: 0; }
	.strip__cell--label { grid-column: auto; min-height: 88px; }
}
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.stat { padding: clamp(28px, 3.4vw, 44px) var(--pad); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.stat:nth-child(2n) { border-right: 0; }
.stat .t-num { display: block; }
.stat .t-num sup { font-size: .42em; vertical-align: .9em; margin-left: .08em; color: var(--steel); font-weight: 300; }
.stat__label { display: block; margin-top: 14px; font-size: 14px; color: var(--fg-3); }
@media (min-width: 900px) {
	.stats { grid-template-columns: repeat(4, 1fr); }
	.stat,
	.stat:nth-child(2n) { border-right: 1px solid var(--line); border-bottom: 0; }
	.stat:last-child { border-right: 0; }
}
.litgrid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.lcell { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: clamp(36px, 4.4vw, 60px) var(--pad); border-bottom: 1px solid var(--line); outline-offset: -4px; }
.lcell:last-child { border-bottom: 0; }
.lcell::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lit); opacity: 0; transition: opacity .35s var(--ease); }
.lcell.is-lit::before { opacity: 1; }
.lcell__seal { display: grid; place-items: center; width: 96px; height: 96px; border: 1px solid var(--line-2); border-radius: 50%; font-family: var(--sans); font-stretch: 122%; font-weight: 380; font-size: 15px; letter-spacing: .02em; color: var(--fg); line-height: 1.15; text-align: center; transition: border-color .35s var(--ease), color .35s var(--ease); }
.lcell__seal small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--fg-3); margin-top: 4px; }
.lcell__name { font-size: 16px; font-weight: 500; font-stretch: 106%; color: var(--fg); }
.lcell__text { max-width: 380px; font-size: 14px; line-height: 1.6; color: var(--fg-3); }
.lcell__region { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.lcell.is-lit .lcell__seal { border-color: rgba(0, 0, 0, .55); color: #050607; }
.lcell.is-lit .lcell__seal small,
.lcell.is-lit .lcell__region { color: #1d2326; }
.lcell.is-lit .lcell__name { color: #050607; }
.lcell.is-lit .lcell__text { color: #1f262a; }
@media (max-width: 719px) {
	.lcell { display: grid; grid-template-columns: 72px 1fr; gap: 4px 18px; align-items: start; text-align: left; padding: 26px var(--pad); }
	.lcell__seal { grid-row: 1 / span 3; width: 72px; height: 72px; font-size: 13px; }
	.lcell__seal small { font-size: 10.5px; letter-spacing: .04em; margin-top: 2px; }
	.lcell__region { order: -1; }
	.lcell__text { max-width: none; }
}
@media (min-width: 720px) {
	.litgrid { grid-template-columns: 1fr 1fr; }
	.lcell { border-right: 1px solid var(--line); }
	.lcell:nth-child(2n) { border-right: 0; }
	.lcell:last-child { border-bottom: 1px solid var(--line); }
	.lcell:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (min-width: 1100px) {
	.litgrid { grid-template-columns: repeat(3, 1fr); }
	.lcell,
	.lcell:nth-child(2n) { border-right: 1px solid var(--line); }
	.lcell:nth-child(3n) { border-right: 0; }
	.lcell:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
	.lcell:nth-last-child(-n+3) { border-bottom: 0; }
}
.fsplit { display: grid; gap: 56px; align-items: center; }
.fsplit .shead { margin-bottom: 32px; }
.ticks { display: grid; gap: 16px; margin-top: 34px; }
.ticks li { display: grid; grid-template-columns: 10px 1fr; gap: 16px; align-items: baseline; color: var(--fg-2); font-size: 15px; }
.ticks li::before { content: ""; width: 8px; height: 8px; background: #c9d3d9; transform: translateY(-1px); }
.steps-bars { display: grid; gap: 10px; }
.sbar { position: relative; display: flex; align-items: center; justify-content: flex-end; min-height: 46px; margin-left: auto; padding: 0 16px; background: var(--light); color: #000; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; transition: filter .25s var(--ease); }
.sbar:nth-child(1) { width: 52%; }
.sbar:nth-child(2) { width: 38%; }
.sbar:nth-child(3) { width: 70%; }
.sbar:nth-child(4) { width: 58%; }
.sbar:nth-child(5) { width: 86%; }
.sbar:nth-child(6) { width: 64%; }
.sbar:nth-child(7) { width: 100%; }
.sbar:nth-child(8) { width: 76%; }
.sbar__name { position: relative; z-index: 1; }
@media (hover: hover) {
	.sbar:hover { filter: brightness(1.12); }
}
@media (max-width: 999px) {
	.sbar:nth-child(1) { width: 74%; }
	.sbar:nth-child(2) { width: 64%; }
	.sbar:nth-child(3) { width: 84%; }
	.sbar:nth-child(4) { width: 78%; }
	.sbar:nth-child(5) { width: 94%; }
	.sbar:nth-child(6) { width: 82%; }
	.sbar:nth-child(7) { width: 100%; }
	.sbar:nth-child(8) { width: 88%; }
}
@media (min-width: 1000px) {
	.fsplit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 88px); }
	.fsplit .shead { margin-bottom: 0; }
}
.splits { display: grid; gap: 20px; }
.split { display: grid; border: 1px solid var(--line); background: var(--bg-2); }
.split__body { display: flex; flex-direction: column; justify-content: space-between; gap: 36px; padding: clamp(28px, 3.4vw, 48px); }
.split__quote { margin: 0; color: var(--fg); font-size: clamp(20px, 1.9vw, 27px); font-stretch: 108%; font-weight: 300; line-height: 1.32; letter-spacing: -.01em; }
.split__who { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.split__who strong { display: block; color: var(--fg); font-size: 15px; font-weight: 500; }
.split__who span { font-size: 13px; color: var(--fg-3); }
.split__art { position: relative; min-height: 240px; overflow: hidden; background: var(--lit); }
@media (min-width: 900px) {
	.split { grid-template-columns: 1fr minmax(240px, .42fr); }
	.split--flip { grid-template-columns: minmax(240px, .42fr) 1fr; }
	.split--flip .split__art { order: -1; }
	.split__art { min-height: 300px; }
}
.ftr__bars { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 22px 22px; border-bottom: 1px solid var(--line); }
.ftr__bars span { background: var(--light); }
.ftr__bars span:nth-child(1) { grid-column: 1; grid-row: 1; margin-right: 6%; }
.ftr__bars span:nth-child(2) { grid-column: 2; grid-row: 1; margin-right: 18%; margin-left: -6%; }
.ftr__bars span:nth-child(3) { grid-column: 3; grid-row: 1; margin-left: -18%; }
.ftr__bars span:nth-child(4) { grid-column: 1 / span 1; grid-row: 2; margin-left: 12%; margin-right: -12%; }
.ftr__bars span:nth-child(5) { grid-column: 2; grid-row: 2; margin-left: 12%; margin-right: -4%; }
.ftr__bars span:nth-child(6) { grid-column: 3; grid-row: 2; margin-left: 4%; }
.ftr__mark { position: relative; padding: clamp(10px, 2vw, 30px) var(--pad) 0; pointer-events: none; user-select: none; }
.ftr__mark svg { width: 100%; height: auto; }
.fsplit__more { margin-top: 36px; }
.capbars .meter__row { margin-bottom: 16px; }
.steps-bars--sm { gap: 7px; }
.steps-bars--sm .sbar { min-height: 32px; min-width: max-content; padding: 0 12px; font-size: 10.5px; }
.capbars .t-label { display: inline; margin: 0; }
.shead + .splits { margin-top: clamp(40px, 5vw, 64px); }
@media print {
	.ftr__bars,
	.ftr__mark { display: none !important; }
}

/* Photo split cards (the visuals pass of 2026-11-08). */
.split__art--photo { min-height: 0; aspect-ratio: 1214 / 887; background: var(--bg); }
@media (min-width: 900px) {
	.split--photo { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
	.split--photo.split--flip { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
	.split__art--photo { aspect-ratio: auto; min-height: 340px; }
}

/* The portfolio as the reference's recognition row: ten sculptures in one ruled band. */
.showcase { padding-bottom: calc(var(--sec) * .55); }
.showrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.showrow__item { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 26px 12px 28px; text-align: center; border-bottom: 1px solid var(--line); }
.showrow__item:nth-child(odd) { border-right: 1px solid var(--line); }
.showrow__art { display: block; width: 100%; max-width: 150px; height: 110px; margin-bottom: 12px; }
.showrow__art .vis,
.showrow__art img { width: 100%; height: 100%; }
.showrow__art img { object-fit: contain; }
.showrow__num { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--fg-3); }
.showrow__name { font-size: 13px; line-height: 1.35; color: var(--fg-2); }
@media (min-width: 760px) {
	.showrow { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.showrow__item,
	.showrow__item:nth-child(odd) { border-right: 1px solid var(--line); }
	.showrow__item:nth-child(5n) { border-right: 0; }
	.showrow__item:nth-last-child(-n+5) { border-bottom: 0; }
}

/* The reference's centred closing band (no image). */
.cta--center { text-align: center; }

/* Each domain in the row links to its page. */
.showrow__link { display: grid; justify-items: center; gap: 6px; width: 100%; color: inherit; }
.showrow__art img { transition: filter .25s var(--ease); }
@media (hover: hover) {
	.showrow__link:hover .showrow__name { color: var(--fg); }
	.showrow__link:hover .showrow__art img { filter: brightness(1.12); }
}

/* ---------- Design B on the inner pages (2026-11-21) ---------- */

/* Inner hero: the chip above the headline, the copy held to a readable width; beside a meter or the
   capability bars the headline steps down so a long title holds four lines. */
.ihero__copy .chip { margin-bottom: 24px; }
.ihero--texture .ihero__copy { max-width: 860px; }
.ihero--texture .ihero__in--aside .ihero__copy { max-width: none; }
@media (min-width: 1000px) {
	.ihero--texture .ihero__in--aside .t-display { font-size: clamp(36px, 3.2vw + 14px, 64px); }
	/* At least 340px beside the copy, so the longest capability label still starts on the bright half. */
	.ihero--texture .ihero__in--aside { grid-template-columns: minmax(0, 1fr) clamp(340px, 30vw, 400px); }
}

/* A strip with as many cells as it has items (the frameworks of a domain). */
@media (min-width: 760px) {
	.strip--n { grid-template-columns: minmax(150px, 1.1fr) repeat(var(--n, 5), minmax(0, 1fr)); }
}

/* Lit grid in two columns (four items: challenges, principles). */
@media (min-width: 1100px) {
	.litgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.litgrid--2 .lcell:nth-child(n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
	.litgrid--2 .lcell:nth-child(2n) { border-right: 0; }
	.litgrid--2 .lcell:nth-last-child(-n+2) { border-bottom: 0; }
}
/* A seal that carries a number instead of a framework code. */
.lcell__seal--num > span { font-size: 22px; font-stretch: 118%; font-weight: 260; letter-spacing: 0; }

/* Domain page: the sculpture beside the numbered capabilities. */
.cover { display: grid; gap: 36px; margin-top: clamp(40px, 5vw, 64px); }
.cover__fig { justify-self: center; width: min(78%, 400px); margin: 0; }
.cover__fig img { width: 100%; height: auto; }
.caps { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.caps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 12px; padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.caps__n { grid-row: 1 / span 2; padding-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--fg-3); }
.caps__t { margin: 0; color: var(--fg); font-size: 17px; font-weight: 420; font-stretch: 106%; line-height: 1.35; }
.caps__x { margin: 0; color: var(--fg-3); font-size: 14px; line-height: 1.55; }
@media (min-width: 1000px) {
	.cover { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(40px, 5vw, 88px); }
	.cover__fig { position: sticky; top: calc(var(--hdr) + 40px); width: 100%; max-width: 460px; }
}

/* Three related domains: one ruled row of three at every width. */
.showrow--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.showrow--3 .showrow__item { border-right: 1px solid var(--line); border-bottom: 0; }
.showrow--3 .showrow__item:nth-child(3n) { border-right: 0; }
@media (max-width: 599px) {
	.showrow--3 .showrow__art { height: 80px; }
	.showrow--3 .showrow__name { font-size: 12px; }
}
@media (min-width: 900px) {
	.showrow--3 .showrow__art { max-width: 220px; height: 160px; }
	.showrow--3 .showrow__name { font-size: 14px; }
}

/* A statement set large and centred (about). */
.statement--center { margin-left: auto; margin-right: auto; text-align: center; text-wrap: balance; }

/* Single photo split card under a section head. */
.shead + .splits { margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 599px) {
	.statement--center { text-align: left; }
}

/* A stepped bar is never shorter than about twice its label (--chars characters, printed by the template),
   so every letter starts on the bright half of the light: the gradient reaches readable grey at 52%. */
.sbar { min-width: min(100%, calc((var(--chars, 0) * (1ch + .12em) + 32px) * 2.2)); }
.steps-bars--sm .sbar { min-width: min(100%, calc((var(--chars, 0) * (1ch + .12em) + 24px) * 2.2)); }

/* The lit cell's light holds its mid-grey a little longer (84%, not 78%), so the last line of a long
   text in a tall cell still reads at 4.5:1 or better. */
.lcell::before { background: linear-gradient(180deg, #eef2f4 0%, #c3cdd3 40%, #8e9ca5 84%, #23282b 100%); }

/* Columns that end in a link (the support services on a domain page) keep the links on one line across
   the row, however long the text above them runs. */
.rcols > div { display: flex; flex-direction: column; }
.rcols .lnk { align-self: flex-start; margin-top: auto; padding-top: 16px; }
