:root {
    --bm-yellow: #ffc004;
    --bm-orange: #ff8500;
    --bm-ink: #111318;
    --bm-text: #2b3038;
    --bm-muted: #707783;
    --bm-line: rgba(17, 19, 24, .09);
    --bm-soft: #f6f7f9;
    --bm-white: #ffffff;
    --bm-radius: 18px;
    --bm-shadow: 0 18px 45px rgba(17, 19, 24, .08);
}

*, *::before, *::after { box-sizing: border-box; hyphens: auto;}
html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bm-white);
    color: var(--bm-text);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; }
section { scroll-margin-top: 96px; }

.container {
    width: min(100% - 32px, 1180px);
    max-width: 1180px;
    padding-left: 0;
    padding-right: 0;
}

.bm-page {
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.bm-section {
    padding: clamp(64px, 8vw, 112px) 0;
}

.bm-section-muted {
    background: var(--bm-soft);
}

/* Navigation */
.bm-navbar {
    min-height: 76px;
    padding: 14px 0;
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid rgba(232, 235, 239, .86);
    backdrop-filter: blur(18px);
}

.bm-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.bm-navbar .navbar-brand img {
    width: 240px;
    height: auto;
    display: block;
    filter: invert(1);
}

.bm-navbar .nav-link {
    padding: .55rem .15rem;
    color: var(--bm-muted);
    font-size: .95rem;
    font-weight: 700;
}

.bm-navbar .nav-link:hover,
.bm-navbar .nav-link:focus,
.bm-navbar .nav-link.active {
    color: var(--bm-ink);
}

.bm-navbar .bm-nav-cta {
    padding: .62rem 1rem;
    border-radius: 999px;
    background: var(--bm-ink);
    color: var(--bm-white);
}

.bm-navbar .bm-nav-cta:hover,
.bm-navbar .bm-nav-cta:focus {
    color: var(--bm-white);
    background: #000;
}

.navbar-toggler {
    border: 1px solid var(--bm-line);
    border-radius: 12px;
    box-shadow: none !important;
}

/* Typography */
.bm-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    color: var(--bm-muted);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bm-kicker::before {
    content: "";
    display: inline-block;
    width: 32px;
    height: 2px;
    border-radius: 999px;
    background: var(--bm-yellow);
}

.bm-title-xl {
    max-width: 900px;
    color: var(--bm-ink);
    font-size: clamp(2.35rem, 6vw, 5.7rem);
    font-weight: 820;
    line-height: .98;
    letter-spacing: -.065em;
}

.bm-title {
    color: var(--bm-ink);
    font-size: clamp(2rem, 4vw, 3.75rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.05em;
}

.bm-copy-lg {
    color: var(--bm-muted);
    font-size: clamp(1.05rem, 1.35vw, 1.22rem);
    line-height: 1.72;
}

.bm-copy {
    color: var(--bm-muted);
    line-height: 1.7;
}

/* Buttons */
.bm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .78rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--bm-ink);
    background: var(--bm-ink);
    color: var(--bm-white);
    font-weight: 750;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.bm-button:hover {
    transform: translateY(-1px);
    color: var(--bm-white);
    text-decoration: none;
}

.bm-button-light {
    background: var(--bm-white);
    color: var(--bm-ink);
    border-color: var(--bm-line);
}

.bm-button-light:hover {
    color: var(--bm-ink);
    border-color: var(--bm-ink);
}

/* Hero */
.bm-hero {
    min-height: 92vh;
    padding: 146px 0 72px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 192, 4, .16), transparent 30%),
        linear-gradient(135deg, #f8f9fa 0%, #eef1f5 100%);
    border-bottom: 1px solid var(--bm-line);
}

.bm-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    gap: clamp(36px, 6vw, 88px);
    align-items: center;
}

.bm-logo-mark {
    width: min(310px, 70vw);
    margin-bottom: clamp(32px, 5vw, 64px);
    filter: invert(1);
}

.bm-hero-media {
    position: relative;
}

.bm-hero-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: var(--bm-shadow);
}

.bm-note-card {
    position: absolute;
    left: -28px;
    bottom: 34px;
    width: min(290px, 78%);
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 20px;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(18px);
    box-shadow: var(--bm-shadow);
}

.bm-note-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--bm-ink);
    font-size: 1.05rem;
}

