/* ==========================================================================
   Hero
   ========================================================================== */
.ms-hero { overflow: hidden; }
.ms-hero > .ms-container { position: relative; z-index: 1; }

/* Faint concentric rings behind the image – the "360" motif */
.ms-hero--rings::before {
	content: "";
	position: absolute;
	top: 50%;
	right: -12vw;
	width: min(980px, 72vw);
	aspect-ratio: 1;
	border-radius: 50%;
	transform: translateY(-50%);
	background:
		radial-gradient(circle, transparent 0 34%, color-mix(in srgb, var(--ms-secondary) 22%, transparent) 34.1% 34.3%, transparent 34.4% 50%, color-mix(in srgb, var(--ms-secondary) 16%, transparent) 50.1% 50.3%, transparent 50.4% 66%, color-mix(in srgb, var(--ms-secondary) 10%, transparent) 66.1% 66.3%, transparent 66.4%),
		radial-gradient(circle, color-mix(in srgb, var(--ms-primary) 55%, transparent) 0, transparent 60%);
	opacity: .55;
	pointer-events: none;
}
.ms-hero--rings.ms-hero--img-left::before { right: auto; left: -12vw; }
.ms-hero--rings.ms-hero--img-none::before { right: 50%; transform: translate(50%, -50%); }
.ms-bg-light.ms-hero--rings::before,
.ms-bg-white.ms-hero--rings::before { opacity: .35; }

.ms-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
	gap: clamp(40px, 6vw, 88px);
	align-items: center;
}
.ms-hero--img-left .ms-hero__text { order: 2; }
.ms-hero--img-none .ms-hero__grid { grid-template-columns: 1fr; }

/* ---------- Text ---------- */
.ms-hero__text { padding-block: 24px; }
.ms-hero--img-none .ms-hero__text { max-width: 880px; margin-inline: auto; text-align: center; }
.ms-hero--img-none .ms-eyebrow,
.ms-hero--img-none .ms-hero__btns,
.ms-hero--img-none .ms-hero__note { justify-content: center; }

.ms-hero__title { margin-bottom: 28px; }
.ms-hero--h-m .ms-hero__title  { font-size: clamp(2.25rem, 1.5rem + 2.4vw, 3.4rem); }
.ms-hero--h-l .ms-hero__title  { font-size: clamp(2.5rem, 1.5rem + 3.3vw, 4.4rem); }
.ms-hero--h-xl .ms-hero__title { font-size: clamp(2.75rem, 1.4rem + 4.4vw, 5.4rem); }

.ms-hero__lead { max-width: 540px; margin-bottom: 38px; }
.ms-hero--img-none .ms-hero__lead { max-width: 660px; margin-inline: auto; }
.ms-hero__btns { margin-bottom: 26px; }
.ms-hero__note {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: .85rem;
	color: var(--ms-muted);
}
.ms-hero__note .ms-icon { width: 17px; height: 17px; color: var(--ms-primary); }
.ms-bg-dark .ms-hero__note,
.ms-bg-primary .ms-hero__note { color: rgba(255, 255, 255, .6); }
.ms-bg-dark .ms-hero__note .ms-icon,
.ms-bg-primary .ms-hero__note .ms-icon { color: color-mix(in srgb, var(--ms-white) 55%, var(--ms-secondary)); }

/* ---------- Visual: image + floating cards ---------- */
.ms-hero__visual {
	position: relative;
	padding: 0 0 36px 44px;
}
.ms-hero--img-left .ms-hero__visual { padding: 0 44px 36px 0; }

.ms-hero__media {
	position: relative;
	margin: 0;
	height: var(--ms-hero-img-h);
	border-radius: calc(var(--ms-radius) * 1.3);
	overflow: hidden;
	background: color-mix(in srgb, var(--ms-secondary) 30%, var(--ms-dark));
}
.ms-hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.8s var(--ms-ease);
}
.ms-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(200deg, rgba(22, 38, 35, 0) 55%, rgba(22, 38, 35, .35) 100%);
	pointer-events: none;
	z-index: 2;
}

/* Pill (top corner of the image) */
.ms-hero__pill {
	position: absolute;
	top: 28px;
	right: 24px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--ms-white);
	color: var(--ms-dark);
	font-size: .82rem;
	font-weight: 600;
	box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .45);
}
.ms-hero__pill .ms-icon { width: 16px; height: 16px; color: var(--ms-primary); }
.ms-hero--img-left .ms-hero__pill { right: auto; left: 24px; }

