#msh-hero {
	--msh-primary: #c90010;
	--msh-dark: #7d0008;
	--msh-ink: #1f2531;
	--msh-muted: #667085;
	--msh-field: #f4f6f9;
	--msh-line: #e2e7ee;
	--msh-top: 0px;
	--msh-vw: 100vw;
	--msh-overlay: .55;
	--msh-pad-top: clamp(26px, 2.5vw, 42px);
	--msh-pad-bottom: 112px;
	--msh-title: clamp(1.9rem, 2.9vw, 3rem);
	--msh-portrait: clamp(190px, 16vw, 262px);
	--msh-font: "Cairo", "Segoe UI", Tahoma, sans-serif;
	position: relative;
	display: block;
	width: var(--msh-vw);
	max-width: none;
	margin-block: 0 64px;
	margin-inline: calc((100% - var(--msh-vw)) / 2);
	padding: 0;
	direction: rtl;
	text-align: right;
	color: var(--msh-ink);
	font-family: var(--msh-font);
	font-size: 16px;
	line-height: 1.6;
}

#msh-hero.msh-size-medium {
	--msh-pad-top: clamp(42px, 4.2vw, 70px);
	--msh-pad-bottom: 136px;
	--msh-title: clamp(2rem, 3.5vw, 3.6rem);
	--msh-portrait: clamp(220px, 21vw, 330px);
}

#msh-hero.msh-size-tall {
	--msh-pad-top: clamp(56px, 6vw, 96px);
	--msh-pad-bottom: clamp(150px, 12vw, 190px);
	--msh-title: clamp(2.1rem, 4.1vw, 4.25rem);
	--msh-portrait: clamp(260px, 25vw, 410px);
}

#msh-hero *,
#msh-hero *::before,
#msh-hero *::after { box-sizing: border-box; font-family: var(--msh-font); letter-spacing: 0; }

#msh-hero [hidden] { display: none !important; }

#msh-hero .msh-icon { width: 18px; height: 18px; flex: none; }

#msh-hero .msh-wrap {
	width: 100%;
	max-width: 1640px;
	margin-inline: auto;
	padding-inline: clamp(24px, 5vw, 96px);
}

/* ------------------------------------------------------------ red band */
#msh-hero .msh-band {
	position: relative;
	overflow: hidden;
	padding-block: calc(var(--msh-top) + var(--msh-pad-top)) var(--msh-pad-bottom);
	background:
		radial-gradient(60% 90% at 16% 42%, rgba(255, 255, 255, .16), transparent 70%),
		linear-gradient(112deg, var(--msh-dark) 0%, var(--msh-primary) 62%, var(--msh-primary) 100%);
}

/* Monitor paper behind the trace. */
#msh-hero .msh-band.has-grid::before {
	content: "";
	position: absolute;
	z-index: 2;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
	background-size: 34px 34px;
	-webkit-mask-image: linear-gradient(to left, transparent 18%, #000 72%);
	mask-image: linear-gradient(to left, transparent 18%, #000 72%);
	pointer-events: none;
}

/* Background photos. */
#msh-hero .msh-slides { position: absolute; z-index: 0; inset: 0; overflow: hidden; }

#msh-hero .msh-slide {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.2s ease;
}

#msh-hero .msh-slide.is-active { opacity: 1; }

#msh-hero .msh-scrim { position: absolute; z-index: 1; inset: 0; pointer-events: none; }

#msh-hero .msh-scrim::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(112deg, var(--msh-dark), var(--msh-primary));
	opacity: var(--msh-overlay);
}

/* Keeps the headline readable over bright photos. */
#msh-hero .msh-scrim::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to left, rgba(55, 0, 5, .5) 0%, rgba(55, 0, 5, .28) 42%, transparent 68%);
}

#msh-hero .msh-pulse {
	position: absolute;
	z-index: 2;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(to right, #000 0%, #000 50%, rgba(0, 0, 0, .22) 64%, rgba(0, 0, 0, .22) 100%);
	mask-image: linear-gradient(to right, #000 0%, #000 50%, rgba(0, 0, 0, .22) 64%, rgba(0, 0, 0, .22) 100%);
}

#msh-hero .msh-pulse svg { position: absolute; inset: 0; width: 100%; height: 100%; }

#msh-hero .msh-pulse path {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

#msh-hero .msh-trace path { stroke: rgba(255, 255, 255, .2); stroke-width: 1.5; }

#msh-hero .msh-live path { stroke: #fff; stroke-width: 2.4; }
#msh-hero .msh-live .msh-glow { stroke: rgba(255, 255, 255, .28); stroke-width: 9; }

/* The monitor sweep. A soft window slides across while the line inside slides
   back by the same distance, so the browser never has to repaint the line. */
#msh-hero .msh-live-window {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 34%;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .3) 62%, #000 96%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .3) 62%, #000 96%, transparent 100%);
	will-change: transform;
	animation: msh-sweep-window 5.4s linear infinite;
}

