/* Mr Nice Guy x Bloom — Cannabis / CBD vertical case study page.
   Source: Figma QkIjycaH4oxLLAgYHWfbql, frame 338:201 (drawn at 11.3x; values below are the 1440px desktop equivalents).
   Everything is scoped under .mg so it can't leak into the Bootstrap globals. */

@font-face {
	font-family: 'Open Sans RW';
	src: url('../ravenwire/fonts/open-sans-var-latin.woff2') format('woff2');
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}

.mg {
	--mg-gold: #d1a653;
	--mg-gold-dark: #99804d;
	--mg-ink: #252e29;
	--mg-muted: #666b66;
	--mg-sage: #e9ebe6;
	--mg-blue: #26638d;
	--mg-red: #d22630;
	--mg-night: #1b1d22;
	--mg-wrap: 1248px;
	font-family: 'Open Sans RW', 'Open Sans', Arial, sans-serif;
	color: var(--mg-ink);
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}
.mg *, .mg *::before, .mg *::after { box-sizing: border-box; }
.mg h1, .mg h2, .mg h3, .mg p, .mg dl, .mg dd, .mg dt, .mg figure, .mg ul { margin: 0; padding: 0; font-family: inherit; text-transform: none; letter-spacing: normal; }
.mg ul { list-style: none; }
.mg img { display: block; max-width: 100%; }
.mg a { text-decoration: none; }
.mg-wrap { width: min(var(--mg-wrap), 100% - 48px); margin-inline: auto; position: relative; }
.mg-section { padding: 96px 0; }
.mg-bar { display: block; width: 32px; height: 4px; border-radius: 2px; background: var(--mg-gold); }
.mg-bar--blue { background: var(--mg-blue); }

