/* Home hero (api/application/views/inc/hero.php). Scoped to .mbh so the site's Bootstrap styles don't leak in. */
.mbh {
	--navy: #16325c;
	--ink: #0d2240;
	--blue: #005baa;
	--sky: #0079e2;
	--yellow: #ffd400;
	--yellow-deep: #fcaf17;
	--yellow-light: #ffe45c;
	--ease: cubic-bezier(.2, .9, .25, 1);
	--spring: cubic-bezier(.3, 1.45, .55, 1);
	--mx: 0;
	--my: 0;
	--top: 168px;
	--bottom: 92px;
	position: relative;
	height: clamp(620px, 90vh, 940px);
	overflow: hidden;
	isolation: isolate;
	background: #0a1d40;
	color: #fff;
	font-family: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	touch-action: pan-y;
	-webkit-font-smoothing: antialiased;
}
.mbh *, .mbh *::before, .mbh *::after { box-sizing: border-box; }
.mbh h2, .mbh p, .mbh ol, .mbh li, .mbh figure { margin: 0; padding: 0; }
.mbh img { display: block; max-width: none; height: auto; }
.mbh picture { display: block; }
.mbh a, .mbh a:hover, .mbh a:focus { text-decoration: none; }
.mbh :focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.mbh:focus { outline: 0; }
.mbh button:focus:not(:focus-visible) { outline: 0; } /* Bootstrap rings buttons on mouse click */
.mbh-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- slides ---------- */
.mbh__track { position: absolute; inset: 0; }
.mbh-slide { position: absolute; inset: 0; overflow: hidden; visibility: hidden; }
.mbh-slide.is-active, .mbh-slide.is-entering { visibility: visible; }
.mbh-slide.is-entering { z-index: 2; }
.mbh-slide:not(.is-active):not(.is-entering) *,
.mbh-slide:not(.is-active):not(.is-entering) *::before,
.mbh-slide:not(.is-active):not(.is-entering) *::after,
.mbh.is-offscreen *, .mbh.is-offscreen *::before, .mbh.is-offscreen *::after,
.mbh.is-user-paused *, .mbh.is-user-paused *::before, .mbh.is-user-paused *::after { animation-play-state: paused !important; }

.mbh-slide__inner {
	position: relative;
	z-index: 1;
	height: 100%;
	width: min(1240px, 100% - 64px);
	margin: 0 auto;
	padding: var(--top) 0 var(--bottom);
	display: grid;
	grid-template-columns: minmax(0, 41fr) minmax(0, 59fr);
	align-items: center;
	gap: clamp(16px, 3vw, 48px);
}
.mbh-copy { position: relative; z-index: 3; }

/* entrance: elements with [data-in] animate when their slide gets .is-in */
.mbh [data-in] {
	opacity: 0;
	transform: translate3d(0, 28px, 0);
	transition: opacity .7s var(--ease), transform 1s var(--ease);
	transition-delay: calc(var(--i, 0) * 80ms + 220ms);
}
.mbh .is-in [data-in] { opacity: 1; transform: none; }
.mbh [data-in="drop"] { transform: translate3d(0, -70px, 0) scale(.82) rotate(calc(var(--r, 0deg) * -2)); transition: opacity .5s var(--ease), transform 1.15s var(--spring); transition-delay: calc(var(--i, 0) * 70ms + 300ms); }
.mbh [data-in="left"] { transform: translate3d(-40%, 0, 0); }
.mbh [data-in="right"] { transform: translate3d(40%, 0, 0); }
.mbh [data-in="up"] { transform: translate3d(0, 18%, 0) scale(.9); transition-duration: .8s, 1.3s; }
.mbh [data-in="pop"] { transform: scale(.3) rotate(-30deg); transition: opacity .4s var(--ease), transform 1s var(--spring); transition-delay: calc(var(--i, 0) * 80ms + 300ms); }
.mbh [data-in="write"] { opacity: 1; transform: none; clip-path: inset(-40% 100% -40% -20%); transition: clip-path 1.1s cubic-bezier(.6, .05, .3, 1); transition-delay: calc(var(--i, 0) * 80ms + 380ms); }
/* the clip reaches well past the box so it never cuts the drop-shadow */
.mbh .is-in [data-in="write"] { clip-path: inset(-40% -20% -40% -20%); }

