/* Brand manual page. Uses the site tokens (style.css) and the manual's own typeface: Helvetica Neue (Bold / Regular / Ultra Light). Helvetica Neue ships with macOS/iOS; elsewhere it falls back to Helvetica/Arial. */
.bm { --bm-red: #EB2B07; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 400; }
.bm .bm-red { color: var(--bm-red); }
.bm b, .bm .bm-bold { font-weight: 700; }
.bm-progress { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 2px; background: var(--red); transform-origin: left; transform: scaleX(var(--p, 0)); pointer-events: none; }
.bm-btn--red { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.bm-btn--red:hover { background: var(--red); border-color: var(--red); }

.bm-hero { position: relative; overflow: hidden; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 3rem) 0 clamp(5rem, 9vw, 7rem); --mx: 70%; --my: 30%; }
.bm-hero__glow { position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background: radial-gradient(40% 40% at var(--mx) var(--my), rgba(235, 43, 7, 0.38), transparent 70%),
              radial-gradient(45% 45% at 15% 85%, rgba(235, 43, 7, 0.16), transparent 70%);
  animation: bm-drift 14s ease-in-out infinite alternate; }
@keyframes bm-drift { to { transform: translate3d(3%, -3%, 0) scale(1.08); } }
.bm-hero__inner { position: relative; z-index: 2; }
.bm-eyebrow { margin-bottom: 1.5rem; color: var(--muted); font-size: 0.8rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; animation: fade 0.9s var(--ease) 0.2s both; }
.bm-hero__title { font-size: clamp(3rem, 11vw, 10.5rem); font-weight: 700; line-height: 0.92; letter-spacing: -0.05em; overflow: hidden; padding-bottom: 0.08em; animation: rise 1.2s var(--ease) 0.1s both; }
.bm-hero__title sup { font-size: 0.22em; font-weight: 100; vertical-align: top; letter-spacing: 0; }
.bm-hero__sub { margin-top: 1rem; font-size: clamp(1rem, 2.2vw, 1.7rem); font-weight: 100; letter-spacing: 0.5em; text-transform: uppercase; animation: fade 0.9s var(--ease) 0.7s both; }
.bm-hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.25rem; animation: fade 0.9s var(--ease) 0.9s both; }
.bm-colophon { max-width: 36rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; line-height: 1.6; animation: fade 0.9s var(--ease) 1.1s both; }
.bm-colophon p + p { margin-top: 0.6rem; }
.bm-colophon__sign { color: var(--text); font-weight: 100; letter-spacing: 0.06em; }

.bm-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.bm-toc { position: sticky; top: calc(var(--nav-h) + 2rem); padding-top: 3rem; font-size: 0.85rem; }
.bm-toc__title { margin-bottom: 1.25rem; font-weight: 100; font-size: 1.6rem; letter-spacing: 0.02em; }
.bm-toc__part { margin: 1.25rem 0 0.4rem; color: var(--bm-red); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; }
.bm-toc ol { border-top: 1px solid var(--line); }
.bm-toc li { border-bottom: 1px solid var(--line); }
.bm-toc a { display: flex; gap: 0.75rem; padding-block: 0.55rem; color: var(--muted); transition: color 0.3s var(--ease), padding-left 0.3s var(--ease); }
.bm-toc a b { color: var(--line-strong); font-weight: 400; font-variant-numeric: tabular-nums; transition: color 0.3s var(--ease); }
.bm-toc a:hover, .bm-toc a.is-active { color: var(--text); }
.bm-toc a.is-active { padding-left: 0.5rem; }
.bm-toc a.is-active b { color: var(--bm-red); }
.bm-toc .is-soon { opacity: 0.4; }
@media (max-width: 1000px) { .bm-layout { grid-template-columns: minmax(0, 1fr); } .bm-toc { display: none; } }

