/* SWD Case study brand — logo tile, palette swatches, type specimens. */
.swd.swd-casebrand { --brand: var(--a); }
.swd-casebrand .cbr { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.swd-casebrand .cbr__tile { position: relative; margin: 0; padding: clamp(22px, 2.6vw, 34px); border-radius: 30px; background: var(--card); box-shadow: inset 0 0 0 1px var(--edge); overflow: hidden; }
.swd-casebrand .cbr__cap { display: flex; font-style: normal; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--tink, var(--muted)); opacity: .75; }
.swd-casebrand .cbr__cap--dark { color: var(--muted); opacity: 1; }
.swd-casebrand .cbr__cap span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; }

.swd-casebrand .cbr__logo { grid-column: span 5; display: flex; flex-direction: column; min-height: 320px; background: var(--tile, #fff); }
.swd-casebrand .cbr__logo img { margin: auto; max-width: min(78%, 340px); max-height: 150px; width: auto; height: auto; object-fit: contain; }

.swd-casebrand .cbr__pal { grid-column: span 7; display: flex; flex-direction: column; gap: 18px; }
.swd-casebrand .cbr__sw { flex: 1; display: flex; gap: 8px; min-height: 230px; }
.swd-casebrand .cbr__sw li { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 16px 14px; border-radius: 18px; background: var(--c); color: var(--k); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: flex-grow .45s cubic-bezier(.2, .7, .2, 1); }
.swd-casebrand .cbr__sw li:hover { flex-grow: 1.9; }
.swd-casebrand .cbr__sw b { font-size: 15px; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swd-casebrand .cbr__sw code { padding: 0; background: none; font: 500 12.5px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: inherit; opacity: .8; }

.swd-casebrand .cbr__type { grid-column: span 7; display: flex; flex-direction: column; gap: 22px; }
.swd-casebrand .cbr__type--wide { grid-column: span 12; }
.swd-casebrand .cbr__type--body { grid-column: span 5; }
.swd-casebrand .cbr__face { display: flex; align-items: flex-end; gap: 22px; }
.swd-casebrand .cbr__aa { font-size: clamp(84px, 9vw, 140px); line-height: .82; letter-spacing: -.03em; color: #fff; }
.swd-casebrand .cbr__type--body .cbr__aa { color: var(--brand); }
.swd-casebrand .cbr__meta { display: grid; gap: 4px; padding-bottom: 6px; font-size: 14px; color: var(--muted); }
.swd-casebrand .cbr__meta b { font-size: 18px; font-weight: 500; color: #fff; }
.swd-casebrand .cbr__sample { padding-top: 22px; border-top: 1px solid var(--edge); font-size: clamp(26px, 2.8vw, 40px); line-height: 1.12; letter-spacing: -.01em; color: #fff; text-wrap: balance; }
.swd-casebrand .cbr__type--wide .cbr__sample { font-size: clamp(28px, 3.6vw, 54px); }
.swd-casebrand .cbr__body { padding-top: 22px; border-top: 1px solid var(--edge); font-size: 17px; line-height: 1.6; color: #C9D1E3; letter-spacing: 0; }

@media (max-width: 980px) {
	.swd-casebrand .cbr__logo, .swd-casebrand .cbr__pal, .swd-casebrand .cbr__type, .swd-casebrand .cbr__type--body { grid-column: span 12; }
	.swd-casebrand .cbr__logo { min-height: 220px; }
}
@media (max-width: 640px) {
	.swd-casebrand .cbr { gap: 12px; }
	.swd-casebrand .cbr__tile { border-radius: 24px; padding: 20px; }
	.swd-casebrand .cbr__sw { flex-direction: column; min-height: 0; gap: 6px; }
	.swd-casebrand .cbr__sw li { flex-direction: row; justify-content: space-between; align-items: center; min-height: 54px; padding: 12px 16px; border-radius: 14px; }
	.swd-casebrand .cbr__sw li:hover { flex-grow: 1; }
	.swd-casebrand .cbr__face { gap: 16px; }
}