.mg-h2 { font-size: 32px; font-weight: 800; line-height: 1.2; text-align: center; color: var(--mg-ink); }
.mg-h2--gold { color: var(--mg-gold); text-shadow: 0 2px 4px rgba(0,0,0,.8), 0 4px 28px rgba(0,0,0,.85), 0 0 60px rgba(0,0,0,.6); }
.mg-lede { font-size: 16px; line-height: 1.55; text-align: center; color: var(--mg-muted); max-width: 760px; }
.mg-lede--white { color: #fff; line-height: 1.5; max-width: 656px; text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 2px 16px rgba(0,0,0,.85), 0 0 36px rgba(0,0,0,.7); }
.mg-sub { font-size: 15px; color: #59635e; text-align: center; }
.mg-head { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.mg-head--left { margin-inline: auto; max-width: 656px; }

.mg-label-w, .mg-label-g, .mg-label-b { font-family: 'Inter', 'Open Sans RW', Arial, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; }
.mg-label-w { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 1px 12px rgba(0,0,0,.8); }
.mg-label-g { color: var(--mg-gold); font-size: 13px; }
.mg-label-b { color: var(--mg-blue); font-family: 'Open Sans RW', 'Open Sans', Arial, sans-serif; letter-spacing: 1.2px; }

/* Buttons */
.mg-btn {
	display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer;
	font: 700 15px/1.2 'Open Sans RW', 'Open Sans', Arial, sans-serif;
	padding: 18px 32px; border-radius: 60px; background: var(--mg-gold); color: #1b2d24;
	transition: filter .15s ease, transform .15s ease;
}
.mg-btn:hover, .mg-btn:focus-visible { filter: brightness(1.08); transform: translateY(-1px); color: #1b2d24; }
.mg-btn--red { background: var(--mg-red); color: #fff; width: 100%; font-family: 'Inter', 'Open Sans RW', Arial, sans-serif; font-size: 16px; padding: 16px; }
.mg-btn--red:hover, .mg-btn--red:focus-visible { color: #fff; }

.mg-pill { display: inline-block; align-self: flex-start; background: var(--mg-gold); color: var(--mg-ink); border-radius: 60px; padding: 4px 8px; font-size: 11px; font-weight: 700; letter-spacing: .44px; line-height: 1.5; }

/* ---------- Hero ---------- */
.mg-hero { position: relative; isolation: isolate; min-height: 870px; display: flex; align-items: center; justify-content: center; background: #1b1d22; overflow: hidden; color: #fff; }
.mg-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% top; z-index: -3; }
.mg-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(250.7deg, rgba(92,43,23,.08) 41.8%, rgba(92,43,23,.16) 47.3%, rgba(92,43,23,.24) 58.4%, rgba(92,43,23,.32) 70.7%, rgba(92,43,23,.44) 78.8%); }
.mg-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 55% 60% at 50% 42%, rgba(0,0,0,.38), rgba(0,0,0,0) 100%), linear-gradient(180deg, rgba(0,0,0,0) 66%, rgba(0,0,0,.45) 100%), linear-gradient(90deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.22) 100%); }
.mg-hero__inner { width: min(960px, 100% - 48px); padding: 120px 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 40px; }
.mg-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .26px; color: var(--mg-gold); text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 2px 18px rgba(0,0,0,.85), 0 0 40px rgba(0,0,0,.7); }
.mg-hero__title { font-size: 55px; font-weight: 800; line-height: 1.05; color: #fff; max-width: 920px; text-shadow: 0 2px 4px rgba(0,0,0,.8), 0 4px 28px rgba(0,0,0,.85), 0 0 60px rgba(0,0,0,.6); }
.mg-hero__sub { font-size: 17px; line-height: 1.55; color: #fff; max-width: 760px; text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 2px 16px rgba(0,0,0,.85), 0 0 36px rgba(0,0,0,.7); }
.mg-hero__stats { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.mg-hero__stat { background: rgba(60,60,67,.62); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 20px 28px; display: flex; flex-direction: column; gap: 4px; align-items: center; backdrop-filter: blur(2px); }
.mg-hero__stat strong { font-size: 26px; font-weight: 800; color: #fff; line-height: 1.2; }
.mg-hero__stat span { font-size: 12px; font-weight: 600; color: #d3dad6; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.mg-hero__stat strong { text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.mg-hero__cta { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.mg-hero__cta p { font-size: 13px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 1px 12px rgba(0,0,0,.8); }
.mg-hero__proof { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.mg-hero__logos { display: flex; align-items: center; justify-content: center; gap: 66px; }
.mg-hero__logos li:nth-child(1) { width: 314px; }
.mg-hero__logos li:nth-child(2) { width: 175px; }
.mg-hero__logos li:nth-child(3) { width: 212px; }
.mg-hero__logos img, .mg-clients__logos img { width: 100%; height: auto; object-fit: contain; }

/* ---------- The vertical ---------- */
.mg-vertical { background: #fff; }
.mg-vertical .mg-head { max-width: 760px; margin-inline: auto; }
.mg-vertical__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.mg-card { background: var(--mg-sage); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.mg-card h3 { font-size: 17px; font-weight: 700; line-height: 1.25; color: var(--mg-ink); }
.mg-card p { font-size: 14px; line-height: 1.5; color: var(--mg-muted); }

/* ---------- Playbook ---------- */
.mg-playbook { position: relative; isolation: isolate; background: #1b2d24; color: #fff; min-height: 820px; display: flex; align-items: center; }
.mg-playbook > .mg-wrap { width: min(var(--mg-wrap), 100% - 48px); }
.mg-playbook__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mg-playbook::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(3,3,3,0) 43%, rgba(3,3,3,.5) 100%), linear-gradient(90deg, rgba(92,43,23,.36) 0%, rgba(92,43,23,.275) 35%, rgba(92,43,23,.21) 65%, rgba(92,43,23,.15) 100%); }
.mg-playbook .mg-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 56px; }
.mg-playbook .mg-bar { box-shadow: 0 1px 8px rgba(0,0,0,.6); }
.mg-playbook .mg-head { align-items: center; width: 656px; max-width: 100%; margin: 0; }
.mg-case-card { background: #fff; border-radius: 16px; padding: 36px; width: 656px; max-width: 100%; display: flex; flex-direction: column; gap: 20px; color: var(--mg-ink); }
.mg-case-card h3 { font-size: 26px; font-weight: 800; line-height: 1.2; }
.mg-case-card__lede { font-size: 14px; line-height: 1.45; color: var(--mg-muted); }
.mg-mechanic { background: #f6f6f4; border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.mg-mechanic span { font-size: 11px; font-weight: 700; letter-spacing: .11px; color: var(--mg-gold-dark); }
.mg-mechanic p { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--mg-ink); }
.mg-case-card__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mg-case-card__stats dt { font-size: 22px; font-weight: 800; line-height: 1.2; color: var(--mg-ink); }
.mg-case-card__stats dd { font-size: 12px; line-height: 1.3; color: var(--mg-muted); margin-top: 2px; }
.mg-case-card__note { font-size: 13px; line-height: 1.45; color: #808580; }

/* ---------- See it in action ---------- */
.mg-deck { background: var(--mg-gold); padding: 96px 0; }
.mg-deck__inner { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 64px; align-items: stretch; }
.mg-deck__copy { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; font-family: 'Inter', 'Open Sans RW', Arial, sans-serif; }
.mg-deck__copy > div { display: flex; flex-direction: column; gap: 20px; }
.mg-deck__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; color: #000; }
.mg-deck h2 { font-size: 22px; font-weight: 700; line-height: 1.25; color: #fff; }
.mg-deck__title { font-size: 15px; font-weight: 600; color: #fff; }
.mg-deck__body { font-size: 16px; line-height: 1.45; color: #000; }
.mg-deck__meta { font-size: 14px; line-height: 1.45; color: #000; }
.mg-deck__logo { width: 314px; height: auto; }
.mg-deck__frame { background: #fff; border: 1px solid #8c8c94; border-radius: 6px; overflow: hidden; aspect-ratio: 1280 / 749; width: 100%; align-self: center; }
.mg-deck__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.mg-slide { height: 100%; display: flex; align-items: center; justify-content: center; gap: 24px; padding: 64px; font-family: 'Inter', 'Open Sans RW', Arial, sans-serif; background: #fff; }
.mg-slide__stack { display: flex; flex-direction: column; align-items: center; gap: 8px; white-space: nowrap; }
.mg-slide__stack b { font-size: 15px; letter-spacing: 1px; color: #141417; }
.mg-slide__stack i { font-style: normal; font-size: 12px; color: #737378; }
.mg-slide__stack .mg-slide__r5 { font-size: 13px; color: #737378; }
.mg-slide__rule { width: 2px; align-self: stretch; background: var(--mg-red); }
.mg-slide__info { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #737378; }
.mg-slide__info strong { font-size: 15px; font-weight: 600; color: #141417; margin-bottom: 2px; }

/* ---------- Wireframe flow ---------- */
.mg-flow { position: relative; isolation: isolate; background: var(--mg-night); color: #fff; padding: 96px 0; overflow: hidden; }
.mg-flow__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mg-flow::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(92,43,23,.47) 0%, rgba(92,43,23,.45) 35%, rgba(92,43,23,.36) 55%, rgba(92,43,23,.225) 68%, rgba(92,43,23,.09) 85%, rgba(92,43,23,.025) 100%); }
.mg-flow__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; font-family: 'Inter', 'Open Sans RW', Arial, sans-serif; text-shadow: 0 1px 14px rgba(0,0,0,.65); }
.mg-flow__head h2 { font-size: 32px; font-weight: 700; line-height: 1.2; color: #fff; }
.mg-flow__head p:last-child { font-size: 15px; line-height: 1.45; color: #b8b8ba; max-width: 700px; }
.mg-rail { display: flex; align-items: flex-start; gap: 40px; margin: 40px calc(50% - 50vw) 0 0; padding: 0 24px 24px 0; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.35) transparent; }
.mg-screen { flex: 0 0 240px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.mg-screen figcaption { font-family: 'Inter', 'Open Sans RW', Arial, sans-serif; font-size: 13px; font-weight: 700; color: var(--mg-gold); white-space: nowrap; }
.mg-phone { width: 100%; padding: 6px 5px; border: 1px solid rgba(38,99,141,.4); border-radius: 26px; background: linear-gradient(180deg, #3c3d41, #252629 50%, #121316); box-shadow: 0 3px 8px -1px rgba(0,0,0,.5); position: relative; }
.mg-phone::after { content: ''; position: absolute; top: 16px; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: #0b0b0c; transform: translateX(-50%); }
.mg-phone img { width: 100%; height: auto; border-radius: 20px; }

/* ---------- Real results ---------- */
.mg-results { background: #e9eef7; }
.mg-results__stats { display: flex; gap: 20px; width: min(1180px, 100%); margin: 56px auto 0; }
.mg-rstat { flex: 1; background: #fff; border-radius: 12px; padding: 26px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.mg-rstat strong { font-size: 28px; font-weight: 800; line-height: 1.2; color: var(--mg-ink); white-space: nowrap; }
.mg-rstat span { font-size: 12px; font-weight: 600; color: #59635e; }
.mg-results__tables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; align-items: start; }
.mg-table { background: #fff; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.mg-table h3 { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--mg-gold); }
.mg-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #59635e; }
.mg-row b { font-weight: 700; color: var(--mg-ink); }
.mg-row b.is-blue { color: var(--mg-blue); }
.mg-row--rank { justify-content: flex-start; gap: 10px; }
.mg-row--rank i { font-style: normal; font-weight: 700; font-size: 13px; color: var(--mg-gold); width: 8px; }
.mg-row--rank .is-strong { font-weight: 600; }
.mg-winner { background: #fff; border: 1px solid rgba(38,99,141,.55); border-radius: 12px; padding: 24px 32px; margin-top: 56px; display: flex; align-items: center; gap: 34px; }
.mg-winner img { flex: 0 0 306px; width: 306px; height: auto; border-radius: 2px; }
.mg-winner > div { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.mg-winner__line { font-size: 18.4px; font-weight: 700; line-height: 1.3; color: var(--mg-ink); }

/* ---------- Resources ---------- */
.mg-resources { background: #fff; }
.mg-resources .mg-head { max-width: 800px; margin-inline: auto; gap: 8px; }
.mg-articles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 56px; }
.mg-article { background: var(--mg-sage); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 10px; color: inherit; transition: box-shadow .2s ease, transform .2s ease; }
.mg-article:hover { box-shadow: 0 10px 30px rgba(0,0,0,.1); transform: translateY(-2px); color: inherit; }
.mg-article img { width: 100%; height: 212px; object-fit: cover; border-radius: 8px; margin-bottom: 4px; }
.mg-article h3 { font-size: 17px; font-weight: 700; line-height: 1.2; color: var(--mg-ink); }
.mg-article p { font-size: 14px; line-height: 1.5; color: var(--mg-muted); }
.mg-article b { font-size: 14px; font-weight: 700; color: var(--mg-ink); white-space: pre; }
.mg-article .mg-pill { letter-spacing: .44px; }

/* ---------- Clients strip ---------- */
.mg-clients { background: var(--mg-gold); padding: 72px 24px; display: flex; flex-direction: column; align-items: center; gap: 42px; }
.mg-clients__logos { display: flex; align-items: center; justify-content: center; gap: 115px; }
.mg-clients__logos li:nth-child(1) { width: 314px; }
.mg-clients__logos li:nth-child(2) { width: 175px; }
.mg-clients__logos li:nth-child(3) { width: 212px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.mg-vertical__grid { grid-template-columns: repeat(2, 1fr); }
	.mg-results__stats { flex-wrap: wrap; }
	.mg-rstat { flex: 1 1 30%; }
	.mg-results__tables { grid-template-columns: 1fr; }
	.mg-deck__inner { grid-template-columns: 1fr; gap: 40px; }
	.mg-deck__copy { gap: 28px; }
	.mg-hero__logos, .mg-clients__logos { gap: 40px; }
}
@media (max-width: 800px) {
	.mg-section { padding: 64px 0; }
	.mg-h2 { font-size: 26px; }
	.mg-lede { font-size: 15px; }
	.mg-hero { min-height: 0; }
	.mg-hero__inner { padding: 72px 0; gap: 32px; }
	.mg-hero__title { font-size: 36px; }
	.mg-hero__sub { font-size: 15px; }
	.mg-hero__stat { padding: 16px 20px; }
	.mg-hero__logos, .mg-clients__logos { flex-wrap: wrap; gap: 28px; }
	.mg-hero__logos li:nth-child(1), .mg-clients__logos li:nth-child(1), .mg-deck__logo { width: 220px; }
	.mg-hero__logos li:nth-child(2), .mg-clients__logos li:nth-child(2) { width: 130px; }
	.mg-hero__logos li:nth-child(3), .mg-clients__logos li:nth-child(3) { width: 150px; }
	.mg-vertical__grid, .mg-articles { grid-template-columns: 1fr; margin-top: 36px; }
	.mg-playbook { min-height: 0; padding: 64px 0; }
	.mg-case-card { padding: 24px; }
	.mg-case-card__stats { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
	.mg-deck { padding: 64px 0; }
	.mg-slide { padding: 24px; gap: 14px; }
	.mg-slide__info span { font-size: 10px; }
	.mg-flow { padding: 64px 0; }
	.mg-flow__head h2 { font-size: 26px; }
	.mg-screen { flex-basis: 210px; }
	.mg-rail { gap: 28px; margin-right: -24px; }
	.mg-rstat { flex-basis: 45%; }
	.mg-winner { flex-direction: column; align-items: flex-start; padding: 24px; gap: 24px; }
	.mg-winner img { flex-basis: auto; width: 100%; max-width: 306px; }
	.mg-clients { padding: 56px 24px; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) { .mg * { transition: none !important; } }
