/* ============================================================
   BMG — dark media side (v2). Pure black, white type, soft
   white "hue" behind imagery, one blue glow per section.
   Only active while body.bmg-dark is set (the #media route).
   ============================================================ */
:root {
  --bmg-bg: #000;
  --bmg-card: #0b0b0d;
  --bmg-card-2: #111114;
  --bmg-line: rgba(255,255,255,0.09);
  --bmg-line-2: rgba(255,255,255,0.16);
  --bmg-text: #fff;
  --bmg-dim: rgba(255,255,255,0.62);
  --bmg-faint: rgba(255,255,255,0.40);
}

body.bmg-dark { background: var(--bmg-bg); color: var(--bmg-text); }
body.bmg-dark ::selection { background: #fff; color: #000; }
body.bmg-dark ::-webkit-scrollbar-track { background: #000; }
body.bmg-dark ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); }

/* v2: no grid lines or dot grids anywhere on the site */
.dotgrid, .dotgrid-d, .legal-hero-grid { background-image: none !important; }
.legal-hero-grid { display: none !important; }

/* shared header / footer go black on the media side */
body.bmg-dark header[style*="blur"] { background: rgba(0,0,0,0.72) !important; border-bottom-color: rgba(255,255,255,0.08) !important; }
body.bmg-dark header div[style*="rgb(7, 9, 42)"] { background: #000 !important; }
body.bmg-dark header .btn-white,
body.bmg-dark header nav a[style*="background: rgb(255, 255, 255)"] { color: #000 !important; }
body.bmg-dark footer { background: #000 !important; border-top: 1px solid rgba(255,255,255,0.08); }

/* ---------- intro: the BMG triangle, glowing ---------- */
.bmg-intro { position: fixed; inset: 0; z-index: 10000; background: #000; display: grid; place-items: center; cursor: pointer; transition: opacity .7s cubic-bezier(.2,.7,.2,1), visibility .7s; }
.bmg-intro.out { opacity: 0; visibility: hidden; pointer-events: none; }
.bmg-intro-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.bmg-intro-mark { width: clamp(72px, 9vw, 112px); color: #fff; opacity: 0; transform: scale(.92); animation: bmgMarkIn 1.1s cubic-bezier(.2,.7,.2,1) .15s forwards, bmgGlow 2.4s ease-in-out 1.1s infinite; }
.bmg-intro-halo { position: absolute; width: 46vmin; height: 46vmin; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, rgba(60,110,255,0.10) 35%, rgba(0,0,0,0) 70%); opacity: 0; animation: bmgHalo 1.6s ease .3s forwards; pointer-events: none; }
.bmg-intro-word { font-size: 11px; font-weight: 700; letter-spacing: 0.5em; text-transform: uppercase; color: rgba(255,255,255,0.5); opacity: 0; animation: bmgFade .9s ease .9s forwards; padding-left: .5em; }
@keyframes bmgMarkIn { to { opacity: 1; transform: scale(1); } }
@keyframes bmgGlow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255,255,255,0.35)) drop-shadow(0 0 22px rgba(90,130,255,0.25)); }
  50%      { filter: drop-shadow(0 0 14px rgba(255,255,255,0.7)) drop-shadow(0 0 48px rgba(90,130,255,0.45)); }
}
@keyframes bmgHalo { to { opacity: 1; } }
@keyframes bmgFade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .bmg-intro-mark, .bmg-intro-word, .bmg-intro-halo { animation: none; opacity: 1; transform: none; }
}