#msh-hero .msh-live-track {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 294.1176%;
	will-change: transform;
	animation: msh-sweep-track 5.4s linear infinite;
}

@keyframes msh-sweep-window {
	from { transform: translate3d(-100%, 0, 0); }
	to { transform: translate3d(294.1176%, 0, 0); }
}

@keyframes msh-sweep-track {
	from { transform: translate3d(34%, 0, 0); }
	to { transform: translate3d(-100%, 0, 0); }
}

#msh-hero.is-offscreen .msh-live-window,
#msh-hero.is-offscreen .msh-live-track,
#msh-hero.is-offscreen .msh-portrait.has-ring::after { animation-play-state: paused; }

#msh-hero.msh-no-portrait .msh-intro { grid-template-columns: minmax(0, 1fr); }

#msh-hero .msh-intro {
	position: relative;
	z-index: 3;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
	align-items: center;
	gap: clamp(32px, 5vw, 96px);
}

#msh-hero .msh-title {
	margin: 0;
	padding: 0;
	max-width: 20ch;
	color: #fff;
	font-size: var(--msh-title);
	font-weight: 800;
	line-height: 1.3;
	text-align: right;
	text-wrap: balance;
}

#msh-hero .msh-text {
	margin: 12px 0 0;
	padding: 0;
	max-width: 64ch;
	color: rgba(255, 255, 255, .92);
	font-size: clamp(1rem, 1.2vw, 1.2rem);
	font-weight: 400;
	line-height: 1.75;
}

#msh-hero.has-slides .msh-copy { text-shadow: 0 1px 16px rgba(45, 0, 4, .42); }

#msh-hero .msh-stats { display: flex; margin: 16px 0 0; padding: 0; }

#msh-hero .msh-stat {
	display: flex;
	flex-direction: column;
	padding-inline: 26px;
	border-inline-start: 1px solid rgba(255, 255, 255, .26);
	color: #fff;
}

#msh-hero .msh-stat:first-child { padding-inline-start: 0; border-inline-start: 0; }
#msh-hero .msh-stat strong { color: #fff; font-size: clamp(1.3rem, 1.9vw, 1.75rem); font-weight: 700; line-height: 1.3; }
#msh-hero .msh-stat span { color: rgba(255, 255, 255, .84); font-size: .88rem; font-weight: 400; line-height: 1.5; }

/* ------------------------------------------------------------- portrait */
#msh-hero .msh-portrait {
	position: relative;
	justify-self: center;
	width: var(--msh-portrait);
	aspect-ratio: 1;
}

#msh-hero .msh-portrait.has-ring::before,
#msh-hero .msh-portrait.has-ring::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	pointer-events: none;
}

#msh-hero .msh-portrait.has-ring::before { inset: -14px; border: 1px solid rgba(255, 255, 255, .3); }

#msh-hero .msh-portrait.has-ring::after {
	border: 2px solid rgba(255, 255, 255, .55);
	animation: msh-beat 1.35s cubic-bezier(.2, .6, .3, 1) infinite;
}

@keyframes msh-beat {
	0% { transform: scale(1); opacity: .75; }
	70%, 100% { transform: scale(1.24); opacity: 0; }
}

#msh-hero .msh-disc {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 30px 60px rgba(50, 0, 4, .36);
}

#msh-hero .msh-photo,
#msh-hero .msh-illustration { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }

#msh-hero .msh-badge {
	position: absolute;
	z-index: 2;
	inset-block-end: 2%;
	inset-inline-start: 50%;
	transform: translateX(50%);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	max-width: 88%;
	padding: 6px 20px;
	border-radius: 22px;
	background: #fff;
	color: var(--msh-ink);
	font-size: .9rem;
	font-weight: 700;
	white-space: nowrap;
	box-shadow: 0 12px 26px rgba(50, 0, 4, .26);
}

#msh-hero .msh-badge span { overflow: hidden; text-overflow: ellipsis; }
#msh-hero .msh-logo { display: block; width: auto; height: 32px; max-width: 170px; object-fit: contain; }

/* ----------------------------------------------------------- search card */
#msh-hero .msh-search { position: relative; z-index: 5; margin-top: -90px; }

#msh-hero.msh-no-search { margin-block-end: 0; }
#msh-hero.msh-no-search .msh-band { padding-block-end: var(--msh-pad-top); }

#msh-hero .msh-card {
	padding: 4px clamp(18px, 2vw, 28px) 16px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 30px 70px rgba(60, 6, 12, .2), 0 2px 8px rgba(60, 6, 12, .07);
}

#msh-hero .msh-cardhead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border-bottom: 1px solid var(--msh-line);
}