/* Report card (overlaps the bottom corner) */
.ms-hero__report {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 270px;
	padding: 20px 22px 18px;
	border-radius: 18px;
	background: var(--ms-white);
	color: var(--ms-dark);
	box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .55);
}
.ms-hero--img-left .ms-hero__report { left: auto; right: 0; }
.ms-hero__report-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ms-hero__report-title { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ms-secondary); }
.ms-hero__report-dots { display: flex; gap: 4px; }
.ms-hero__report-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ms-border); }
.ms-hero__report-value { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--ms-primary); }
.ms-hero__report-label { display: block; margin-top: 4px; font-size: .8rem; color: var(--ms-muted); }
.ms-hero__chart { display: block; width: 100%; height: 58px; margin-top: 14px; overflow: visible; }
.ms-hero__chart-area { fill: color-mix(in srgb, var(--ms-primary) 12%, transparent); }
.ms-hero__chart-line {
	fill: none;
	stroke: var(--ms-primary);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.js .ms-hero__report[data-ms-anim] .ms-hero__chart-line {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	transition: stroke-dashoffset 1.6s var(--ms-ease) .5s;
}
.js .ms-hero__report[data-ms-anim].is-in .ms-hero__chart-line { stroke-dashoffset: 0; }
.js .ms-hero__report[data-ms-anim] .ms-hero__chart-area { opacity: 0; transition: opacity 1s var(--ms-ease) 1.2s; }
.js .ms-hero__report[data-ms-anim].is-in .ms-hero__chart-area { opacity: 1; }

/* ---------- Key points row ---------- */
.ms-hero__points {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 24px;
	margin: clamp(48px, 5vw, 72px) 0 0;
	padding: 30px 0 0;
	list-style: none;
	border-top: 1px solid var(--ms-border);
}
.ms-hero__points li { display: flex; align-items: flex-start; gap: 14px; }
.ms-hero__point-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	border: 1px solid var(--ms-border);
	color: var(--ms-primary);
}
.ms-hero__point-icon .ms-icon { width: 20px; height: 20px; }
.ms-hero__points strong { display: block; font-size: .96rem; font-weight: 700; color: var(--ms-dark); line-height: 1.35; }
.ms-hero__points small { display: block; margin-top: 3px; font-size: .84rem; color: var(--ms-muted); line-height: 1.45; }

.ms-bg-dark .ms-hero__points,
.ms-bg-primary .ms-hero__points { border-color: rgba(255, 255, 255, .1); }
.ms-bg-dark .ms-hero__point-icon,
.ms-bg-primary .ms-hero__point-icon { border-color: rgba(255, 255, 255, .14); color: color-mix(in srgb, var(--ms-white) 70%, var(--ms-secondary)); }
.ms-bg-dark .ms-hero__points strong,
.ms-bg-primary .ms-hero__points strong { color: var(--ms-white); }
.ms-bg-dark .ms-hero__points small,
.ms-bg-primary .ms-hero__points small { color: rgba(255, 255, 255, .55); }

/* ---------- Slideshow ----------
   The new slide fades in ON TOP of the old one (the old one stays fully visible
   underneath), so there is never a dark dip between images. Each slide keeps a
   slow zoom/pan running from the moment it appears until it is fully covered. */
.ms-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1.6s cubic-bezier(.45, 0, .2, 1);
	will-change: opacity, transform;
}
.ms-hero__slide.is-active { opacity: 1; z-index: 2; }
.ms-hero__slide.is-prev { opacity: 1; z-index: 1; transition: none; }

.ms-hero__media--fade-zoom .ms-hero__slide.is-shown { animation: msKenA calc(var(--ms-slide-ms) + 3.4s) linear forwards; }
.ms-hero__media--fade-zoom .ms-hero__slide:nth-child(even).is-shown { animation-name: msKenB; }
@keyframes msKenA {
	from { transform: scale(1.02) translate3d(0, 0, 0); }
	to   { transform: scale(1.12) translate3d(-1.6%, -1%, 0); }
}
@keyframes msKenB {
	from { transform: scale(1.12) translate3d(1.4%, .8%, 0); }
	to   { transform: scale(1.02) translate3d(0, 0, 0); }
}

/* Wipe (new slide opens over the old one) */
.ms-hero__media--wipe .ms-hero__slide {
	opacity: 1;
	clip-path: inset(0 0 0 100%);
	transition: clip-path 1.4s cubic-bezier(.7, 0, .2, 1);
}
.ms-hero__media--wipe .ms-hero__slide.is-active,
.ms-hero__media--wipe .ms-hero__slide.is-prev { clip-path: inset(0 0 0 0); }

/* Progress bars (bottom-right of the image) */
.ms-hero__progress {
	position: absolute;
	right: 22px;
	bottom: 18px;
	z-index: 3;
	display: flex;
	gap: 6px;
}
.ms-hero__bar {
	width: 34px;
	padding: 10px 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.ms-hero__bar span {
	position: relative;
	display: block;
	height: 3px;
	border-radius: 3px;
	background: rgba(255, 255, 255, .35);
	overflow: hidden;
}
.ms-hero__bar span::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--ms-white);
	transform: scaleX(0);
	transform-origin: left;
}
.ms-hero__bar.is-active span::after { animation: msHeroBar var(--ms-slide-ms) linear forwards; }
.ms-hero__media.is-paused .ms-hero__bar.is-active span::after { animation-play-state: paused; }
.ms-hero__bar:hover span { background: rgba(255, 255, 255, .6); }
@keyframes msHeroBar { to { transform: scaleX(1); } }

