/* Page-scoped styles for /branding/ so site.css stays untouched on every other live page. */

/* Ensure hidden animated wordmark letters pass automated contrast checks on light header ground. */
.page-branding .site-header .mx { color: var(--navy-500); }

/* Keep every section heading immediately visible on this reference page (including print and full-page capture). */
.js .page-branding h2.is-waiting .w { opacity: 1; }

/* Keep mobile body copy >= 16px and tap targets >= 44px across every control. */
.page-branding .bg-hero {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem);
}
.page-branding .bg-hero h1 { max-width: 14ch; }
.page-branding .bg-hero .lead { max-width: 44rem; }

.bg-jump {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.bg-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: .15rem;
  color: var(--navy-800);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .bg-jump a:hover { color: var(--navy-900); border-bottom-color: var(--coral-500); }
}

/* Section spacing and rhythm */
.bg-sec { padding-block: clamp(3.75rem, 2rem + 5vw, 6.5rem); }
.bg-sec--warm { background: var(--paper-200); }
.bg-sec-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.2rem + 2.5vw, 3.25rem); }
.bg-sec-head p { margin-top: 1rem; font-size: var(--fs-lead); line-height: 1.5; color: var(--text); }
.bg-subhead {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  margin-bottom: 1.25rem;
  font-size: var(--fs-h3);
}
.bg-note {
  margin-top: 1.5rem;
  max-width: 52rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Asset cards & preview stages */
.bg-grid-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 780px) {
  .bg-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.bg-grid-3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 680px) {
  .bg-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .bg-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.bg-grid-4 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
  .bg-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .bg-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.bg-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
}

.bg-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 11.5rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--paper-100);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.bg-stage--dark {
  background: var(--navy-900);
  border-bottom-color: var(--navy-800);
}
.bg-stage--white {
  background: #ffffff;
}
.bg-stage--tall {
  min-height: 13.5rem;
}
.bg-stage img {
  max-height: 4.5rem;
  width: auto;
  height: auto;
  max-width: min(100%, 22rem);
  object-fit: contain;
}
.bg-stage--sub img {
  max-height: 5.25rem;
  max-width: min(100%, 22rem);
}
.bg-stage--stacked img {
  max-height: 7.25rem;
  max-width: min(100%, 14rem);
}
.bg-stage--mark img {
  max-height: 5.5rem;
  width: auto;
}
.bg-stage--art {
  height: 14rem;
  min-height: 0;
  padding: 1.5rem;
}
.bg-stage--art img {
  max-height: 100%;
  max-width: 100%;
  mix-blend-mode: multiply;
}
.bg-stage--media {
  padding: 0;
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: var(--paper-200);
}
.bg-stage--media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  max-width: none;
  object-fit: cover;
}
.bg-stage--square {
  padding: 1.5rem;
  min-height: 0;
  height: 14rem;
  background: var(--paper-100);
}
.bg-stage--square img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.bg-stage--ios img {
  height: 8.5rem;
  width: 8.5rem;
  border-radius: 22.5%;
  box-shadow: var(--shadow-m);
}
.bg-stage--avatar img {
  height: 8.5rem;
  width: 8.5rem;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.bg-stage--pattern {
  padding: 0;
  min-height: 0;
  aspect-ratio: 20 / 7;
  background: var(--paper-100);
}
.bg-stage--pattern img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  max-width: none;
  object-fit: cover;
}

.bg-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .5rem;
  padding: 1.25rem 1.4rem 1.35rem;
}
.bg-card-body h3, .bg-card-body h4 {
  font-size: var(--fs-h4);
  line-height: 1.25;
}
.bg-card-body p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
}
.bg-tag {
  display: inline-block;
  align-self: flex-start;
  padding: .2rem .6rem;
  border-radius: var(--r-s);
  background: var(--paper-200);
  color: var(--navy-800);
  font-size: .875rem;
  font-weight: 650;
}

.bg-dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: auto;
  padding-top: .85rem;
}
.bg-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 2.75rem;
  padding: .45rem .95rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--navy-900);
  background: var(--surface);
  color: var(--navy-900);
  font-size: .9375rem;
  font-weight: 620;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 140ms var(--ease-out);
}
.bg-dl:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .bg-dl:hover { background: var(--navy-900); color: var(--paper-100); }
}