#msh-hero .msh-tabs { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
#msh-hero .msh-tabs::-webkit-scrollbar { display: none; }

#msh-hero .msh-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	height: 50px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	background: transparent;
	color: var(--msh-muted);
	font-size: .96rem;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	transition: color .15s ease, border-color .15s ease;
}

#msh-hero .msh-tab:hover { background: transparent; color: var(--msh-ink); }

#msh-hero .msh-tab[aria-selected="true"],
#msh-hero .msh-tab[aria-selected="true"]:hover { border-bottom-color: var(--msh-primary); background: transparent; color: var(--msh-primary); }

#msh-hero .msh-near {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	margin: 0;
	padding: 8px 4px;
	border: 0;
	background: transparent;
	color: var(--msh-primary);
	font-size: .9rem;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	box-shadow: none;
}

#msh-hero .msh-near:hover { background: transparent; color: var(--msh-dark); }
#msh-hero .msh-near:disabled { opacity: .6; cursor: progress; }

#msh-hero .msh-form { display: block; margin: 12px 0 0; padding: 0; }
#msh-hero .msh-cardhead[hidden] + .msh-form { margin-top: 12px; }

/* One connected search bar. */
#msh-hero .msh-fields {
	display: flex;
	align-items: stretch;
	padding: 6px;
	border: 1px solid var(--msh-line);
	border-radius: 18px;
	background: var(--msh-field);
}

#msh-hero .msh-field { position: relative; flex: 1 1 0; min-width: 0; margin: 0; padding: 0; }

/* A divider only between fields that are actually showing. */
#msh-hero .msh-field:not([hidden]) ~ .msh-field:not([hidden])::before {
	content: "";
	position: absolute;
	inset-block: 15px;
	inset-inline-start: 0;
	z-index: 1;
	width: 1px;
	background: #d6dce5;
	pointer-events: none;
}

#msh-hero .msh-label {
	position: absolute;
	top: 9px;
	right: 18px;
	left: 18px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	color: var(--msh-ink);
	font-size: .8rem;
	font-weight: 600;
	line-height: 1.3;
	transform: none;
	pointer-events: none;
}

#msh-hero .msh-label .msh-icon { width: 15px; height: 15px; color: var(--msh-primary); }

#msh-hero .msh-control {
	display: block;
	width: 100%;
	height: 62px;
	margin: 0;
	padding: 25px 18px 0;
	border: 0;
	border-radius: 13px;
	outline: 0;
	background: transparent;
	color: var(--msh-ink);
	font-size: .96rem;
	font-weight: 400;
	line-height: 1.4;
	text-align: right;
	box-shadow: none;
	transition: background-color .15s ease, box-shadow .15s ease;
}

#msh-hero .msh-input::placeholder { color: var(--msh-muted); opacity: 1; }

#msh-hero .msh-control:hover:not(:disabled) { background: rgba(255, 255, 255, .75); }

#msh-hero .msh-input:focus,
#msh-hero .msh-combo.is-open .msh-trigger {
	background: #fff;
	box-shadow: 0 0 0 2px var(--msh-primary);
}

#msh-hero .msh-combo { position: relative; }

#msh-hero .msh-native {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
}

#msh-hero .msh-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	color: var(--msh-muted);
	cursor: pointer;
}

#msh-hero .msh-combo.has-value .msh-trigger { color: var(--msh-ink); font-weight: 600; }
#msh-hero .msh-trigger:hover:not(:disabled) { color: var(--msh-muted); }
#msh-hero .msh-combo.has-value .msh-trigger:hover:not(:disabled) { color: var(--msh-ink); }
#msh-hero .msh-trigger:disabled { opacity: .75; cursor: not-allowed; }
#msh-hero .msh-trigger-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.4; }
#msh-hero .msh-chevron { width: 18px; height: 18px; flex: none; margin-top: -22px; color: var(--msh-muted); transition: transform .15s ease; }
#msh-hero .msh-combo.is-open .msh-chevron { transform: rotate(180deg); }

#msh-hero .msh-pop {
	position: absolute;
	inset-block-start: calc(100% + 12px);
	inset-inline: 0;
	z-index: 40;
	min-width: 240px;
	padding: 10px;
	border: 1px solid var(--msh-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 22px 48px rgba(30, 36, 48, .22);
}

#msh-hero .msh-filter {
	display: block;
	width: 100%;
	height: 42px;
	margin: 0 0 8px;
	padding: 0 12px;
	border: 1px solid var(--msh-line);
	border-radius: 10px;
	outline: 0;
	background: var(--msh-field);
	color: var(--msh-ink);
	font-size: .9rem;
	box-shadow: none;
}

#msh-hero .msh-filter:focus { border-color: var(--msh-primary); background: #fff; }

#msh-hero .msh-list {
	position: relative;
	max-height: 232px;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
	overscroll-behavior: contain;
}

