/* ==========================================================================
   MECANDRIA — Built by Mecandria (page-specific; loaded only on this page)
   Classes are prefixed .bm- so nothing leaks into other pages.

   An editorial case-study experience, not a gallery:
   hero (assembling layers) → philosophy → selected builds with filter and
   transition statements → how a build evolves → how we build → what we
   build → explore more → CTA.

   Content rule: only Mecandria ERP and Mecandria HMS are published builds
   (real screenshots, verified modules). Anything else is a marked placeholder.
   ========================================================================== */
.bm {
  --bm-bg: #FBF8F3; --bm-bg-2: #F4EEE5; --bm-surface: #FFFFFF; --bm-surface-2: #FFFDF9;
  --bm-line: rgba(90, 80, 70, .16); --bm-line-2: rgba(90, 80, 70, .28);
  --bm-muted: #5A5568; --bm-dim: #6E6878;
  --bm-cyan: 0, 119, 95; --bm-violet: 91, 46, 230; --bm-magenta: 199, 0, 73;   /* warm ivory palette: the "cyan" slot holds the teal label colour */
}
.bm section { position: relative; isolation: isolate; }
.bm-sec { padding-block: clamp(20px, 2.5vw, 32px) clamp(48px, 5.5vw, 80px); background: var(--bm-bg); }
.bm-sec--alt { background: var(--bm-bg-2); }
.bm-sec--alt::before, .bm-sec--alt::after { content: ""; position: absolute; left: 0; right: 0; height: 120px; pointer-events: none; z-index: -1; }
.bm-sec--alt::before { top: 0; background: linear-gradient(var(--bm-bg), transparent); }
.bm-sec--alt::after { bottom: 0; background: linear-gradient(transparent, var(--bm-bg)); }