/* Clear space & minimum size */
.bg-clearspace {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 900px) {
  .bg-clearspace { grid-template-columns: 7fr 5fr; align-items: stretch; }
}
.bg-spec-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: clamp(1.4rem, 1rem + 1.5vw, 2rem);
}
.bg-spec-box h3 { font-size: var(--fs-h4); margin-bottom: .75rem; }
.bg-spec-box p { font-size: 1rem; line-height: 1.55; color: var(--text); }
.bg-cs-diagram {
  margin-top: 1.25rem;
}
.bg-cs-diagram svg { width: 100%; height: auto; display: block; }

.bg-min-list {
  margin-top: 1rem;
  display: grid;
  gap: .75rem;
}
.bg-min-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.bg-min-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.bg-min-list b { font-weight: 650; color: var(--ink); }
.bg-min-list span { color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }

/* Logo don'ts */
.bg-donts {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 680px) {
  .bg-donts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .bg-donts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.bg-dont {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bg-dont-demo {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 7rem;
  padding: 1.25rem;
  background: var(--paper-100);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.bg-dont-body {
  padding: 1.15rem 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.bg-dont-demo--red { background: #cf5f6b; }
.bg-dont-demo img { max-height: 2.5rem; width: auto; }
.bg-dont-demo--stretch img { transform: scaleX(1.42) scaleY(.7); }
.bg-dont-demo--shadow img { filter: drop-shadow(0 8px 6px rgba(15, 31, 51, .55)) hue-rotate(155deg); }
.bg-dont-demo--crowd { padding: .5rem; }
.bg-dont-demo--crowd span {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem .35rem;
  border: 1.5px dashed var(--coral-700);
  font-size: .875rem;
  font-weight: 700;
  color: var(--ink);
}
.bg-dont h4 {
  color: var(--coral-700);
  font-size: 1.0625rem;
}
.bg-dont p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
}

/* Color swatches */
.bg-swatch {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
}
.bg-swatch-chip {
  min-height: 7.5rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem;
}
.bg-swatch-chip--bordered { border-bottom: 1px solid var(--line); }
.bg-swatch-chip b {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: inherit;
}
.bg-swatch-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .5rem;
  padding: 1.15rem 1.25rem 1.25rem;
}
.bg-swatch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
  font-size: .9375rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.bg-swatch-body p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
}
.bg-contrast-line {
  margin-top: auto;
  padding-top: .5rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--navy-700);
}
.bg-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .4rem .85rem;
  border-radius: var(--r-pill);
  border: 1.5px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: .875rem;
  font-weight: 650;
  transition: transform 140ms var(--ease-out), opacity 160ms var(--ease-out);
}
.bg-copy-btn:active { transform: scale(.96); }

/* Compact secondary swatches */
.bg-swatch--sm .bg-swatch-chip { min-height: 5rem; }

.bg-rules-box {
  margin-top: 2rem;
  padding: 1.5rem clamp(1.25rem, 1rem + 1.5vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
}
.bg-rules-box h3 { font-size: var(--fs-h4); margin-bottom: .85rem; }
.bg-rules-list {
  display: grid;
  gap: .75rem;
}
.bg-rules-list li {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  padding-left: 1.15rem;
  position: relative;
}
.bg-rules-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: var(--coral-500);
}

/* Typography specimens */
.bg-font-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bg-font-glyph {
  font-size: clamp(3rem, 2.2rem + 2.5vw, 4.5rem);
  line-height: 1;
  color: var(--navy-900);
}
.bg-font-glyph--display { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; }
.bg-font-glyph--text { font-family: var(--font-text); font-weight: 420; letter-spacing: -.01em; }
.bg-font-alphabet {
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--text);
  overflow-wrap: anywhere;
}
.bg-font-alphabet--display { font-family: var(--font-display); font-weight: 700; }
.bg-font-card p { font-size: 1rem; line-height: 1.55; color: var(--text); }