/* ---------- page primitives ---------- */
.bmg { background: var(--bmg-bg); color: var(--bmg-text); }
.bmg-sec { position: relative; padding: 120px 0; overflow: hidden; }
.bmg-sec + .bmg-sec { border-top: 1px solid rgba(255,255,255,0.05); }
.bmg-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.bmg-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bmg-faint); }
.bmg-h1 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; font-size: clamp(40px, 6.2vw, 88px); margin: 0; }
.bmg-h2 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; font-size: clamp(30px, 3.8vw, 54px); margin: 14px 0 0; }
.bmg-lead { font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; color: var(--bmg-dim); font-weight: 500; max-width: 640px; margin: 20px 0 0; }
.bmg-grad { background: linear-gradient(180deg, #fff 10%, rgba(255,255,255,0.45) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bmg-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; border: 1px solid var(--bmg-line-2); background: rgba(255,255,255,0.04); font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.8); }
.bmg-glow-top { position: absolute; left: 50%; top: -30vh; width: 120vw; height: 80vh; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(40,80,255,0.28) 0%, rgba(0,0,0,0) 70%); pointer-events: none; }
.bmg-glow-mid { position: absolute; left: 50%; top: 50%; width: 80vw; height: 60vh; transform: translate(-50%,-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(40,80,255,0.14) 0%, rgba(0,0,0,0) 70%); pointer-events: none; }

/* buttons */
.bmg-btn { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0.01em; padding: 14px 24px; border-radius: 999px; transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease); }
.bmg-btn:hover { transform: translateY(-1px); }
.bmg-btn-w { background: #fff; color: #000; box-shadow: 0 0 0 1px #fff, 0 10px 40px -10px rgba(255,255,255,0.35); }
.bmg-btn-d { background: rgba(255,255,255,0.06); color: #fff; box-shadow: inset 0 0 0 1px var(--bmg-line-2); }
.bmg-btn-d:hover { background: rgba(255,255,255,0.1); }

/* stats row */
.bmg-stats { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.bmg-stat { padding: 0 34px; text-align: center; }
.bmg-stat + .bmg-stat { border-left: 1px solid var(--bmg-line-2); }
.bmg-stat b { display: block; font-size: clamp(22px, 2vw, 30px); font-weight: 700; letter-spacing: -0.02em; }
.bmg-stat span { display: block; font-size: 12px; color: var(--bmg-faint); margin-top: 4px; font-weight: 500; }

/* hero VSL */
.bmg-vsl { width: 100%; max-width: 960px; margin-top: 44px; }
.bmg-vsl-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,0.16); background: #050505; box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 0 90px -20px rgba(255,255,255,0.3), 0 50px 100px -50px rgba(0,0,0,0.9); }
.bmg-vsl-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.bmg-vsl-play { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: radial-gradient(60% 60% at 50% 50%, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.45) 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; font-family: inherit; }
.bmg-vsl-btn { width: 84px; height: 84px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255,255,255,0.14), 0 0 50px rgba(255,255,255,0.45); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.bmg-vsl-play:hover .bmg-vsl-btn { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(255,255,255,0.18), 0 0 70px rgba(255,255,255,0.6); }
.bmg-vsl-tri { width: 0; height: 0; border-top: 13px solid transparent; border-bottom: 13px solid transparent; border-left: 21px solid #000; margin-left: 6px; }
.bmg-vsl-label { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,0.7); }
@media (max-width: 560px) { .bmg-vsl-btn { width: 64px; height: 64px; } .bmg-vsl-frame { border-radius: 14px; } }

/* image with the white hue behind it */
.bmg-hue { position: relative; isolation: isolate; }
.bmg-hue::before { content: ""; position: absolute; inset: -14%; z-index: -1; border-radius: 50%; background: radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.05) 40%, rgba(255,255,255,0) 70%); pointer-events: none; }
.bmg-shot { display: block; width: 100%; border-radius: 16px; border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 0 60px -18px rgba(255,255,255,0.28), 0 40px 80px -40px rgba(0,0,0,0.9); background: #0d0d10; }

/* client rail */
.bmg-rail { display: flex; gap: 16px; width: max-content; animation: bmgRail 60s linear infinite; padding: 40px 0 10px; }
.bmg-rail:hover { animation-play-state: paused; }
@keyframes bmgRail { to { transform: translateX(-50%); } }
.bmg-rail-card { width: 210px; flex: none; }
.bmg-rail-img { aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 0 50px -14px rgba(255,255,255,0.3); background: #111; }
.bmg-rail-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.9); transition: transform .5s var(--ease), filter .3s; }
.bmg-rail-card:hover .bmg-rail-img img { transform: scale(1.04); filter: saturate(1.05); }
.bmg-fade-x { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); overflow: hidden; }