.bm-chap { display: inline-flex; align-items: center; gap: 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: rgb(var(--bm-cyan)); }
.bm-chap b { color: var(--bm-dim); font-variant-numeric: tabular-nums; }
.bm-chap::after { content: ""; width: 36px; height: 1px; background: linear-gradient(90deg, rgba(var(--bm-cyan), .7), transparent); }
.bm-h1 { font-size: clamp(2.2rem, 1rem + 3.4vw, 4.6rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; text-transform: uppercase; }
.bm-h2 { font-size: clamp(1.6rem, .72rem + 2.45vw, 3.3rem); text-transform: uppercase; font-weight: 800; line-height: 1.03; letter-spacing: -.035em; }
.bm-lead { font-size: clamp(1.03rem, .95rem + .35vw, 1.2rem); line-height: 1.65; color: var(--bm-muted); max-width: 54ch; }
.bm-cool { background: linear-gradient(92deg, #00775F, #00728A 45%, #5B2EE6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bm-dimtext { color: var(--bm-dim); }
.bm-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px clamp(40px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 6vw, 84px); }
.bm-head .bm-h2 { margin-top: 22px; }
.bm-head p { margin: 0; color: var(--bm-muted); font-size: 1.06rem; line-height: 1.7; }
.bm .btn-light { background: #1D1B2F; color: #FBF8F3; }
.bm .btn-light:hover { background: #3A3650; transform: translateY(-2px); }
.bm-link { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--bm-magenta)); }
.bm-link .arrow { transition: transform .3s var(--ease); }
.bm-link:hover .arrow { transform: translateX(4px); }

/* ==========================================================================
   HERO — editorial text + "assembling layers" (idea → transformation).
   Five thin architectural plates slide into a stack once on load.
   ========================================================================== */
.bm-hero { min-height: 76vh; min-height: 76svh; display: grid; align-items: center; overflow: hidden; padding: calc(var(--nav-h) + 40px) 0 clamp(64px, 7vw, 96px); background: var(--bm-bg); }
.bm-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 55% at 78% 50%, rgba(255, 75, 51, .12), transparent 70%), radial-gradient(30% 40% at 8% 90%, rgba(var(--bm-magenta), .05), transparent 70%); }
.bm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.bm-hero h1 { margin: 24px 0 26px; max-width: 16ch; }
.bm-hero h1 span { display: block; }
.bm-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.bm-hero-actions .btn { --pad-y: 15px; font-size: 12.5px; }
.bm-in { animation: bm-rise 1s var(--ease) both; }
.bm-in:nth-child(2) { animation-delay: .08s; } .bm-in:nth-child(3) { animation-delay: .16s; } .bm-in:nth-child(4) { animation-delay: .24s; }
@keyframes bm-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.bm-stack { position: relative; list-style: none; margin: 0; padding: 0; width: 100%; max-width: 480px; justify-self: end; aspect-ratio: 1 / 1; }
.bm-plate {
  --i: 0; position: absolute; left: calc(var(--i) * 7%); top: calc(64% - var(--i) * 14%); width: 68%; height: 22%;
  display: flex; align-items: flex-end; justify-content: space-between; padding: 12px 16px;
  border: 1px solid var(--bm-line-2); border-radius: 6px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .6)), rgba(255, 255, 255, .88);
  transform: skewY(-8deg); box-shadow: 0 24px 40px -30px rgba(29, 27, 47, .36);
  animation: bm-settle 1.2s var(--ease) both; animation-delay: calc(.35s + var(--i) * .14s);
}
.bm-plate .k { font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--bm-dim); transform: skewY(8deg); }
.bm-plate::before { /* inner structure lines get denser as the build matures */
  content: ""; position: absolute; inset: 10px 16px auto; height: calc(var(--i) * 6px + 2px);
  background: repeating-linear-gradient(90deg, rgba(90, 80, 70, .22) 0 calc(14% - 4px), transparent calc(14% - 4px) 14%);
  opacity: calc(.25 + var(--i) * .15);
}
.bm-plate:nth-child(4) { border-color: rgba(var(--bm-cyan), .35); }
.bm-plate:nth-child(4) .k { color: #00775F; }
.bm-plate:nth-child(5) { border-color: rgba(var(--bm-cyan), .75); background: linear-gradient(160deg, rgba(var(--bm-cyan), .1), rgba(var(--bm-violet), .08)), rgba(255, 255, 255, .95); box-shadow: 0 0 40px -12px rgba(var(--bm-cyan), .45), 0 24px 40px -30px rgba(29, 27, 47, .36); }
.bm-plate:nth-child(5) .k { color: #1D1B2F; }
.bm-plate:nth-child(5)::before { background: repeating-linear-gradient(90deg, rgba(var(--bm-cyan), .6) 0 calc(14% - 4px), transparent calc(14% - 4px) 14%); }
@keyframes bm-settle { from { opacity: 0; transform: skewY(-8deg) translate(-28px, 34px); } to { opacity: 1; transform: skewY(-8deg); } }

/* ==========================================================================
   PHILOSOPHY — four outcomes from the intro paragraph, each with a real ERP/HMS example
   ========================================================================== */
.bm-outs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--bm-line-2); border-radius: 12px; overflow: hidden; background: var(--bm-surface-2); }
.bm-out { display: grid; gap: 12px; align-content: start; padding: clamp(24px, 2.4vw, 34px) clamp(20px, 2vw, 28px); border-left: 1px solid var(--bm-line); }
.bm-out:first-child { border-left: 0; }
.bm-out svg { width: 38px; height: 38px; fill: none; stroke: rgb(var(--bm-cyan)); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bm-out h3 { margin: 6px 0 0; font-size: clamp(1.2rem, .9rem + .7vw, 1.55rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.1; }
.bm-out p { margin: 0; color: var(--bm-muted); font-size: .98rem; line-height: 1.6; }
.bm-out .ex { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--bm-line-2); color: inherit; font-size: .9rem; }
.bm-out .ex b { color: rgb(var(--bm-cyan)); }
.js .bm-outs:not(.is-in) .bm-out { opacity: 0; transform: translateY(14px); }
.js .bm-outs.is-in .bm-out { transition: opacity .8s var(--ease) calc(var(--i) * .1s), transform .8s var(--ease) calc(var(--i) * .1s); }
@media (prefers-reduced-motion: reduce) { .js .bm-outs .bm-out { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ==========================================================================
   SELECTED BUILDS — filter, editorial project showcases, transitions
   ========================================================================== */
.bm-filter { display: flex; flex-wrap: wrap; gap: 6px clamp(18px, 2.6vw, 34px); margin-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--bm-line); }
.bm-filter button {
  position: relative; background: none; border: 0; padding: 14px 0; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bm-dim);
  transition: color .25s;
}
.bm-filter button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, rgb(var(--bm-cyan)), rgba(var(--bm-violet), .9)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.bm-filter button:hover { color: #3A3648; }
.bm-filter button[aria-pressed="true"] { color: #1D1B2F; }
.bm-filter button[aria-pressed="true"]::after { transform: scaleX(1); }
.bm-filter sup { font-size: 9px; margin-left: 4px; color: var(--bm-dim); letter-spacing: .05em; }

.bm-builds { display: grid; gap: clamp(72px, 9vw, 128px); }
.bm-builds > [hidden] { display: none; }
.bm-project { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.bm-project.flip .bm-media { order: -1; }
.bm-project.flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); }
.bm-meta .cat { display: inline-flex; gap: 10px; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgb(var(--bm-cyan)); }
.bm-meta .cat i { width: 18px; height: 1px; background: currentColor; }
.bm-meta h3 { margin: 16px 0 14px; font-size: clamp(2rem, 1.1rem + 2.8vw, 3.8rem); font-weight: 800; letter-spacing: -.04em; line-height: .98; transition: transform .45s var(--ease); }
.bm-meta .sum { margin: 0 0 30px; color: var(--bm-muted); font-size: 1.05rem; line-height: 1.65; max-width: 46ch; }
.bm-story { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid var(--bm-line); }
.bm-story li { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--bm-line); }
.bm-story .k { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--bm-dim); padding-top: 3px; }
.bm-story li:nth-child(3) .k { color: rgb(var(--bm-cyan)); }
.bm-story p { margin: 0; color: #4A4558; font-size: .96rem; line-height: 1.6; }
.bm-mods { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 28px; padding: 0; list-style: none; }
.bm-mods li { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: #6E6878; }
.bm-mods li::before { content: "/ "; color: #B3ACA1; }
.bm-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.bm-soon { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6E6878; cursor: default; }
.bm-soon em { font-style: normal; font-size: 10px; letter-spacing: .14em; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--bm-line-2); color: #6E6878; }

/* media: editorial frame with a ghost layer behind for depth */
.bm-media { position: relative; padding: 0 0 26px 26px; align-self: start; position: sticky; top: calc(var(--nav-sticky-h) + 40px); } /* stays beside the story on desktop */
.bm-project.flip .bm-media { padding: 0 26px 26px 0; }
.bm-media::before { /* ghost layer */
  content: ""; position: absolute; left: 0; right: 26px; top: 26px; bottom: 0; border: 1px solid var(--bm-line); border-radius: 12px;
  background: linear-gradient(160deg, rgba(var(--bm-cyan), .04), rgba(var(--bm-violet), .04)), var(--bm-surface);
}
.bm-project.flip .bm-media::before { left: 26px; right: 0; }
a.bm-frame { display: block; }
.bm-frame { position: relative; border: 1px solid var(--bm-line-2); border-radius: 12px; overflow: hidden; background: #FFFFFF; box-shadow: 0 50px 100px -50px rgba(29, 27, 47, .38); transition: border-color .45s; }
.bm-frame .bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--bm-line); background: rgba(255, 255, 255, .75); }
.bm-frame .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--bm-line-2); }
.bm-frame .bar span { margin-left: 10px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--bm-dim); }
.bm-frame .img { overflow: hidden; }
.bm-frame img { display: block; width: 100%; height: auto; transition: transform 1.1s var(--ease); }
.bm-media::after { /* accent line that appears on hover */
  content: ""; position: absolute; left: 26px; right: 0; top: 0; height: 1px; z-index: 2; border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, transparent, rgb(var(--bm-cyan)), rgba(var(--bm-violet), .9), transparent); opacity: 0; transition: opacity .45s;
}
.bm-project.flip .bm-media::after { left: 0; right: 26px; }