.bm-sec { padding-block: clamp(4rem, 9vw, 8rem); border-top: 1px solid var(--line); scroll-margin-top: var(--nav-h); }
.bm-sec:first-child { border-top: 0; }
.bm-chap { position: relative; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.bm-chap__num { display: block; font-size: clamp(6rem, 17vw, 14rem); font-weight: 100; line-height: 0.8; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px var(--line-strong); }
.bm-chap__part { margin-top: 1rem; color: var(--bm-red); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; }
.bm-chap h2 { margin-top: 0.35rem; font-size: clamp(1.6rem, 3.4vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; text-transform: uppercase; }
.bm-label { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.7; }
.bm-label b { color: var(--text); }
.bm-label--center, .bm-body--center { text-align: center; }
.bm-statement { max-width: 20em; font-size: clamp(1.8rem, 4.2vw, 3.8rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.04em; text-transform: uppercase; }
.bm-statement mark { background: none; color: var(--bm-red); }
.bm-statement--thin { margin-top: clamp(3rem, 6vw, 5rem); font-weight: 100; }
.bm-statement--sm { margin-top: 1rem; max-width: 30em; font-size: clamp(1.2rem, 2.3vw, 1.9rem); font-weight: 400; line-height: 1.3; letter-spacing: -0.02em; text-transform: none; }
.bm-body { max-width: 34em; margin-top: 1.75rem; color: var(--muted); font-size: 1.1rem; line-height: 1.6; }
.bm-body b { color: var(--text); }
.bm-body--lg { color: var(--text); font-size: clamp(1.2rem, 2.2vw, 1.8rem); font-weight: 100; line-height: 1.4; letter-spacing: -0.015em; max-width: 30em; }
.bm-body--center { margin-inline: auto; }
.bm-split .w { display: inline-block; opacity: 0; transform: translateY(0.45em); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--w) * 45ms); }
.bm-split.is-visible .w { opacity: 1; transform: none; }

/* team + marquee */
.bm-team { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; margin-top: clamp(3rem, 6vw, 5rem); align-items: start; }
.bm-roles { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.bm-roles li { padding: 0.65rem 1.1rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.9rem; transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease); }
.bm-roles li:hover { background: var(--bm-red); border-color: var(--bm-red); }
@media (max-width: 760px) { .bm-team { grid-template-columns: 1fr; } }
.bm-label--center { margin-top: clamp(3.5rem, 7vw, 6rem); }
.bm-marquee { overflow: hidden; margin: 1.5rem calc(var(--pad) * -1); padding-block: 1rem; border-block: 1px solid var(--line); }
.bm-marquee__track { display: flex; gap: 2.5rem; width: max-content; animation: bm-marquee 34s linear infinite; }
.bm-marquee span { font-size: clamp(1.5rem, 3.4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; text-transform: uppercase; white-space: nowrap; }
.bm-marquee span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--text); font-weight: 100; }
.bm-marquee span::after { content: "·"; margin-left: 2.5rem; color: var(--bm-red); }
@keyframes bm-marquee { to { transform: translateX(-50%); } }

/* personality */
.bm-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: clamp(2.5rem, 5vw, 4rem); background: var(--line); border: 1px solid var(--line); counter-reset: p; }
.bm-principles li { counter-increment: p; display: flex; flex-direction: column; gap: 0.8rem; padding: 1.75rem; background: var(--bg); transition: background-color 0.4s var(--ease); }
.bm-principles li:hover { background: var(--surface); }
.bm-principles li::before { content: "0" counter(p); color: var(--bm-red); font-weight: 100; font-size: 2.6rem; line-height: 1; }
.bm-principles b { font-size: 1.25rem; letter-spacing: -0.02em; }
.bm-principles span { color: var(--muted); line-height: 1.5; }
@media (max-width: 800px) { .bm-principles { grid-template-columns: 1fr; } }

