/* =========================================================
   CARDUI — brand manual (branding.html)
   ========================================================= */
@font-face { font-family: "Voyage"; src: url("../assets/fonts/voyage-bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

/* 1 · opening on orange */
.bm-hero { position: relative; background: var(--orange); color: var(--linen); min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 170px 0 120px; overflow: hidden; }
.bm-hero__inner { display: flex; flex-direction: column; align-items: center; }
.bm-kicker { margin: 0 0 clamp(36px, 5vh, 60px); font-size: 12px; letter-spacing: .34em; text-transform: uppercase; }
.bm-hero__mark { width: min(340px, 62vw, 42vh); height: auto; }
.bm-hero__note { margin: clamp(36px, 5vh, 56px) 0 0; max-width: 420px; font-size: 15px; line-height: 1.7; opacity: .9; }
.bm-index { position: absolute; left: 0; right: 0; bottom: 30px; display: flex; justify-content: center; gap: clamp(18px, 3vw, 44px); list-style: none; margin: 0; padding: 0 var(--gutter); counter-reset: bm; flex-wrap: wrap; }
.bm-index li { counter-increment: bm; }
.bm-index a { color: var(--linen); text-decoration: none; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; opacity: .85; transition: opacity .3s; }
.bm-index a::before { content: "0" counter(bm) " "; opacity: .6; margin-right: 6px; }
.bm-index a:hover { opacity: 1; }

/* 2 · the name */
.bm-name { background: var(--linen); }
.bm-name__mark { display: grid; place-items: center; padding: clamp(40px, 7vw, 100px) 0 clamp(70px, 9vw, 130px); border-bottom: 1px solid rgba(58,43,54,.14); margin-bottom: clamp(60px, 8vw, 110px); }
.bm-name__mark img { width: min(680px, 80vw); }
.bm-name__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.bm-name__text { font-size: 17px; line-height: 1.8; color: #5a4853; }
.bm-name__text p { margin: 0 0 22px; }
.bm-name__text strong { color: var(--aub); font-weight: 500; }
.bm-name__claim { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 36px); color: var(--aub); margin-top: 34px !important; }
.bm-name__claim em { color: var(--orange); font-style: italic; font-weight: 700; }

/* 3 · construction */
.bm-cons { background: var(--linen); padding-top: 0; }
.bm-cons > .container { border-top: 1px solid rgba(58,43,54,.14); padding-top: clamp(70px, 9vw, 130px); }
.bm-cons .section-head { max-width: 760px; }
.bm-cons .lead { max-width: 680px; }
.bm-cons__sheet { margin: 40px 0 0; padding: 0; }
.bm-cons__sheet img { width: 100%; display: block; mix-blend-mode: multiply; }
.bm-versions { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); margin-top: clamp(50px, 6vw, 80px); }
.bm-version { margin: 0; }
.bm-version__art { position: relative; aspect-ratio: 4 / 3; background: none; }
.bm-version__art img { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; }
.bm-version figcaption { padding: 16px 2px 0; font-size: 14px; line-height: 1.6; color: #5a4853; }
.bm-version figcaption b { display: block; font-family: var(--serif); font-weight: 500; font-size: 24px; color: var(--aub); margin-bottom: 4px; }
.bm-donts { list-style: none; margin: clamp(44px, 5vw, 70px) 0 0; padding: 26px 0 0; border-top: 1px solid rgba(58,43,54,.14); display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; font-size: 14px; line-height: 1.6; color: #5a4853; }
.bm-donts li { position: relative; padding-left: 26px; }
.bm-donts li::before { content: "×"; position: absolute; left: 0; top: -3px; color: var(--orange); font-size: 20px; }

/* 4 · colours */
.bm-colours { background: var(--aub); color: var(--linen); }
.bm-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.bm-swatch { position: relative; aspect-ratio: 3 / 4; border: 0; border-radius: 4px; background: var(--c); color: var(--t); padding: 26px 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; text-align: left; font: inherit; cursor: pointer; transition: transform .5s var(--ease-out); box-shadow: inset 0 0 0 1px rgba(237,224,212,.12); }
.bm-swatch:hover { transform: translateY(-6px); }
.bm-swatch__name { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; margin-bottom: auto; }
.bm-swatch__codes { font-size: 13px; line-height: 1.6; opacity: .85; }
.bm-swatch__codes b { display: block; font-weight: 500; font-size: 15px; letter-spacing: .06em; opacity: 1; }
.bm-swatch__use { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; line-height: 1.5; }
.bm-swatch.is-copied::after { content: "Copied"; position: absolute; top: 18px; right: 18px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; }
.bm-sub { margin: clamp(60px, 7vw, 100px) 0 22px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--orange); }
.bm-combos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bm-combos figure { margin: 0; }
.bm-combos img { width: 100%; aspect-ratio: 1; display: block; border-radius: 4px; box-shadow: 0 0 0 1px rgba(237,224,212,.16); }
.bm-combos figcaption { padding-top: 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }

/* 5 · typography */
.bm-type { background: var(--linen); }
.bm-font { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(30px, 5vw, 80px); padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid rgba(58,43,54,.14); align-items: center; }
.bm-font:last-child { border-bottom: 1px solid rgba(58,43,54,.14); }
.bm-font__role { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--orange); }
.bm-font__meta h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 42px); color: var(--aub); margin: 10px 0 10px; }
.bm-font__meta p { margin: 0; font-size: 15px; line-height: 1.7; color: #5a4853; max-width: 340px; }
.bm-font__sample { color: var(--aub); }
.bm-font__sample small { display: block; margin-top: 18px; font-size: 14px; letter-spacing: .04em; color: var(--walnut); line-height: 1.7; }
.bm-font__sample--voyage { font-family: "Voyage", var(--serif); font-weight: 700; font-size: clamp(64px, 9vw, 140px); line-height: .9; letter-spacing: .01em; }
.bm-font__sample--voyage small { font-family: "Voyage", var(--serif); font-size: clamp(16px, 1.6vw, 22px); letter-spacing: .08em; }
.bm-font__sample--serif { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5.6vw, 86px); line-height: 1; }
.bm-font__sample--serif em { font-style: italic; font-weight: 600; color: var(--orange); }
.bm-font__sample--serif small { font-family: var(--serif); font-size: 18px; font-weight: 400; }
.bm-font__sample--sans { font-family: var(--sans); font-weight: 300; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.5; max-width: 640px; }
.bm-font__label { display: block; font-weight: 500; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--walnut); margin-bottom: 16px; }

@media (max-width: 1000px) {
  .bm-name__grid { grid-template-columns: 1fr; gap: 10px; }
  .bm-swatches, .bm-combos { grid-template-columns: repeat(2, 1fr); }
  .bm-donts { grid-template-columns: repeat(2, 1fr); }
  .bm-font { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .bm-hero { padding: 130px 0 130px; }
  .bm-versions { grid-template-columns: 1fr; }
  .bm-donts { grid-template-columns: 1fr; }
  .bm-swatch { aspect-ratio: 4 / 5; padding: 18px 16px; }
  .bm-index { gap: 10px 18px; }
}

/* font names set in their own typeface */
.bm-font__meta h3.is-voyage { font-family: "Voyage", var(--serif); font-weight: 700; letter-spacing: .01em; }
.bm-font__meta h3.is-serif { font-family: var(--serif); font-weight: 400; }
.bm-font__meta h3.is-sans { font-family: var(--sans); font-weight: 500; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.01em; }