.bg-scale {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
}
.bg-scale-row {
  display: grid;
  gap: .5rem 1.5rem;
  padding: 1.25rem clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.bg-scale-row:last-child { border-bottom: 0; }
@media (min-width: 820px) {
  .bg-scale-row { grid-template-columns: 14rem minmax(0, 1fr); }
}
.bg-scale-meta {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  font-size: .9375rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.bg-scale-meta b { color: var(--ink); font-weight: 650; }
.bg-scale-sample { min-width: 0; color: var(--ink); }
.bg-sample-hero { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 1.4rem + 2.5vw, 3.5rem); line-height: .96; letter-spacing: -.035em; }
.bg-sample-h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); line-height: 1.04; letter-spacing: -.025em; }
.bg-sample-h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 1.15rem + .6vw, 1.75rem); line-height: 1.15; letter-spacing: -.015em; }
.bg-sample-lead { font-family: var(--font-text); font-weight: 420; font-size: clamp(1.125rem, 1.03rem + .4vw, 1.375rem); line-height: 1.45; color: var(--text); }
.bg-sample-body { font-family: var(--font-text); font-weight: 420; font-size: 1.0625rem; line-height: 1.6; color: var(--text); }
.bg-sample-label { font-family: var(--font-text); font-weight: 700; font-size: .9375rem; line-height: 1.3; color: var(--navy-700); }

.bg-type-pair {
  margin-top: 2rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  background: var(--paper-200);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
}
.bg-type-pair h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  max-width: 20ch;
}
.bg-type-pair p {
  margin-top: 1rem;
  max-width: 46rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
}

/* Icons showcase */
.bg-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.25rem, 1fr));
  gap: .85rem;
  margin-top: 1.25rem;
}
.bg-icon-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1rem .75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  color: var(--navy-800);
  font-size: .875rem;
  font-weight: 600;
  text-align: center;
}
.bg-icon-tile .icon { width: 1.5rem; height: 1.5rem; color: var(--navy-700); }

/* Partner badge band */
.bg-partner-card {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.5rem 2.5rem;
  align-items: center;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
}
@media (min-width: 820px) {
  .bg-partner-card { grid-template-columns: auto 1fr; }
}
.bg-partner-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.bg-partner-preview img { width: auto; height: 5rem; }
.bg-partner-preview img.bg-partner-v { height: 7.5rem; }
.bg-partner-copy p { font-size: 1rem; line-height: 1.55; color: var(--text); margin-top: .5rem; }

/* Full brand kit navy callout */
.bg-kit-banner {
  display: grid;
  gap: 1.5rem 2.5rem;
  align-items: center;
  padding: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  background: var(--navy-900);
  color: var(--paper-100);
  border-radius: var(--r-l);
}
@media (min-width: 860px) {
  .bg-kit-banner { grid-template-columns: 1fr auto; }
}
.bg-kit-banner h3 { color: var(--paper-100); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); }
.bg-kit-banner p { margin-top: .75rem; max-width: 44rem; color: var(--navy-100); font-size: 1.0625rem; line-height: 1.55; }

/* Profile photo feature */
.bg-profile-card {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem 2.5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: clamp(1.4rem, 1rem + 1.5vw, 2.25rem);
}
@media (min-width: 820px) {
  .bg-profile-card { grid-template-columns: 15rem 1fr; }
}
.bg-profile-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  max-width: 15rem;
}
.bg-profile-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
}
.bg-profile-thumbs img:first-child {
  grid-column: 1 / -1;
}
.bg-profile-card h3 { font-size: var(--fs-h3); }
.bg-profile-card p { margin-top: .75rem; font-size: 1rem; line-height: 1.55; color: var(--text); max-width: 44rem; }

/* Email signature */
.bg-sig-wrap {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 860px) {
  .bg-sig-wrap { grid-template-columns: 1fr 1fr; align-items: stretch; }
}
.bg-sig-preview {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bg-sig-box {
  padding-left: 1.15rem;
  border-left: 3px solid var(--coral-400);
  font-family: Arial, Helvetica, sans-serif;
  color: #3a4a5c;
  font-size: 1rem;
  line-height: 1.45;
}
.bg-sig-name { font-weight: 700; color: #0f1f33; font-size: 1.0625rem; }
.bg-sig-role { color: #355c7d; font-weight: 600; }
.bg-sig-links { margin-top: .35rem; font-size: .9375rem; }
.bg-sig-links a { color: #355c7d; font-weight: 600; }
.bg-sig-tag { margin-top: .4rem; font-size: .9375rem; color: #556377; }
.bg-sig-logo { margin-top: .85rem; width: 10rem; height: auto; }

/* Voice list */
.bg-voice-list {
  display: grid;
  gap: 1rem;
  max-width: 52rem;
}
.bg-voice-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 1.15rem 1.4rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
}
.bg-voice-list b { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .bg-dl, .bg-copy-btn, .bg-jump a { transition: none; }
}