/* ---------- buttons ---------- */
.mbh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.mbh-btn {
	--tx: 0px;
	--ty: 0px;
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: .6em;
	padding: 1.05em 1.8em;
	border-radius: 999px;
	font: 800 clamp(.95rem, .85rem + .3vw, 1.1rem)/1 "Lexend", system-ui, sans-serif;
	letter-spacing: .06em;
	text-transform: uppercase;
	overflow: hidden;
	transform: translate3d(var(--tx), var(--ty), 0);
	transition: transform .35s var(--spring), box-shadow .3s var(--ease);
}
.mbh-btn svg { width: 1.15em; height: 1.15em; transition: transform .35s var(--spring); }
.mbh-btn:hover svg { transform: translateX(5px); }
.mbh-btn:focus-visible svg { transform: translateX(5px); }
.mbh-btn:active { transform: translate3d(var(--tx), var(--ty), 0) scale(.97); }
.mbh-btn::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
	transform: translateX(-120%);
	animation: mbh-glint 4.8s var(--ease) 2.2s infinite;
	pointer-events: none;
}
.mbh-btn--gold, .mbh-btn--gold:hover { color: var(--ink); background: linear-gradient(180deg, var(--yellow-light), var(--yellow) 48%, var(--yellow-deep)); box-shadow: 0 14px 34px -10px rgba(255, 212, 0, .75), inset 0 -3px 0 rgba(0, 0, 0, .12); }
.mbh-btn--gold:hover { box-shadow: 0 18px 44px -8px rgba(255, 212, 0, .95), inset 0 -3px 0 rgba(0, 0, 0, .12); }
.mbh-btn--navy, .mbh-btn--navy:hover { color: #fff; background: var(--navy); box-shadow: 0 14px 30px -12px rgba(13, 34, 64, .7); }
.mbh-btn--yellow, .mbh-btn--yellow:hover { color: var(--ink); background: var(--yellow); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55); }
@keyframes mbh-glint { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }

/* ---------- slide 1: BIG WIN ---------- */
.mbh-slide--bigwin { background: radial-gradient(120% 90% at 72% 88%, #1d5fb3 0%, #0d2a5c 45%, #071634 100%); }
.mbh-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s ease; }
.mbh-gl.is-ready { opacity: 1; }

.bw-kicker { display: inline-flex; align-items: center; gap: .7em; color: var(--yellow); font-weight: 800; font-size: clamp(.8rem, .7rem + .35vw, 1rem); letter-spacing: .22em; text-transform: uppercase; }
.bw-kicker::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: currentColor; }
.bw-title { position: relative; width: min(100%, 520px); margin: .55em 0 .7em; }
.bw-title img { width: 100%; filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .5)); }
.bw-title__shine {
	position: absolute;
	inset: 0;
	-webkit-mask: url(/bigwin/img/bigwin-title-640.webp) center / 100% 100% no-repeat;
	mask: url(/bigwin/img/bigwin-title-640.webp) center / 100% 100% no-repeat;
	background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .9) 50%, transparent 60%) no-repeat;
	background-size: 300% 100%;
	background-position: 150% 0;
	animation: bw-shine 5s ease-in-out 1.4s infinite;
	pointer-events: none;
}
@keyframes bw-shine { 0% { background-position: 150% 0; } 35%, 100% { background-position: -50% 0; } }
.bw-lead { max-width: 34ch; color: rgba(255, 255, 255, .86); font-size: clamp(1rem, .9rem + .35vw, 1.2rem); line-height: 1.5; font-weight: 500; }
.bw-lead strong { color: var(--yellow); font-weight: 800; }