/* cards */
.bmg-card { background: linear-gradient(180deg, var(--bmg-card-2) 0%, var(--bmg-card) 100%); border: 1px solid var(--bmg-line); border-radius: 22px; }
.bmg-tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--bmg-line-2); color: rgba(255,255,255,0.78); }

/* case studies */
.bmg-case { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding: 64px 0; }
.bmg-case + .bmg-case { border-top: 1px solid rgba(255,255,255,0.07); }
.bmg-case.flip > :first-child { order: 2; }
.bmg-case-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 34px; margin-top: 28px; }
.bmg-case-stats b { display: block; font-size: clamp(22px, 2.2vw, 32px); font-weight: 700; letter-spacing: -0.02em; }
.bmg-case-stats span { display: block; font-size: 12px; color: var(--bmg-faint); margin-top: 4px; font-weight: 500; }
.bmg-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bmg-g2 img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* testimonials */
.bmg-quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 56px; text-align: left; width: 100%; }
.bmg-quote { padding: 32px 32px 28px; display: flex; flex-direction: column; gap: 22px; }
.bmg-quote p { margin: 0; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: rgba(255,255,255,0.88); font-weight: 500; }
.bmg-stars { color: #fff; letter-spacing: 3px; font-size: 13px; }
.bmg-tp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; align-items: start; width: 100%; }
.bmg-tp-col { display: flex; flex-direction: column; gap: 18px; }
.bmg-tp img { background: #fff; padding: 6px; }

/* services / process / compare */
.bmg-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; width: 100%; text-align: left; }
.bmg-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 56px; width: 100%; text-align: left; border-top: 1px solid var(--bmg-line-2); }
.bmg-step { padding: 26px 22px 0 0; }
.bmg-step .n { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--bmg-faint); }
.bmg-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 56px; width: 100%; text-align: left; }
.bmg-row { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid var(--bmg-line); font-size: 15.5px; font-weight: 600; }

/* team */
.bmg-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 56px; width: 100%; text-align: left; }
.bmg-team img { aspect-ratio: 3 / 4; object-fit: cover; }

/* reel reuse — tiles already dark */
.bmg .reel-item { border-color: rgba(255,255,255,0.12) !important; }

/* contact */
.bmg-contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; margin-top: 48px; width: 100%; text-align: left; }
.bmg-field { display: flex; flex-direction: column; gap: 8px; }
.bmg-field span { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bmg-faint); }
.bmg-field input, .bmg-field textarea { background: rgba(255,255,255,0.04); border: 1px solid var(--bmg-line-2); border-radius: 12px; padding: 13px 14px; font: inherit; font-size: 15.5px; color: #fff; outline: none; transition: border-color .16s; resize: vertical; }
.bmg-field input:focus, .bmg-field textarea:focus { border-color: rgba(255,255,255,0.55); }
.bmg-field input::placeholder, .bmg-field textarea::placeholder { color: rgba(255,255,255,0.3); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .bmg-steps { grid-template-columns: 1fr 1fr; }
  .bmg-team { grid-template-columns: repeat(2, 1fr); }
  .bmg-tp { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .bmg-sec { padding: 84px 0; }
  .bmg-case, .bmg-cmp, .bmg-contact { grid-template-columns: 1fr; }
  .bmg-case.flip > :first-child { order: 0; }
  .bmg-3, .bmg-quotes { grid-template-columns: 1fr; }
  .bmg-stat { padding: 10px 18px; }
  .bmg-stat + .bmg-stat { border-left: 0; }
  .bmg-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .bmg-rail-card { width: 160px; }
}
@media (max-width: 560px) {
  .bmg-steps { grid-template-columns: 1fr; }
  .bmg-tp { grid-template-columns: 1fr; }
  .bmg-case-stats { grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
}

/* case modal: the sticky text column must not ride over the screenshots once it stacks */
@media (max-width: 1100px) { .case-modal .case-detail > div { position: static !important; } }

/* ============================================================
   v3 polish — Linear / Raycast / Resend-style refinements.
   Layered on top of v2; scoped to .bmg so the BVS side is untouched.
   ============================================================ */
:root {
  --bmg-hair: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0) 100%);
  --bmg-blue: 90,130,255;
}

/* film grain over the whole page — kills flat-black banding */
.bmg { position: relative; isolation: isolate; font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; }
.bmg::after { content: ""; position: fixed; inset: 0; z-index: 9990; pointer-events: none; background-image: url("noise.svg"); background-size: 160px; opacity: 0.045; mix-blend-mode: overlay; }

/* section dividers: a hairline that fades out at both ends instead of a full-width rule */
.bmg-sec + .bmg-sec { border-top: 0; }
.bmg-sec + .bmg-sec::before { content: ""; position: absolute; top: 0; left: 50%; width: min(1100px, 90vw); height: 1px; transform: translateX(-50%); background: var(--bmg-hair); }
.bmg-case + .bmg-case { border-top: 0; position: relative; }
.bmg-case + .bmg-case::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--bmg-hair); }