#msh-hero .msh-option {
	margin: 0;
	padding: 10px 12px;
	border-radius: 8px;
	color: var(--msh-ink);
	font-size: .92rem;
	line-height: 1.45;
	list-style: none;
	cursor: pointer;
}

#msh-hero .msh-option::before { content: none; }
#msh-hero .msh-option:hover,
#msh-hero .msh-option.is-active { background: var(--msh-field); }
#msh-hero .msh-option[aria-selected="true"] { color: var(--msh-primary); font-weight: 600; }
#msh-hero .msh-empty { margin: 0; padding: 12px; color: var(--msh-muted); font-size: .9rem; text-align: center; }

#msh-hero .msh-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex: 0 0 auto;
	min-width: 150px;
	height: 62px;
	margin: 0 6px 0 0;
	padding: 0 30px;
	border: 0;
	border-radius: 13px;
	background: var(--msh-primary);
	color: #fff;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .15s ease;
}

#msh-hero .msh-submit:hover { background: var(--msh-dark); color: #fff; }

#msh-hero .msh-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
#msh-hero .msh-quick-label { margin-inline-end: 4px; color: var(--msh-muted); font-size: .85rem; }

#msh-hero .msh-chip {
	display: inline-block;
	padding: 4px 13px;
	border: 1px solid var(--msh-line);
	border-radius: 20px;
	background: #fff;
	color: var(--msh-ink);
	font-size: .84rem;
	line-height: 1.4;
	text-decoration: none;
	box-shadow: none;
	transition: border-color .15s ease, color .15s ease;
}

#msh-hero .msh-chip:hover { border-color: var(--msh-primary); color: var(--msh-primary); text-decoration: none; }

#msh-hero .msh-status { margin: 12px 0 0; padding: 0; color: var(--msh-dark); font-size: .9rem; }

#msh-hero button:focus-visible,
#msh-hero a:focus-visible,
#msh-hero input:focus-visible {
	outline: 3px solid rgba(201, 0, 16, .32);
	outline-offset: 2px;
}

#msh-hero .msh-tab:focus-visible { outline-offset: -4px; }

/* ----------------------------------------------------------- responsive */
@media (max-width: 1100px) {
	#msh-hero .msh-fields { flex-wrap: wrap; gap: 8px; padding: 0; border: 0; background: transparent; }
	#msh-hero .msh-field { flex: 1 1 calc(50% - 4px); border: 1px solid var(--msh-line); border-radius: 14px; background: var(--msh-field); }
	#msh-hero .msh-field::before { content: none !important; }
	#msh-hero .msh-submit { flex: 1 1 100%; height: 60px; margin: 0; }
}

@media (max-width: 760px) {
	#msh-hero { margin-block-end: 40px; }
	#msh-hero .msh-wrap { padding-inline: 16px; }
	#msh-hero .msh-band { padding-block: calc(var(--msh-top) + 36px) 196px; }
	#msh-hero .msh-intro { display: block; }
	#msh-hero .msh-portrait { display: none; }
	#msh-hero .msh-pulse { top: auto; bottom: 96px; height: 100px; -webkit-mask-image: none; mask-image: none; }
	#msh-hero.msh-no-search .msh-band { padding-block-end: 110px; }
	#msh-hero.msh-no-search .msh-pulse { bottom: 0; }
	#msh-hero.msh-slides-desktop .msh-slides,
	#msh-hero.msh-slides-desktop .msh-scrim { display: none; }
	#msh-hero .msh-scrim::after { background: rgba(55, 0, 5, .34); }
	#msh-hero .msh-pulse svg { right: auto; left: 0; width: 900px; }
	#msh-hero .msh-live-window,
	#msh-hero .msh-live-track { animation-duration: 3.4s; }
	#msh-hero .msh-title { max-width: none; font-size: clamp(1.85rem, 8vw, 2.35rem); }
	#msh-hero .msh-text { margin-top: 12px; }
	#msh-hero .msh-stats { margin-top: 20px; }
	#msh-hero .msh-stat { padding-inline: 18px; }
	#msh-hero .msh-search { margin-top: -96px; }
	#msh-hero .msh-card { padding: 4px 14px 16px; border-radius: 18px; }
	#msh-hero .msh-cardhead { display: block; }
	#msh-hero .msh-tab { height: 50px; padding: 0 10px; font-size: .88rem; }
	#msh-hero .msh-near { width: 100%; justify-content: center; padding: 12px; border-top: 1px solid var(--msh-line); }
	#msh-hero .msh-form { margin-top: 12px; }
	#msh-hero .msh-field { flex-basis: 100%; }
	#msh-hero .msh-control { height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
	#msh-hero .msh-live-window { display: none; }
	#msh-hero .msh-portrait.has-ring::after { animation: none; opacity: 0; }
	#msh-hero * { transition: none !important; }
}