.bw-count { display: flex; align-items: center; gap: 14px; margin: 24px 0 30px; }
.bw-count__label { color: rgba(255, 255, 255, .7); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; line-height: 1.3; max-width: 4.5em; }
.bw-count ol { display: flex; gap: 8px; list-style: none; }
.bw-count li { min-width: 60px; padding: 9px 6px 7px; border-radius: 14px; text-align: center; background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05)); border: 1px solid rgba(255, 255, 255, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.bw-count b { display: block; font-size: 1.6rem; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }
.bw-count b.is-tick { animation: bw-tick .5s var(--ease); }
.bw-count small { display: block; margin-top: 5px; font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); }
@keyframes bw-tick { from { transform: translateY(-35%); opacity: .2; } }
.bw-terms, .bw-terms:hover { display: inline-block; padding: 10px 0; color: rgba(255, 255, 255, .8); font-size: .85rem; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 4px; }
.bw-terms:hover { color: #fff; }

.bw-stage { position: relative; height: 100%; min-height: 0; transform: translate3d(calc(var(--mx) * -14px), calc(var(--my) * -8px), 0); }
.bw-car { position: absolute; z-index: 1; }
.bw-car__lit { transform: translate3d(calc(var(--mx) * var(--d, 1) * -18px), 0, 0); }
.bw-car__lit picture { filter: brightness(.32) saturate(.6); transition: filter .7s ease, transform .9s var(--spring); }
.bw-car__lit img { width: 100%; }
.bw-car.is-lit .bw-car__lit picture { filter: brightness(1.06) saturate(1.08); transform: translate3d(0, -2.5%, 0) scale(1.05); }
.bw-car::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -4%; height: 14%; z-index: -1; background: radial-gradient(closest-side, rgba(0, 0, 0, .65), transparent); }
.bw-car--corolla { left: -2%; bottom: 33%; width: 47%; }
.bw-car--urban { right: -2%; bottom: 33%; width: 46%; }
.bw-car--starlet { left: 29%; bottom: 9%; width: 42%; z-index: 2; }
.bw-badge { position: absolute; right: -1%; top: 0; width: 21%; z-index: 3; }
.bw-badge img { width: 100%; animation: bw-wobble 6s ease-in-out infinite; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .4)); }
@keyframes bw-wobble { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(6deg) scale(1.06); } }
.bw-carname { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: clamp(.7rem, .62rem + .3vw, .9rem); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .9); }
.bw-carname span { display: inline-block; padding-bottom: 6px; border-bottom: 2px solid var(--yellow); transition: opacity .35s ease, transform .35s ease; }
.bw-carname span.is-out { opacity: 0; transform: translateY(6px); }
.bw-note { position: absolute; z-index: 2; right: 18px; bottom: 10px; font-size: .62rem; color: rgba(255, 255, 255, .5); }

/* ---------- product slides ---------- */
.mbh-products { position: relative; height: 100%; min-height: 0; }
.mbh-p {
	position: absolute;
	left: calc(var(--x) * 1%);
	top: calc(var(--y) * 1%);
	width: calc(var(--w) * 1%);
	transform: translate3d(calc(var(--mx) * var(--d) * -26px), calc(var(--my) * var(--d) * -16px), 0);
}
.mbh-p__in { position: relative; }
/* contact shadow: stays on the ground while the product floats */
.mbh-p__in::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: -7%; height: 9%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .26), transparent); }
.mbh-p img { width: 100%; animation: mbh-float calc(5s + var(--d) * 2s) ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.7s); filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .18)); }
@keyframes mbh-float { from { transform: translate3d(0, -6px, 0) rotate(var(--r)); } to { transform: translate3d(0, 8px, 0) rotate(calc(var(--r) * -.4)); } }