/* Outline frame offset behind the image */
.ms-hero__frame-line {
	position: absolute;
	top: -16px;
	right: -16px;
	bottom: 20px;
	left: 60px;
	z-index: -1;
	border: 1px solid var(--ms-border);
	border-radius: calc(var(--ms-radius) * 1.3 + 8px);
	pointer-events: none;
}
.ms-bg-dark .ms-hero__frame-line,
.ms-bg-primary .ms-hero__frame-line { border-color: rgba(255, 255, 255, .14); }
.ms-hero--img-left .ms-hero__frame-line { left: -16px; right: 60px; }
.ms-hero__visual { isolation: isolate; }

/* Pill text changes with the slide */
.ms-hero__pill-text { transition: opacity .35s var(--ms-ease); }
.ms-hero__pill-text.is-changing { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
	.ms-hero__slide.is-shown { animation: none !important; }
}
@media (max-width: 600px) {
	.ms-hero__frame-line { display: none; }
	.ms-hero__progress { right: auto; left: 14px; top: 10px; bottom: auto; }
	.ms-hero__bar { width: 24px; }
}

/* ---------- Full screen height ---------- */
.ms-hero--full {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: calc(100svh - 72px - var(--wp-admin--admin-bar--height, 0px));
}
.ms-hero--full > .ms-hero__inner { width: 100%; }

/* ---------- Image to the screen edge ---------- */
.ms-hero {
	--ms-bleed: max(var(--ms-gutter), calc((100vw - var(--ms-container)) / 2));
}
@media (min-width: 1101px) {
	.ms-hero--bleed .ms-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
	.ms-hero--bleed .ms-hero__visual { margin-right: calc(var(--ms-bleed) * -1); padding-right: 0; }
	.ms-hero--bleed .ms-hero__media { border-radius: calc(var(--ms-radius) * 1.6) 0 0 calc(var(--ms-radius) * 1.6); }
	.ms-hero--bleed.ms-hero--img-left .ms-hero__visual { margin-right: 0; margin-left: calc(var(--ms-bleed) * -1); padding-left: 0; padding-right: 44px; }
	.ms-hero--bleed.ms-hero--img-left .ms-hero__media { border-radius: 0 calc(var(--ms-radius) * 1.6) calc(var(--ms-radius) * 1.6) 0; }
	.ms-hero--bleed .ms-hero__frame-line { display: none; }
	.ms-hero--bleed .ms-hero__pill { right: max(24px, calc(var(--ms-bleed) - 8px)); }
	.ms-hero--bleed .ms-hero__progress { right: max(22px, calc(var(--ms-bleed) - 8px)); }
	.ms-hero--bleed.ms-hero--rings::before { right: auto; left: -22vw; }
}

/* ---------- Platforms line ---------- */
.ms-hero__platforms {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	margin-top: 40px;
	padding-top: 26px;
	border-top: 1px solid var(--ms-border);
	max-width: 540px;
}
.ms-hero__platforms-label {
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--ms-secondary);
}
.ms-hero__platforms ul { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0; padding: 0; list-style: none; }
.ms-hero__platforms li {
	font-size: .95rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--ms-dark);
	opacity: .75;
}
.ms-hero__platforms li + li::before { content: "·"; margin: 0 12px; opacity: .45; }
.ms-bg-dark .ms-hero__platforms,
.ms-bg-primary .ms-hero__platforms { border-color: rgba(255, 255, 255, .1); }
.ms-bg-dark .ms-hero__platforms li,
.ms-bg-primary .ms-hero__platforms li { color: var(--ms-white); opacity: .7; }
.ms-bg-dark .ms-hero__platforms-label,
.ms-bg-primary .ms-hero__platforms-label { color: color-mix(in srgb, var(--ms-white) 50%, var(--ms-secondary)); }
.ms-hero--img-none .ms-hero__platforms { justify-content: center; margin-inline: auto; }

/* Title words: slightly wider line gap so masks never clip */
.ms-hero__title .ms-w { padding-bottom: .1em; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.ms-hero__grid { grid-template-columns: 1fr; gap: 48px; }
	.ms-hero--img-left .ms-hero__text { order: 0; }
	.ms-hero__text { padding-block: 8px 0; }
	.ms-hero__lead { max-width: 640px; }
	.ms-hero__media { height: auto; aspect-ratio: 16 / 11; }
	.ms-hero--rings::before { top: auto; bottom: -20%; right: -30vw; width: 120vw; transform: none; }
	.ms-hero--full { min-height: 0; }
}
@media (max-width: 600px) {
	.ms-hero__visual,
	.ms-hero--img-left .ms-hero__visual { padding: 0 0 110px; }
	.ms-hero__media { aspect-ratio: 4 / 3.6; }
	.ms-hero__report,
	.ms-hero--img-left .ms-hero__report { left: 16px; right: 16px; width: auto; }
	.ms-hero__pill { top: 16px; right: 16px; }
	.ms-hero--img-left .ms-hero__pill { left: 16px; }
	.ms-hero__btns .ms-btn { flex: 1 1 auto; }
	.ms-hero__points { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
	.ms-hero__points li { flex-direction: column; gap: 10px; }
}