/* type: tighter display, balanced line breaks, no orphans */
.bmg-h1 { letter-spacing: -0.045em; line-height: 0.98; text-wrap: balance; }
.bmg-h2 { letter-spacing: -0.038em; text-wrap: balance; }
.bmg h3 { text-wrap: balance; }
.bmg-lead, .bmg p { text-wrap: pretty; }
.bmg-grad { background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.38) 100%); -webkit-background-clip: text; background-clip: text; }

/* kicker: small glowing dot in front, like a status light */
.bmg-kicker { display: inline-flex; align-items: center; gap: 10px; }
.bmg-center > .bmg-kicker::before, .bmg-sec .bmg-center > .reveal.bmg-kicker::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgb(var(--bmg-blue)); box-shadow: 0 0 10px 1px rgba(var(--bmg-blue),0.8); }

/* hero pill: gradient border + soft sheen */
.bmg-pill { border: 0; background: linear-gradient(#0a0a0c, #0a0a0c) padding-box, linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.06)) border-box; border: 1px solid transparent; box-shadow: 0 0 30px -8px rgba(var(--bmg-blue),0.45); }

/* hero glow: a second, tighter beam so the top reads as a light source */
.bmg-glow-top { background: radial-gradient(50% 50% at 50% 50%, rgba(40,80,255,0.26) 0%, rgba(0,0,0,0) 70%); }
.bmg-glow-top::after { content: ""; position: absolute; left: 50%; top: 50%; width: 38vw; height: 30vh; transform: translate(-50%,-10%); background: radial-gradient(50% 50% at 50% 50%, rgba(160,185,255,0.18) 0%, rgba(0,0,0,0) 70%); filter: blur(10px); }

/* stats: tabular numerals, faded-gradient values, hairline separators */
.bmg-stat b, .bmg-case-stats b { font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,0.55) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bmg-stat + .bmg-stat { border-left: 0; position: relative; }
.bmg-stat + .bmg-stat::before { content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 1px; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.2), rgba(255,255,255,0)); }