/* the site's heading face (loaded by style-new.css) */
.mbh-title { font-family: "Changa One", "Lexend", system-ui, sans-serif; font-weight: 400; line-height: .92; letter-spacing: .005em; font-size: clamp(2.6rem, 1.4rem + 4.2vw, 5.4rem); }
.mbh-title__line { display: block; }
.mbh .mbh-word { width: auto; max-width: none; }
.mbh-title + .mbh-actions { margin-top: clamp(26px, 4vh, 44px); }

.mbh-slide--roof { color: var(--ink); background: radial-gradient(70% 90% at 82% 92%, #fff8d0 0%, var(--yellow-light) 22%, var(--yellow) 50%, #fbc800 100%); }
.roof-sun {
	position: absolute;
	left: 64%;
	top: 56%;
	width: min(130vmax, 1500px);
	height: min(130vmax, 1500px);
	transform: translate(-50%, -50%);
	background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .2) 0deg 5deg, rgba(255, 255, 255, 0) 5deg 15deg);
	-webkit-mask: radial-gradient(closest-side, #000 10%, transparent 70%);
	mask: radial-gradient(closest-side, #000 10%, transparent 70%);
	animation: mbh-spin 120s linear infinite;
}
@keyframes mbh-spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.roof-title { color: var(--blue); }
.roof-title .mbh-title__line:last-child { position: relative; }
.mbh .roof-word { position: absolute; left: 1.95em; top: -.72em; height: 2.5em; filter: drop-shadow(0 2px 0 rgba(13, 34, 64, .45)) drop-shadow(0 10px 18px rgba(0, 60, 140, .4)); }
.roof-title + .mbh-actions { margin-top: 1.35em; font-size: clamp(2.6rem, 1.4rem + 4.2vw, 5.4rem); }
.roof-title + .mbh-actions .mbh-btn { font-size: clamp(.95rem, .85rem + .3vw, 1.1rem); }

.mbh-slide--collect { background: radial-gradient(90% 100% at 22% 28%, #0d63c2 0%, #0b4d9a 40%, var(--navy) 82%, #13285a 100%); }
.collect-grid {
	position: absolute;
	inset: -64px;
	background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask: radial-gradient(80% 70% at 65% 55%, #000 20%, transparent 85%);
	mask: radial-gradient(80% 70% at 65% 55%, #000 20%, transparent 85%);
	animation: mbh-drift 18s linear infinite;
}
@keyframes mbh-drift { to { transform: translate3d(64px, 64px, 0); } }
.collect-title { color: var(--yellow); font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.6rem); }
.mbh .collect-word { height: 1.3em; margin-top: .1em; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .3)); }

/* ---------- controls ---------- */
.mbh-ui {
	position: absolute;
	z-index: 6;
	left: 50%;
	bottom: 20px;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 6px 6px 14px;
	border-radius: 999px;
	background: rgba(8, 20, 46, .88);
	box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45);
}
.mbh-dot {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 6px 8px;
	border: 0;
	border-radius: 10px;
	background: none;
	color: rgba(255, 255, 255, .8);
	font: 700 .66rem/1 "Lexend", system-ui, sans-serif;
	letter-spacing: .14em;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: color .3s;
}
.mbh-dot:hover, .mbh-dot[aria-current="true"] { color: #fff; }
.mbh-dot__bar { display: block; width: 100%; min-width: 56px; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .22); }
.mbh-dot[aria-current="true"] .mbh-dot__bar { background: rgba(255, 255, 255, .55); }
.mbh-dot__bar i { display: block; height: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: 0 50%; }
.mbh-dot[aria-current="true"] .mbh-dot__bar i { animation: mbh-fill var(--dur, 7s) linear forwards; }
.mbh.is-paused .mbh-dot__bar i { animation-play-state: paused !important; }
.mbh.is-static .mbh-dot[aria-current="true"] .mbh-dot__bar i { animation: none; transform: none; }
@keyframes mbh-fill { to { transform: scaleX(1); } }
.mbh-pause, .mbh-arrow {
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	color: #fff;
	transition: background-color .25s, transform .3s var(--spring), opacity .3s;
}
.mbh-pause { width: 34px; height: 34px; margin-left: 4px; background: rgba(255, 255, 255, .14); }
.mbh-pause:hover { background: rgba(255, 255, 255, .26); }
.mbh-pause svg, .mbh-arrow svg { width: 16px; height: 16px; }
.mbh-pause .i-play, .mbh.is-user-paused .mbh-pause .i-pause { display: none; }
.mbh.is-user-paused .mbh-pause .i-play { display: block; }
.mbh-arrow { position: absolute; z-index: 6; top: 50%; width: 54px; height: 54px; margin-top: 10px; background: rgba(8, 20, 46, .45); opacity: 0; }
.mbh-arrow svg { width: 22px; height: 22px; }
.mbh-arrow--prev { left: 18px; }
.mbh-arrow--next { right: 18px; }
.mbh:hover .mbh-arrow { opacity: 1; }
.mbh-arrow:focus-visible { opacity: 1; }
@media (hover: none) { .mbh-arrow { display: none; } } /* touch: swipe instead of invisible tap targets */
.mbh-arrow:hover { background: rgba(8, 20, 46, .75); transform: scale(1.08); }

/* ---------- wipe transition ---------- */
.mbh-fx { position: absolute; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; }
.mbh-fx.is-rev { transform: scaleX(-1); }
.mbh-blade { position: absolute; left: 0; top: 0; height: 100%; display: flex; transform-origin: 0 100%; visibility: hidden; will-change: transform; }
.mbh-blade i { display: block; height: 100%; }
.mbh-blade i:first-child { width: 34%; background: var(--navy); }
.mbh-blade i:last-child { width: 66%; background: linear-gradient(90deg, var(--yellow-deep), var(--yellow) 40%, var(--yellow-light)); }

/* ---------- tablet ---------- */
@media (max-width: 1099px) {
	.mbh { --top: 150px; }
	.mbh-slide__inner { width: calc(100% - 48px); }
	.bw-count li { min-width: 52px; }
	.bw-count b { font-size: 1.35rem; }
}

/* ---------- phone: copy on top, visuals below ---------- */
@media (max-width: 767px) {
	.mbh { --top: 108px; --bottom: 84px; height: clamp(700px, 92vh, 840px); height: clamp(700px, 92svh, 840px); }
	.mbh-slide__inner { width: calc(100% - 32px); grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-items: start; gap: 6px; }
	.bw-kicker { font-size: .72rem; }
	.bw-title { width: min(86vw, 360px); margin: .4em 0 .5em; }
	.bw-lead { font-size: .95rem; max-width: none; }
	.bw-count { margin: 14px 0 16px; gap: 10px; }
	.bw-count li { min-width: 50px; padding: 7px 4px 6px; border-radius: 12px; }
	.bw-count b { font-size: 1.2rem; }
	.mbh-btn { padding: .95em 1.5em; }
	.bw-stage { order: 0; }
	.bw-car--corolla { bottom: 36%; width: 50%; }
	.bw-car--urban { bottom: 36%; width: 50%; }
	.bw-car--starlet { left: 26%; bottom: 12%; width: 48%; }
	.bw-badge { width: 24%; top: -6%; }
	.bw-note { right: 0; left: 0; bottom: 64px; text-align: center; }
	.bw-carname { bottom: 2%; }

	.mbh-p { left: calc(var(--qx) * 1%); top: calc(var(--qy) * 1%); width: calc(var(--qw) * 1%); }
	.mbh-title { font-size: clamp(2.3rem, 1rem + 7vw, 3.2rem); }
	.roof-title + .mbh-actions { font-size: clamp(2.3rem, 1rem + 7vw, 3.2rem); }
	.bw-badge { top: 2%; }
	.mbh-ui { bottom: 14px; padding: 4px 4px 4px 10px; }
	.mbh-dot { padding: 12px 6px; }
	.mbh-dot__label { display: none; }
	.mbh-dot__bar { min-width: 30px; }
	.mbh-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.mbh *, .mbh *::before, .mbh *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