/* redacted */
.bm-redacted { display: grid; gap: 0.7rem; max-width: 34rem; }
.bm-redacted i { height: 1.1rem; background: linear-gradient(90deg, #17171a 0%, #2b2b2f 50%, #17171a 100%); background-size: 200% 100%; animation: bm-shimmer 2.4s linear infinite; }
.bm-redacted i:nth-child(2) { width: 82%; animation-delay: -0.6s; } .bm-redacted i:nth-child(3) { width: 58%; animation-delay: -1.2s; }
.bm-redacted p { margin-top: 0.6rem; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; }
@keyframes bm-shimmer { to { background-position: -200% 0; } }

/* voice */
.bm-voice { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #fff; color: #000; }
.bm-voice__tri { position: absolute; left: 0; right: 0; top: 0; height: 83%; background: var(--bm-red); clip-path: polygon(50% 0, 50% 0, 50% 0); transition: clip-path 1.3s var(--ease); }
.bm-voice.is-visible .bm-voice__tri { clip-path: polygon(0 0, 100% 0, 50% 100%); }
.bm-voice__title { position: absolute; z-index: 1; top: 8%; left: 0; right: 0; text-align: center; font-size: clamp(1.4rem, 4.4vw, 3.8rem); font-weight: 700; letter-spacing: -0.06em; }
.bm-voice__form { position: absolute; z-index: 1; right: 1.5%; bottom: 19%; color: var(--bm-red); font-size: clamp(0.7rem, 1.9vw, 1.6rem); font-weight: 100; letter-spacing: -0.03em; }
.bm-voice__tone { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 17%; display: grid; place-items: center; background: #000; color: #fff; font-size: clamp(1rem, 3.2vw, 2.8rem); font-weight: 700; letter-spacing: -0.05em; }

/* logos */
.bm-logos { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1px; margin-top: 2.5rem; background: var(--line); border: 1px solid var(--line); }
.bm-card { position: relative; margin: 0; }
.bm-card--light { display: grid; place-items: center; padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem) 3.2rem; background: #fff; color: #000; }
.bm-card figcaption { position: absolute; left: 1.25rem; bottom: 1rem; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.bm-card figcaption b { color: var(--bm-red); margin-right: 0.5rem; }
.bm-logo-iso { grid-row: 1 / span 2; }
.bm-logo-iso img { max-height: 24rem; width: auto; animation: bm-pinch 5s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes bm-pinch { 50% { transform: rotate(-4deg) translateY(-8px); } }
.bm-wordmark { font-size: clamp(1.9rem, 4.2vw, 3.8rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; white-space: nowrap; }
.bm-wordmark sup { font-size: 0.3em; font-weight: 400; letter-spacing: 0; vertical-align: top; }
.bm-wordmark--xl { font-size: clamp(2.4rem, 8vw, 7rem); }
.bm-logo-imago img { width: 100%; max-width: 38rem; height: auto; }
.bm-logo-word, .bm-logo-imago, .bm-logo-iso { transition: filter 0.4s var(--ease); }
@media (max-width: 760px) { .bm-logos { grid-template-columns: 1fr; } .bm-logo-iso { grid-row: auto; } }

/* swatches */
.bm-swatches { display: flex; height: clamp(22rem, 42vw, 32rem); border: 1px solid var(--line); }
.bm-swatch { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 1.25rem; border: 0; border-right: 1px solid rgba(255, 255, 255, 0.12); background: var(--c); color: var(--ink); font: inherit; text-align: left; cursor: pointer; overflow: hidden; transition: flex 0.8s var(--ease); }
.bm-swatch:last-child { border-right: 0; }
.bm-swatch:hover, .bm-swatch:focus-visible, .bm-swatch.is-open { flex: 3.2; }
.bm-swatch__name { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.bm-swatch__data { display: grid; gap: 0.3rem; font-size: 0.95rem; white-space: nowrap; opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--ease) 0.1s, transform 0.5s var(--ease) 0.1s; }
.bm-swatch__data b { font-size: clamp(1.4rem, 2.6vw, 2.2rem); letter-spacing: -0.03em; }
.bm-swatch__data i { font-style: normal; font-weight: 100; }
.bm-swatch__data em { margin-top: 0.5rem; font-style: normal; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }
.bm-swatch:hover .bm-swatch__data, .bm-swatch:focus-visible .bm-swatch__data, .bm-swatch.is-open .bm-swatch__data { opacity: 1; transform: none; }
@media (max-width: 700px) {
  .bm-swatches { flex-direction: column; height: auto; }
  .bm-swatch { flex: none; min-height: 8.5rem; gap: 1rem; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .bm-swatch__data { opacity: 1; transform: none; white-space: normal; }
}

/* type */
.bm-type { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.bm-aa { position: relative; height: 1em; font-size: clamp(9rem, 22vw, 18rem); line-height: 1; letter-spacing: -0.06em; }
.bm-aa span { position: absolute; inset: 0; }
.bm-aa__b { font-weight: 700; animation: bm-aa 7s ease-in-out infinite; }
.bm-aa__u { font-weight: 100; color: var(--bm-red); animation: bm-aa 7s ease-in-out infinite reverse; }
@keyframes bm-aa { 0%, 35% { opacity: 1; } 50%, 85% { opacity: 0; } 100% { opacity: 1; } }
.bm-type__weights { margin: 0.5rem 0 1.5rem; font-size: clamp(1.4rem, 3vw, 2.4rem); letter-spacing: -0.03em; }
.bm-type__weights span { font-weight: 100; }
.bm-type__glyphs { font-size: clamp(0.95rem, 1.7vw, 1.35rem); letter-spacing: 0.08em; line-height: 1.55; overflow-wrap: anywhere; }
.bm-type__glyphs span { font-weight: 100; }
@media (max-width: 760px) { .bm-type { grid-template-columns: 1fr; } }
.bm-tester { margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.bm-tester__input { display: block; width: 100%; margin-top: 0.5rem; padding: 0.6rem 0; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; color: var(--text); font: 400 1.1rem/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif; }
.bm-tester__input:focus { outline: none; border-color: var(--red); }
.bm-tester__out { margin-top: 1.5rem; min-height: 1.2em; font-size: clamp(2.2rem, 7vw, 5.5rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.045em; overflow-wrap: anywhere; transition: font-weight 0.3s var(--ease); }
.bm-tester__btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.bm-tester__btns button { padding: 0.6rem 1.2rem; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text); font: inherit; font-size: 0.85rem; cursor: pointer; transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease); }
.bm-tester__btns button[aria-pressed="true"] { background: var(--bm-red); border-color: var(--bm-red); }

/* photos */
.bm-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.bm-photo { position: relative; margin: 0; overflow: hidden; background: var(--surface); }
.bm-photo--tall { grid-row: 1 / span 2; }
.bm-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bm-photo:hover img { transform: scale(1.05); }
.js .bm-photo[data-reveal] { clip-path: inset(0 0 100% 0); transform: none; transition: clip-path 1.2s var(--ease), opacity 0.9s var(--ease); }
.js .bm-photo[data-reveal].is-visible { clip-path: inset(0); }
@media (max-width: 700px) { .bm-photos { grid-template-columns: 1fr; } .bm-photo--tall { grid-row: auto; } }

/* architecture */
.bm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 1.5rem; }
.bm-steps b { display: block; margin-bottom: 0.8rem; color: var(--bm-red); font-size: 3rem; font-weight: 100; line-height: 1; }
.bm-steps p { color: var(--muted); line-height: 1.55; }
.bm-steps em { color: var(--text); font-style: italic; }
@media (max-width: 800px) { .bm-steps { grid-template-columns: 1fr; } }
.bm-ugrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; width: min(20rem, 100%); margin-top: clamp(2.5rem, 5vw, 4rem); background: var(--line); border: 1px solid var(--line); }
.bm-ugrid span { aspect-ratio: 1; background: var(--bg) url("../assets/hand-mark.png") center / 68% no-repeat; opacity: 0.2; animation: bm-wave 3.4s ease-in-out infinite; animation-delay: calc(var(--d) * 0.2s); }
.bm-ugrid span:first-child { opacity: 1; animation: none; }
@keyframes bm-wave { 0%, 100% { opacity: 0.2; } 40% { opacity: 1; } }
.bm-fig { margin: clamp(2rem, 4vw, 3rem) 0 0; }
.bm-fig img { width: 100%; height: auto; border: 1px solid var(--line); background: #fff; }
.bm-fig figcaption { margin-top: 0.8rem; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; }
.bm-fig figcaption b { color: var(--bm-red); margin-right: 0.5rem; }

/* end */
.bm-end { padding-block: clamp(5rem, 10vw, 9rem) clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); text-align: center; }
.bm-end__tag { margin: 1.25rem 0 2.5rem; font-weight: 100; font-size: clamp(0.9rem, 1.8vw, 1.4rem); letter-spacing: 0.5em; }

.bm-toast { position: fixed; z-index: 70; left: 50%; bottom: 2rem; transform: translate(-50%, 20px); padding: 0.7rem 1.2rem; border: 1px solid var(--line-strong); background: var(--surface); font-size: 0.85rem; opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.bm-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