.bm-note-card span {
    color: var(--bm-muted);
    font-size: .95rem;
    line-height: 1.55;
}

/* Intro / Feature / Services */
.bm-intro-panel,
.bm-feature,
.bm-contact {
    border: 1px solid var(--bm-line);
    border-radius: 28px;
    background: var(--bm-white);
}

.bm-intro-panel {
    padding: clamp(28px, 4vw, 52px);
    box-shadow: var(--bm-shadow);
}

.bm-split-line {
    height: 1px;
    background: var(--bm-line);
    margin: 30px 0;
}

.bm-services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--bm-line);
    border-radius: 28px;
    overflow: hidden;
    background: var(--bm-white);
}

.bm-service {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(24px, 2.5vw, 34px);
    border-right: 1px solid var(--bm-line);
}

.bm-service:last-child { border-right: 0; }

.bm-service-number {
    color: var(--bm-muted);
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.bm-service h3 {
    color: var(--bm-ink);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -.035em;
}

.bm-service ul {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.bm-service li {
    margin-top: 8px;
    color: var(--bm-muted);
    font-size: .96rem;
}

.bm-feature {
    overflow: hidden;
}

.bm-feature img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.bm-feature-content {
    padding: clamp(30px, 5vw, 68px);
}

/* Logo walls */
.bm-logo-wall {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.bm-logo-tile {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--bm-line);
    border-radius: 1.25rem;
    background: var(--bm-white);
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.bm-logo-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(17, 19, 24, .16);
    box-shadow: 0 1rem 2rem rgba(17, 19, 24, .08);
    text-decoration: none;
}

.bm-logo-tile img {
    max-height: 75px;
    max-width: 260px;
    width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .72;
    transition: filter .2s ease, opacity .2s ease;
}

.bm-logo-tile:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Benefits */
.bm-benefits {
    border-radius: 28px;
    background: var(--bm-ink);
    color: var(--bm-white);
    padding: clamp(34px, 6vw, 76px);
}

.bm-benefits .bm-title,
.bm-benefits .bm-copy-lg {
    color: var(--bm-white);
}

.bm-benefits .bm-copy-lg {
    opacity: .72;
}

.bm-benefit-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 36px;
}

.bm-benefit {
    padding: 18px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.78);
}

.bm-benefit::before {
    content: "";
    display: inline-flex;
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--bm-yellow);
}

/* Contact */
.bm-contact {
    overflow: hidden;
    box-shadow: var(--bm-shadow);
}

.bm-contact-image {
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: var(--bm-soft);
}

.bm-contact-image img {
    max-height: 620px;
    object-fit: contain;
}

.bm-contact-content {
    padding: clamp(34px, 6vw, 76px);
}

.bm-socials {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.bm-socials a {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bm-line);
    border-radius: 50%;
    background: var(--bm-orange);
}

.bm-socials img {
    width: 35px;
    height: 35px;
}

/* References page */
.bm-metric-card,
.bm-filter-card,
.bm-project-card,
.bm-cta-box {
    border-radius: 1.5rem;
}

.bm-metric-card {
    height: 100%;
    padding: 1.5rem;
    background: var(--bm-white);
    border: 1px solid var(--bm-line);
}

.bm-metric-card strong {
    display: block;
    color: var(--bm-ink);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1;
    letter-spacing: -.04em;
}

.bm-metric-card span {
    color: var(--bm-muted);
    font-size: .95rem;
}

.bm-filter-card {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    padding: 1rem;
    background: var(--bm-white);
    border: 1px solid var(--bm-line);
}

.bm-filter-card button {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: .65rem 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--bm-soft);
    color: var(--bm-muted);
    font-weight: 700;
    font-size: .93rem;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.bm-filter-card button:hover,
.bm-filter-card button.is-active {
    transform: translateY(-2px);
    background: var(--bm-ink);
    color: var(--bm-white);
}