/* buttons: inner top highlight, gradient edge on the dark one, visible focus */
.bmg-btn { transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .25s var(--ease); }
.bmg-btn span { display: inline-block; transition: transform .2s var(--ease); }
.bmg-btn:hover span { transform: translateX(3px); }
.bmg-btn-w { background: linear-gradient(180deg, #fff 0%, #e9e9ee 100%); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(255,255,255,0.9), 0 10px 40px -10px rgba(255,255,255,0.35); }
.bmg-btn-w:hover { box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #fff, 0 14px 50px -10px rgba(255,255,255,0.55); }
.bmg-btn-d { background: linear-gradient(rgba(18,18,22,1), rgba(10,10,12,1)) padding-box, linear-gradient(180deg, rgba(255,255,255,0.26), rgba(255,255,255,0.06)) border-box; border: 1px solid transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.bmg-btn-d:hover { background: linear-gradient(rgba(26,26,32,1), rgba(14,14,17,1)) padding-box, linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1)) border-box; }
.bmg-btn:focus-visible, .bmg-vsl-play:focus-visible { outline: 2px solid rgba(var(--bmg-blue),0.9); outline-offset: 3px; }

/* cards: top-edge highlight + cursor spotlight (Linear style). --mx/--my set by PageMediaV2 */
.bmg-card { position: relative; background: linear-gradient(180deg, #0f0f12 0%, #09090b 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 30px 60px -40px rgba(0,0,0,0.8); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.bmg-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -200px), rgba(255,255,255,0.35), rgba(255,255,255,0) 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s var(--ease); }
.bmg-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -200px), rgba(var(--bmg-blue),0.07), rgba(0,0,0,0) 60%); opacity: 0; transition: opacity .3s var(--ease); }
.bmg-card:hover::before, .bmg-card:hover::after { opacity: 1; }
.bmg-card > * { position: relative; z-index: 1; }

/* testimonials: oversized quote mark */
.bmg-quote { overflow: hidden; }
.bmg-quote .bmg-qmark { position: absolute; right: 22px; top: 6px; font-size: 120px; line-height: 1; font-weight: 700; color: rgba(255,255,255,0.05); font-family: Georgia, serif; pointer-events: none; z-index: 0; }

/* tags: quieter */
.bmg-tag { background: rgba(255,255,255,0.025); border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }

/* imagery: gentle lift on hover, subtler default glow */
.bmg-shot { transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 50px -20px rgba(255,255,255,0.22), 0 40px 80px -40px rgba(0,0,0,0.9); }
.bmg-case .bmg-shot:hover, .bmg-team .bmg-shot:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.24); box-shadow: 0 0 70px -18px rgba(255,255,255,0.32), 0 40px 80px -40px rgba(0,0,0,0.9); }
.bmg-team .bmg-shot { filter: grayscale(0.25) contrast(1.02); transition: filter .4s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); }
.bmg-team .bmg-shot:hover { filter: none; }
.bmg-rail-img { box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 40px -16px rgba(255,255,255,0.25); }
.bmg-rail-img img { filter: saturate(0.8) brightness(0.92); }
.bmg-rail-card:hover .bmg-rail-img img { filter: saturate(1.05) brightness(1); }

/* process: a lit node on the timeline above each step */
.bmg-step { position: relative; }
.bmg-step::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: #0a0a0c; border: 1px solid rgba(255,255,255,0.45); box-shadow: 0 0 12px rgba(var(--bmg-blue),0.5); }
.bmg-steps { border-top: 0; background: linear-gradient(90deg, rgba(255,255,255,0.22), rgba(255,255,255,0.04)) top / 100% 1px no-repeat; }

/* contact: glowing focus ring on fields */
.bmg-field input, .bmg-field textarea { background: rgba(255,255,255,0.03); transition: border-color .18s, box-shadow .18s, background .18s; }
.bmg-field input:focus, .bmg-field textarea:focus { border-color: rgba(var(--bmg-blue),0.7); background: rgba(255,255,255,0.05); box-shadow: 0 0 0 4px rgba(var(--bmg-blue),0.14); }