/* honest placeholder for builds without approved visuals (still used by the best-it-company-in-* pages) */
.bm-ph { aspect-ratio: 16 / 9; display: grid; place-content: center; gap: 10px; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(90, 80, 70, .04) 0 1px, transparent 1px 14px), #FFFFFF; }
.bm-ph b { font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: #6E6878; }
.bm-ph span { font-size: .85rem; color: var(--bm-dim); }
.bm-project--ph .bm-meta h3 { color: #6E6878; }

/* websites: an "elastic reel" of live client sites. Each slice is a strip of the site's screenshot;
   the open one swells to the full image with an elastic overshoot, the others close to narrow strips
   with the site's name running up them. built.js opens a slice on hover/focus and steps through them. */
.bm-project--web .bm-media, .bm-project--web .bm-frame { width: 100%; }   /* the reel has no intrinsic width, so it fills its column */
.bm-reel { display: flex; gap: 6px; aspect-ratio: 16 / 10; padding: 6px; background: #F4EEE5; }
.bm-slice { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 8px; background: #1D1B2F; color: #fff;
  transition: flex-grow .9s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s ease; }
.bm-slice.is-on { flex-grow: 7; box-shadow: 0 20px 40px -24px rgba(29, 27, 47, .6); }
.bm-slice img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: left top; transition: transform 1.1s var(--ease), filter .5s ease; }
.bm-slice:not(.is-on) img { filter: saturate(.55) brightness(.62); transform: scale(1.06); }
.bm-slice::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(29, 27, 47, .82), rgba(29, 27, 47, 0) 46%); opacity: 0; transition: opacity .5s ease; }
.bm-slice.is-on::after { opacity: 1; }
.bm-slice-tab { position: absolute; left: 50%; bottom: 16px; z-index: 1; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; white-space: nowrap; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; transition: opacity .3s ease; }
.bm-slice.is-on .bm-slice-tab { opacity: 0; }
.bm-slice-cap { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 1; display: grid; gap: 3px; opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .5s var(--ease); }
.bm-slice.is-on .bm-slice-cap { opacity: 1; transform: none; transition-delay: .25s; }
.bm-slice-cap b { font-size: clamp(1.05rem, .8rem + .7vw, 1.45rem); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.bm-slice-cap small { font-size: .78rem; color: rgba(255, 255, 255, .78); }
.bm-slice-cap em { justify-self: start; margin-top: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; color: #1D1B2F; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.bm-slice:focus-visible { outline: 2px solid rgb(var(--bm-magenta)); outline-offset: 2px; }

/* hover: precise and quiet */
.bm-project:hover .bm-frame { border-color: rgba(var(--bm-cyan), .4); }
.bm-project:hover .bm-frame img { transform: scale(1.025); }
.bm-project:hover .bm-media::after { opacity: 1; }
.bm-project:hover .bm-meta h3 { transform: translateX(4px); }

/* image reveal: a clip that opens once when the project enters view */
.js .bm-project[data-reveal] { opacity: 1; transform: none; }
.js .bm-project:not(.is-in) .bm-frame { clip-path: inset(0 0 0 100% round 12px); }
.js .bm-project.flip:not(.is-in) .bm-frame { clip-path: inset(0 100% 0 0 round 12px); }
.js .bm-project.is-in .bm-frame { clip-path: inset(0 0 0 0 round 12px); transition: clip-path 1.3s var(--ease) .15s, border-color .45s; }
.js .bm-project:not(.is-in) .bm-meta > * { opacity: 0; transform: translateY(14px); }
.js .bm-project.is-in .bm-meta > * { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .bm-project.is-in .bm-meta > :nth-child(2) { transition-delay: .08s; } .js .bm-project.is-in .bm-meta > :nth-child(3) { transition-delay: .16s; }
.js .bm-project.is-in .bm-meta > :nth-child(n+4) { transition-delay: .24s; }
.bm-meta h3 { transition: transform .45s var(--ease), opacity .8s var(--ease); }

/* transition statement between projects */
.bm-shift { text-align: center; padding: clamp(8px, 2vw, 24px) 0; }
.bm-shift p { margin: 0; font-size: clamp(1.25rem, .9rem + 1.6vw, 2.4rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.bm-shift .from { color: #6E6878; }
.bm-shift .to { background: linear-gradient(92deg, #1D1B2F, #00775F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bm-shift i { display: block; width: 1px; height: 46px; margin: 16px auto; background: linear-gradient(180deg, rgba(90, 80, 70, .3), rgba(var(--bm-cyan), .8)); transform-origin: top; }
.js .bm-shift:not(.is-in) i { transform: scaleY(0); }
.js .bm-shift.is-in i { transition: transform 1s var(--ease) .3s; }

.bm-empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--bm-line-2); border-radius: 12px; color: var(--bm-muted); }
.bm-empty b { display: block; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #3A3648; margin-bottom: 10px; }
.bm-empty p { margin: 0 auto 18px; max-width: 46ch; }

/* ==========================================================================
   HOW A BUILD EVOLVES — layered screenshots (sticky) + stages with a
   connecting line that fills as you scroll [data-seq]
   ========================================================================== */
.bm-evolve { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.bm-evolve-vis { position: sticky; top: calc(var(--nav-sticky-h) + 56px); }
.bm-layers { position: relative; aspect-ratio: 5 / 4; }
.bm-layers figure { position: absolute; margin: 0; width: 82%; border: 1px solid var(--bm-line-2); border-radius: 10px; overflow: hidden; background: #FFFFFF; box-shadow: 0 40px 80px -40px rgba(29, 27, 47, .38); }
.bm-layers figure img { display: block; width: 100%; height: auto; }
.bm-layers figure:nth-child(1) { left: 0; top: 0; transform: perspective(1400px) rotateY(10deg) rotateX(4deg); opacity: .6; }
.bm-layers figure:nth-child(2) { right: 0; bottom: 0; transform: perspective(1400px) rotateY(-6deg); }
.bm-layers .tag { position: absolute; left: 10px; top: 10px; font-size: 10px; font-weight: 700; letter-spacing: .2em; padding: 5px 9px; border-radius: 999px; background: rgba(251, 248, 243, .82); color: rgb(var(--bm-cyan)); border: 1px solid rgba(var(--bm-cyan), .35); }
.bm-evolve-vis p { margin: 22px 0 0; font-size: .9rem; color: var(--bm-dim); }

.bm-seq-wrap { position: relative; padding-left: 40px; }
.bm-seq { list-style: none; margin: 0; padding: 0; }
.bm-seq-track { position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--bm-line-2); }
.bm-seq-track i { position: absolute; left: 0; top: 0; width: 1px; height: calc(var(--p, 1) * 100%); background: linear-gradient(180deg, rgba(90, 80, 70, .5), rgba(var(--bm-cyan), .9) 60%, rgba(var(--bm-violet), .9)); transition: height .8s var(--ease); }
.bm-seq li { position: relative; padding: 0 0 clamp(36px, 4.4vw, 56px); }
.bm-seq li:last-child { padding-bottom: 0; }
.bm-seq li::before { content: ""; position: absolute; left: -40px; top: 4px; width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(var(--bm-cyan), .9); background: rgb(var(--bm-cyan)); box-shadow: 0 0 14px rgba(var(--bm-cyan), .5); transition: all .6s; }
.bm-seq li:first-child::before { border-color: rgba(var(--bm-magenta), .9); background: rgb(var(--bm-magenta)); box-shadow: 0 0 14px rgba(var(--bm-magenta), .45); }
.bm-seq h3 { font-size: clamp(1.4rem, 1rem + 1.4vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; transition: color .6s; }
.bm-seq p { margin: 8px 0 0; color: var(--bm-muted); max-width: 40ch; transition: opacity .6s; }
.bm-seq li:last-child h3 { background: linear-gradient(92deg, #1D1B2F, #00775F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.seq-on .bm-seq li:not(.is-active)::before { background: var(--bm-bg-2); border-color: var(--bm-line-2); box-shadow: none; }
.seq-on .bm-seq li:not(.is-active) h3 { color: #B3ACA1; -webkit-text-fill-color: #B3ACA1; }
.seq-on .bm-seq li:not(.is-active) p { opacity: .3; }

/* ==========================================================================
   HOW WE BUILD — five columns with outlined numerals on a shared rule
   ========================================================================== */
.bm-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--bm-line-2); }
.bm-how li { position: relative; padding: 30px 18px 0 0; }
.bm-how li::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 36px; background: linear-gradient(90deg, rgb(var(--bm-cyan)), rgba(var(--bm-violet), .8)); transition: width .6s var(--ease); }
.bm-how li:hover::before { width: calc(100% - 18px); }
.bm-how h3 { margin: 0 0 8px; font-size: clamp(1.1rem, .85rem + .7vw, 1.45rem); font-weight: 800; letter-spacing: -.01em; }
.bm-how p { margin: 0; color: var(--bm-muted); font-size: .93rem; line-height: 1.6; max-width: 24ch; }

/* ==========================================================================
   WHAT WE BUILD — large typographic rows with honest evidence
   ========================================================================== */
.bm-head--solo { grid-template-columns: minmax(0, 1fr); }
.bm-build { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(20px, 2.4vw, 32px); list-style: none; margin: 0; padding: 0; }
.bm-tile { grid-column: span 2; min-width: 0; }
.bm-tile--lead { grid-column: span 4; }
.bm-tile:nth-child(2) { grid-column: span 2; }
.bm-tile-vis { position: relative; margin: 0 0 22px; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--bm-line); border-radius: 6px; background: linear-gradient(160deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .55)), var(--bm-surface); transition: border-color .35s; }
.bm-tile--lead .bm-tile-vis, .bm-tile:nth-child(2) .bm-tile-vis { aspect-ratio: auto; height: clamp(240px, 30vw, 420px); }
.bm-tile-vis img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; opacity: .9; transition: transform .7s var(--ease), opacity .4s; }
.bm-tile-vis img.pos-chart { object-position: 72% 60%; }
.bm-tile-vis::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(251, 248, 243, .5)); pointer-events: none; }
.bm-tile:hover .bm-tile-vis { border-color: var(--bm-line-2); }
.bm-tile:hover .bm-tile-vis img { transform: translateY(-4px); opacity: 1; }
.bm-tile--art .bm-tile-vis { display: grid; place-items: center; }
.bm-tile--art .bm-tile-vis::after { display: none; }
.bm-tile--art svg { width: 78%; height: auto; transition: transform .7s var(--ease); }
.bm-tile--art:hover svg { transform: translateY(-4px); }
.bm-tile--art svg * { fill: none; stroke: rgba(90, 80, 70, .32); stroke-width: 1.3; }
.bm-tile--art svg .dim { stroke: rgba(90, 80, 70, .2); stroke-dasharray: 4 5; }
.bm-tile--art svg .acc { stroke: rgb(var(--bm-cyan)); }
.bm-tile--art svg rect.acc { fill: rgba(var(--bm-cyan), .08); }
.bm-tile--art svg .fill { fill: var(--bm-surface); stroke: rgb(var(--bm-cyan)); }
.bm-tile--art svg .end { fill: rgb(var(--bm-cyan)); }
.bm-tile--art svg .dot { fill: rgba(var(--bm-magenta), .8); stroke: none; }
.bm-tile--art svg .ghost { stroke: rgba(var(--bm-violet), .55); stroke-dasharray: 3 3; }
.bm-tile-vis .tag { position: absolute; left: 14px; top: 12px; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #6E6878; }
.bm-tile h3 { margin: 0 0 8px; font-size: clamp(1.25rem, 1rem + .7vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; transition: color .3s; }
.bm-tile:hover h3 { color: #1D1B2F; }
.bm-tile p { margin: 0; max-width: 40ch; color: var(--bm-muted); }

/* ==========================================================================
   EXPLORE MORE
   ========================================================================== */
.bm-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--bm-line); }
.bm-more a { position: relative; display: grid; gap: 10px; padding: 30px 24px 30px 0; color: inherit; }
.bm-more a + a { padding-left: 24px; border-left: 1px solid var(--bm-line); }
.bm-more .k { font-size: 10.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--bm-dim); }
.bm-more .t { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: clamp(1.3rem, .9rem + 1.3vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; }
.bm-more .t .arrow { color: var(--bm-dim); transition: transform .35s var(--ease), color .3s; }
.bm-more a:hover .t .arrow { transform: translateX(6px); color: rgb(var(--bm-cyan)); }
.bm-more p { margin: 0; color: var(--bm-muted); font-size: .95rem; }

/* ---- final CTA (shared .final band) ---- */
.bm-cta .bm-chap { margin-bottom: 26px; }
.bm-cta h2 { font-size: clamp(1.6rem, .72rem + 2.45vw, 3.3rem); text-transform: uppercase; font-weight: 800; letter-spacing: -.04em; line-height: 1.02; max-width: 20ch; margin: 0 auto; }
.bm-cta .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .bm-how { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .bm-build { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bm-tile, .bm-tile:nth-child(2) { grid-column: span 1; }
  .bm-tile--lead { grid-column: 1 / -1; }
  .bm-tile:nth-child(2) .bm-tile-vis { height: auto; aspect-ratio: 16 / 10; }
}
@media (max-width: 1024px) {
  .bm-hero-grid { grid-template-columns: 1fr; }
  .bm-stack { justify-self: start; max-width: 420px; }
  .bm-project, .bm-project.flip { grid-template-columns: 1fr; }
  .bm-project.flip .bm-media { order: 0; }
  .bm-media { position: relative; top: auto; }
  .bm-evolve { grid-template-columns: 1fr; }
  .bm-evolve-vis { position: static; max-width: 600px; }
}
@media (max-width: 900px) {
  .bm-head { grid-template-columns: 1fr; }
  .bm-outs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bm-out:nth-child(3) { border-left: 0; }
  .bm-out:nth-child(n+3) { border-top: 1px solid var(--bm-line); }
  .bm-more { grid-template-columns: 1fr; }
  .bm-more a, .bm-more a + a { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--bm-line); }
}
@media (max-width: 760px) {
  .bm-reel { flex-direction: column; aspect-ratio: auto; height: 560px; }
  .bm-slice-tab { left: 16px; bottom: 50%; transform: translateY(50%); writing-mode: horizontal-tb; }
  .bm-outs { grid-template-columns: 1fr; }
  .bm-out { border-left: 0; border-top: 1px solid var(--bm-line); }
  .bm-out:first-child { border-top: 0; }
  /* each project = vertical editorial story: category, name, visual, story */
  .bm-project { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .bm-meta { display: contents; }
  .bm-meta .cat { order: 1; }
  .bm-meta h3 { order: 2; margin-bottom: 22px; }
  .bm-media, .bm-project.flip .bm-media { order: 3; padding: 0 0 16px 16px; margin-bottom: 26px; }
  .bm-project.flip .bm-media { padding: 0 16px 16px 0; }
  .bm-media::before { top: 16px; right: 16px; }
  .bm-project.flip .bm-media::before { left: 16px; right: 0; }
  .bm-meta .sum { order: 4; }
  .bm-story { order: 5; }
  .bm-mods { order: 6; }
  .bm-acts { order: 7; }
  .bm-story li { grid-template-columns: 1fr; gap: 6px; }
  .bm-how { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--bm-line-2); margin-left: 4px; row-gap: 0; }
  .bm-how li { padding: 0 0 30px 26px; }
  .bm-how li::before { left: -1px; top: 6px; width: 1px; height: 30px; background: linear-gradient(180deg, rgb(var(--bm-cyan)), rgba(var(--bm-violet), .8)); }
  .bm-how li:hover::before { width: 1px; }
  .bm-how p { max-width: none; }
  .bm-build { grid-template-columns: minmax(0, 1fr); }
  .bm-tile:nth-child(2) .bm-tile-vis { height: auto; aspect-ratio: 16 / 10; }
  .bm-filter { gap: 0 20px; }
  .bm-hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.8rem); }
  .bm-hero-actions { flex-direction: column; }
  .bm-hero-actions .btn { width: 100%; }
  .bm-plate { padding: 10px 12px; }
}
@media (max-width: 380px) {
  .bm-hero-actions .btn, .bm-cta .btn, .bm-empty .btn { white-space: normal; font-size: 11.5px; padding-inline: 18px; }
  .bm-chap { letter-spacing: .16em; }
  .bm-plate .k { letter-spacing: .14em; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .bm-slice, .bm-slice img, .bm-slice-cap { transition: none !important; }
  .bm-tile-vis img, .bm-tile--art svg { transition: none !important; }
  .bm *, .bm *::before, .bm *::after { animation: none !important; }
  .js .bm-project .bm-frame, .js .bm-project .bm-meta > *, .js .bm-shift i { clip-path: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
  .bm-frame img { transition: none; }
}