.bm-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 52px;
    padding: .85rem 1.35rem;
    border: 1px solid var(--bm-line);
    border-radius: 999px;
    background: var(--bm-white);
    color: var(--bm-ink);
    font-weight: 800;
    box-shadow: 0 1rem 2rem rgba(17,19,24,.06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.bm-more-button:hover {
    transform: translateY(-3px);
    border-color: rgba(17, 19, 24, .18);
    box-shadow: 0 1.25rem 2.5rem rgba(17,19,24,.10);
}

.bm-more-button.is-open {
    background: var(--bm-ink);
    color: var(--bm-white);
    border-color: var(--bm-ink);
}

.bm-more-button.is-open svg {
    transform: rotate(180deg);
}

.bm-more-button svg {
    transition: transform .2s ease;
}

.project-item {
    animation: bmFadeIn .28s ease both;
}

@keyframes bmFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bm-project-card {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--bm-white);
    border: 1px solid var(--bm-line);
    box-shadow: 0 1rem 2.5rem rgba(17,19,24,.055);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.bm-project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(17, 19, 24, .16);
    box-shadow: 0 1.5rem 3.5rem rgba(17,19,24,.10);
}

.bm-project-card img.project-img {
    width: 100%;
    aspect-ratio: 16 / 12;
    object-fit: contain;
    background: var(--bm-soft);
}

.bm-project-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.35rem;
}

.bm-project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .85rem;
}

.bm-chip {
    display: inline-flex;
    align-items: center;
    padding: .42rem .68rem;
    border-radius: 999px;
    background: var(--bm-soft);
    color: var(--bm-muted);
    font-size: .8rem;
    font-weight: 750;
}

.bm-project-card h3 {
    margin: 0 0 .55rem;
    color: var(--bm-ink);
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -.03em;
}

.bm-project-card .client-link {
    color: var(--bm-orange);
    font-weight: 700;
    text-decoration: none;
}

.bm-project-card .client-link:hover {
    color: var(--bm-ink);
    /* text-decoration: underline; */
}

.bm-project-card ul {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    color: var(--bm-muted);
    line-height: 1.55;
    font-size: .94rem;
}

.bm-project-card li + li {
    margin-top: .35rem;
}

.bm-small-note {
    display: block;
    margin-top: 1rem;
    color: var(--bm-muted);
    font-size: .78rem;
    line-height: 1.5;
}

.logo-discogs {
    height: 16px;
    width: auto;
    vertical-align: -2px;
}

/* CTA / Footer */
.bm-cta-box {
    padding: clamp(2rem, 6vw, 5rem);
    color: var(--bm-white);
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.16), transparent 28%),
        linear-gradient(135deg, #111318, #2c333d);
    box-shadow: 0 2rem 4rem rgba(17,19,24,.15);
}

.bm-cta-box .bm-kicker,
.bm-cta-box .bm-copy-lg {
    color: rgba(255,255,255,.78);
}

.bm-cta-box .bm-title {
    color: var(--bm-white);
}

.bm-footer {
    padding: 28px 0;
    border-top: 1px solid var(--bm-line);
    color: var(--bm-muted);
    font-size: .92rem;
}

.bm-footer a {
    color: var(--bm-muted);
    text-decoration: none;
}

.bm-footer a:hover {
    color: var(--bm-ink);
}

/* Responsive */
@media (max-width: 991.98px) {
    .bm-navbar .navbar-collapse {
        margin-top: 14px;
        padding: 16px;
        border: 1px solid var(--bm-line);
        border-radius: 18px;
        background: var(--bm-white);
        box-shadow: var(--bm-shadow);
    }

    .bm-navbar .navbar-nav {
        align-items: stretch !important;
        gap: 4px !important;
    }

    .bm-navbar .nav-link {
        padding: .85rem 1rem;
        border-radius: 12px;
    }

    .bm-hero {
        min-height: auto;
        padding: 128px 0 70px;
    }

    .bm-hero-grid {
        grid-template-columns: 1fr;
    }

    .bm-logo-mark {
        margin-bottom: 38px;
    }

    .bm-note-card {
        left: 18px;
        bottom: 18px;
    }

    .bm-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bm-service:nth-child(2) {
        border-right: 0;
    }

    .bm-service:nth-child(1),
    .bm-service:nth-child(2) {
        border-bottom: 1px solid var(--bm-line);
    }

    .bm-logo-wall {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .bm-title-xl {
        font-size: clamp(2.4rem, 15vw, 4rem);
    }

    .bm-services-grid,
    .bm-benefit-list,
    .bm-logo-wall {
        grid-template-columns: 1fr;
    }

    .bm-service {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--bm-line);
    }

    .bm-service:last-child {
        border-bottom: 0;
    }

    .bm-feature img,
    .bm-contact-image {
        min-height: auto;
    }
}