/* scroll reveal on the media side: add a light blur-in */
.bmg .reveal { transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.bmg .reveal.pre { filter: blur(6px); }
@media (prefers-reduced-motion: reduce) { .bmg .reveal.pre { filter: none; } .bmg-card, .bmg-shot, .bmg-btn { transition: none; } }
@media (hover: none) { .bmg-card::before, .bmg-card::after { display: none; } }
/* wrapped process grid: each step carries its own hairline + node */
@media (max-width: 1000px) {
  .bmg-steps { background: none; row-gap: 34px; column-gap: 28px; }
  .bmg-step { padding-right: 0; border-top: 1px solid var(--bmg-line-2); }
}
@media (max-width: 820px) { .bmg-stat + .bmg-stat::before { display: none; } }

/* Pavle case: behind-the-scenes row, analytics caption, portrait strip */
.bmg-bts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bmg-bts > img, .bmg-bts video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; }
.bmg-loop { position: relative; }
.bmg-loop-tag { position: absolute; left: 10px; top: 10px; z-index: 2; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; padding: 4px 8px; border-radius: 999px; color: #fff; background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(6px); display: inline-flex; align-items: center; gap: 6px; }
.bmg-loop-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 8px #ff3b3b; }
.bmg-fig { margin: 0; }
.bmg-fig figcaption { margin-top: 10px; font-size: 12px; color: var(--bmg-faint); font-weight: 500; }

/* ---------- client journey (replaces the old 5-step strip) ---------- */
.bmg-jny { width: 100%; margin-top: 56px; text-align: left; }
.bmg-jny-rail { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.bmg-jny-rail::before { content: ""; position: absolute; left: 4%; right: 4%; top: 19px; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.22) 20%, rgba(255,255,255,0.22) 80%, rgba(255,255,255,0.04)); }
.bmg-jny-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 4px 14px; background: none; border: 0; cursor: pointer; font-family: inherit; color: #fff; text-align: center; border-radius: 14px; }
.bmg-jny-step .dot { width: 39px; height: 39px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; background: #0a0a0c; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.55); transition: all .25s var(--ease); }
.bmg-jny-step .t { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; color: rgba(255,255,255,0.6); transition: color .2s; margin-top: 6px; }
.bmg-jny-step .w { font-size: 11.5px; font-weight: 500; color: var(--bmg-faint); }
.bmg-jny-step:hover .t { color: #fff; }
.bmg-jny-step:hover .dot { border-color: rgba(255,255,255,0.45); color: #fff; }
.bmg-jny-step.done .dot { border-color: rgba(var(--bmg-blue),0.6); color: rgba(255,255,255,0.8); }
.bmg-jny-step.on .dot { background: #fff; color: #000; border-color: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,0.08), 0 0 30px rgba(var(--bmg-blue),0.6); }
.bmg-jny-step.on .t { color: #fff; }
.bmg-jny-step:focus-visible { outline: 2px solid rgba(var(--bmg-blue),0.9); outline-offset: 2px; }

.bmg-jny-panel { margin-top: 26px; padding: clamp(26px, 3vw, 44px); display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 4vw, 64px); align-items: start; animation: bmgJnyIn .45s var(--ease); }
@keyframes bmgJnyIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bmg-jny-panel .bmg-btn:disabled { opacity: 0.35; cursor: default; transform: none; }
.bmg-jny-cols { display: grid; gap: 22px; }
.bmg-jny-lab { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bmg-faint); margin-bottom: 6px; }
.bmg-jny-tick { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.18); }
.bmg-jny-you { padding: 18px 20px; border-radius: 14px; background: linear-gradient(180deg, rgba(var(--bmg-blue),0.12), rgba(var(--bmg-blue),0.04)); border: 1px solid rgba(var(--bmg-blue),0.3); }
.bmg-jny-you p { margin: 0; font-size: 15.5px; line-height: 1.55; font-weight: 600; color: rgba(255,255,255,0.92); }

.bmg-jny-rhythm { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; padding: 18px 24px; border-radius: 16px; border: 1px dashed rgba(255,255,255,0.14); }
.bmg-jny-rhythm .flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bmg-jny-rhythm .chip { font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); }
.bmg-jny-rhythm .arr { color: var(--bmg-faint); font-size: 13px; }

@media (max-width: 900px) {
  .bmg-jny-rail { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .bmg-jny-rail::before { display: none; }
  .bmg-jny-panel { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .bmg-jny-step .t { font-size: 13px; }
  .bmg-jny-rhythm { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .bmg-jny-panel { animation: none; } }

/* ---------- why us: head-to-head table ---------- */
.bmg-vs-wrap { width: 100%; margin-top: 52px; text-align: left; }
.bmg-vs { position: relative; border-radius: 22px; border: 1px solid var(--bmg-line); background: linear-gradient(180deg, #0c0c0f, #08080a); overflow: hidden; }
/* the BMG column is one continuous lit panel */
.bmg-vs::before { content: ""; position: absolute; top: 0; bottom: 0; left: 58%; right: 0; background: linear-gradient(180deg, rgba(var(--bmg-blue),0.14) 0%, rgba(var(--bmg-blue),0.04) 60%, rgba(255,255,255,0.02) 100%); border-left: 1px solid rgba(var(--bmg-blue),0.35); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), -30px 0 80px -40px rgba(var(--bmg-blue),0.6); pointer-events: none; }
.bmg-vs-row { position: relative; display: grid; grid-template-columns: 18% 40% 42%; align-items: center; }
.bmg-vs-row + .bmg-vs-row { border-top: 1px solid rgba(255,255,255,0.06); }
.bmg-vs-row > span { padding: 20px 24px; font-size: 15px; line-height: 1.5; }
.bmg-vs-row .k { font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bmg-faint); }
.bmg-vs-row .them { color: rgba(255,255,255,0.42); font-weight: 500; display: flex; gap: 12px; align-items: baseline; }
.bmg-vs-row .us { color: #fff; font-weight: 600; display: flex; gap: 12px; align-items: baseline; padding-left: 30px; }
.bmg-vs-row i { font-style: normal; flex: none; width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10px; font-weight: 800; transform: translateY(2px); }
.bmg-vs-row .them i { color: rgba(255,255,255,0.35); border: 1px solid rgba(255,255,255,0.14); }
.bmg-vs-row .us i { background: #fff; color: #000; box-shadow: 0 0 12px rgba(var(--bmg-blue),0.7); }
.bmg-vs-head > span { padding-top: 22px; padding-bottom: 18px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.bmg-vs-head .them { color: var(--bmg-faint); }
.bmg-vs-head .us { color: #fff; align-items: center; gap: 9px; }
.bmg-vs-row:not(.bmg-vs-head):hover { background: rgba(255,255,255,0.015); }
.bmg-vs-cta { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 4px 4px 0; }
.bmg-vs-cta > span { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: rgba(255,255,255,0.85); }

/* phones: each row becomes a small card — topic, then them (faint), then us (lit) */
@media (max-width: 760px) {
  .bmg-vs::before { display: none; }
  .bmg-vs-head { display: none; }
  .bmg-vs-row { grid-template-columns: 1fr; padding: 18px 18px 16px; gap: 8px; }
  .bmg-vs-row > span { padding: 0; }
  .bmg-vs-row .us { padding: 10px 12px; border-radius: 12px; background: rgba(var(--bmg-blue),0.1); border: 1px solid rgba(var(--bmg-blue),0.3); }
  .bmg-vs-row .them { padding: 0 12px; font-size: 14px; }
  .bmg-vs-cta { justify-content: center; text-align: center; }
}

/* ---------- what we do: strategy leads, full width ---------- */
.bmg-svc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 56px; width: 100%; text-align: left; }
.bmg-svc-lead { grid-column: 1 / -1; padding: clamp(28px, 3vw, 44px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: clamp(28px, 4vw, 64px); align-items: start; border-color: rgba(var(--bmg-blue),0.3); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 90px -40px rgba(var(--bmg-blue),0.55); }
.bmg-svc-n { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--bmg-faint); }
.bmg-svc-t { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.03em; margin-top: 18px; }
.bmg-svc-d { font-size: 15px; line-height: 1.6; color: var(--bmg-dim); margin: 12px 0 0; font-weight: 500; }
.bmg-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--bmg-line); border-left: 1px solid var(--bmg-line); border-radius: 14px; overflow: hidden; }
.bmg-svc-item { padding: 20px 20px 22px; border-right: 1px solid var(--bmg-line); border-bottom: 1px solid var(--bmg-line); background: rgba(255,255,255,0.012); }
.bmg-svc-item .t { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 9px; }
.bmg-svc-item .t::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgb(var(--bmg-blue)); box-shadow: 0 0 8px rgba(var(--bmg-blue),0.9); flex: none; }
.bmg-svc-item p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--bmg-dim); font-weight: 500; }
.bmg-svc-grid { border-right: 0; }
@media (max-width: 1000px) {
  .bmg-svc-lead { grid-template-columns: 1fr; }
  .bmg-svc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .bmg-svc { grid-template-columns: 1fr; }
  .bmg-svc-grid { grid-template-columns: 1fr; }
}

/* hero: star field inside the blue glow, fading out before the headline */
.bmg-stars-top { position: absolute; left: 0; right: 0; top: 0; height: min(78vh, 720px); isolation: isolate; pointer-events: none;
  -webkit-mask-image: radial-gradient(75% 85% at 50% 0%, #000 0%, #000 40%, transparent 100%);
          mask-image: radial-gradient(75% 85% at 50% 0%, #000 0%, #000 40%, transparent 100%); }
@media (max-width: 640px) { .bmg-stars-top { height: 60vh; } }

/* header: the BMG lockup is wider than "BVS." — tighten the nav before the burger takes over at 960px */
@media (min-width: 961px) and (max-width: 1180px) {
  body.bmg-dark header nav a { padding: 9px 10px !important; }
  body.bmg-dark header nav button { margin-left: 6px !important; }
}
@media (min-width: 961px) and (max-width: 1040px) {
  body.bmg-dark header nav a { padding: 9px 8px !important; font-size: 12.5px !important; }
}

/* hero thesis under the client rail: content = revenue */
.bmg-thesis { max-width: 860px; margin: 96px auto 0; text-align: center; }
.bmg-thesis-eq { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; font-size: clamp(26px, 3.2vw, 44px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.bmg-thesis-eq i { font-style: normal; display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 50%; font-size: 0.7em; background: rgba(var(--bmg-blue),0.14); border: 1px solid rgba(var(--bmg-blue),0.45); box-shadow: 0 0 30px -4px rgba(var(--bmg-blue),0.7); color: #fff; }
.bmg-thesis p { margin: 22px auto 0; max-width: 720px; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.7; color: var(--bmg-dim); font-weight: 500; text-wrap: pretty; }

/* case story links */
.bmg-story-btn { margin-top: 26px; text-decoration: none; padding: 12px 20px; }
.bmg-link { margin-top: 22px; display: inline-flex; gap: 8px; align-items: center; color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 3px; transition: border-color .2s; }
.bmg-link:hover { border-color: #fff; }
.bmg-link span { transition: transform .2s var(--ease); }
.bmg-link:hover span { transform: translateX(3px); }
.bmg-thesis p + p { margin-top: 14px; color: rgba(255,255,255,0.9); }
.bmg-fit { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.bmg-fit span { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; padding: 9px 15px 9px 11px; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid var(--bmg-line-2); }
.bmg-fit i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10px; font-weight: 800; background: #fff; color: #000; box-shadow: 0 0 12px rgba(var(--bmg-blue),0.7); }
.bmg-thesis-eq i { line-height: 0; }
.bmg-thesis-eq i svg { width: 58%; height: 58%; display: block; }
/* .wrap in site.css (loaded later) resets margin to 0 auto — win on specificity */
.wrap.bmg-thesis { margin-top: 128px; }
@media (max-width: 760px) { .wrap.bmg-thesis { margin-top: 88px; } }

/* gradient text: background-clip only paints inside the box, and the tight display line-height
   clips descenders (g, y, p). Extend the paint area down, then cancel it out of the layout. */
.bmg-grad { padding-bottom: 0.14em; margin-bottom: -0.14em; }

/* case story button: filled electric blue so it stands out from the grey tags around it */
.bmg-story-btn { color: #fff; background: linear-gradient(180deg, #4f7bff 0%, #2350f5 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 0 0 1px rgba(120,150,255,0.6), 0 12px 40px -10px rgba(60,100,255,0.75); font-weight: 700; }
.bmg-story-btn:hover { background: linear-gradient(180deg, #6a90ff 0%, #2f5cff 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 0 0 1px rgba(150,175,255,0.8), 0 16px 50px -10px rgba(60,100,255,0.95); }

/* case story button v2: white by default, turns electric blue on hover / press / keyboard focus */
.bmg-story-btn { color: #000; background: linear-gradient(180deg, #fff 0%, #e9e9ee 100%); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(255,255,255,0.9), 0 10px 40px -10px rgba(255,255,255,0.35); transition: transform .18s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .25s var(--ease); }
.bmg-story-btn:hover, .bmg-story-btn:active, .bmg-story-btn:focus-visible { color: #fff; background: linear-gradient(180deg, #4f7bff 0%, #2350f5 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 0 0 1px rgba(120,150,255,0.7), 0 14px 46px -10px rgba(60,100,255,0.85); }
.bmg-story-btn:active { transform: translateY(0) scale(0.98); }
