/* M.H.C shared base for all the models: reset, text effects, loader, review bar, form behaviour, 4D layer. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: rgba(128, 128, 128, .5) transparent; background: var(--bg, #070707); scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg, #070707); color: var(--fg, #f4f1ea); overflow-x: clip; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent, #D9AE2E); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent, #D9AE2E); color: #0d0d0d; }
.mhc-logo { width: 100%; height: auto; overflow: visible; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* Word by word reveal. Words only, so Arabic letters stay joined. */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .14em; margin-block: -.14em; padding-inline: .03em; margin-inline: -.03em; }
[data-split] .w > span { display: inline-block; transform: translateY(112%); transition: transform 1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0ms)); will-change: transform; }
[data-split].in .w > span { transform: none; }
[data-r] { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0ms); }
[data-r].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-r], [data-split] .w > span { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Loader */
.mhc-loader { position: fixed; inset: 0; z-index: 1000; background: #060606; display: grid; place-content: center; justify-items: center; gap: 26px; transition: opacity .8s ease, visibility .8s; }
.mhc-loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.ml-mark { width: min(190px, 44vw); animation: mlIn 1.2s cubic-bezier(.16, 1, .3, 1) both, mlGlow 2.6s ease-in-out infinite alternate; }
.ml-bar { width: min(190px, 44vw); height: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; border-radius: 2px; }
.ml-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8d6a07, #e7c24f); transform: scaleX(.04); transform-origin: left; transition: transform .35s ease; }
@keyframes mlIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes mlGlow { from { filter: drop-shadow(0 0 0 rgba(231, 194, 79, 0)); } to { filter: drop-shadow(0 0 16px rgba(231, 194, 79, .34)); } }

/* Review bar: moves between the models (remove when one model becomes the real site) */
.mhc-bar { position: fixed; z-index: 90; inset-block-end: max(14px, env(safe-area-inset-bottom)); left: 0; right: 0; margin-inline: auto; width: max-content; display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(12, 12, 12, .78); border: 1px solid rgba(255, 255, 255, .13); color: #f4f1ea; font: 600 12.5px/1 var(--fb, system-ui), system-ui, sans-serif; -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .8); max-width: calc(100vw - 16px); white-space: nowrap; }
.mhc-bar a, .mhc-bar button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border-radius: 999px; transition: background .25s, color .25s; color: inherit; }
.mhc-bar a:hover, .mhc-bar button:hover { background: rgba(255, 255, 255, .12); }
.mhc-bar svg { width: 14px; height: 14px; }
.mhc-bar .b-now { padding: 0 6px; color: #e7c24f; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mhc-bar .b-arrow { padding: 0; width: 32px; justify-content: center; }
html[dir="ltr"] .mhc-bar .b-arrow svg { transform: scaleX(-1); }
.mhc-bar .b-4d { font-weight: 800; letter-spacing: .04em; border: 1px solid rgba(231, 194, 79, .5); margin-inline-start: 3px; color: #e7c24f; font-family: system-ui, sans-serif; }
.mhc-bar .b-4d i { width: 7px; height: 7px; border-radius: 50%; background: rgba(231, 194, 79, .35); }
.mhc-bar .b-4d[aria-pressed="true"] { background: linear-gradient(135deg, #e7892a, #e7c24f); color: #111; border-color: transparent; }
.mhc-bar .b-4d[aria-pressed="true"] i { background: #111; animation: fxPulse 1s ease-in-out infinite; }
.mhc-bar .b-lang { font-family: system-ui, sans-serif; font-weight: 700; }
.mhc-bar .b-lang:lang(ar) { font-family: 'Cairo', 'IBM Plex Sans Arabic', system-ui, sans-serif; font-size: 15px; }
@keyframes fxPulse { 50% { transform: scale(1.6); opacity: .4; } }
@media (max-width: 560px) {
  .mhc-bar { font-size: 11.5px; }
  .mhc-bar .b-all span { display: none; }
  .mhc-bar a, .mhc-bar button { padding: 0 9px; }
  .mhc-bar .b-now { padding: 0 2px; }
}
.mhc-sparks { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 80; pointer-events: none; }
body[data-embed] .mhc-bar { display: none; }

/* Form behaviour. Each model styles the look through these classes. */
.fld-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.fld { display: block; min-width: 0; }
.fld > span { display: block; margin-block-end: 7px; font-size: .86rem; }
.fld > span b { color: var(--accent, #D9AE2E); font-weight: 700; }
.fld input, .fld select, .fld textarea { display: block; width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line, rgba(255, 255, 255, .2)); background: transparent; outline: 0; transition: border-color .25s, background .25s; font-size: 1rem; }
.fld select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; }
html[dir="rtl"] .fld select { background-position: 14px 50%, 20px 50%; }
.fld select option { color: #111; background: #fff; }
.fld textarea { resize: vertical; min-height: 92px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--accent, #D9AE2E); }
.fld small { display: block; min-height: 1.1em; margin-block-start: 4px; font-size: .78rem; color: #ff8a5c; }
.fld[data-err] input { border-color: #ff8a5c; }
.fld-wide { grid-column: 1 / -1; }
.fld-end { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-block-start: 8px; }
.btn-send { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 12px; background: var(--accent, #D9AE2E); color: var(--on-accent, #111); font-weight: 700; transition: transform .25s, filter .25s; }
.btn-send:hover { filter: brightness(1.08); transform: translateY(-2px); }
.fld-st { flex: 1 1 200px; font-size: .92rem; min-height: 1.3em; }
@media (max-width: 560px) { .fld-grid { grid-template-columns: 1fr; } .btn-send { width: 100%; } }

/* No WebGL: the pages stay readable and the canvas just hides */
html.no-gl canvas.gl { display: none; }

/* devices without frosted glass (set by the 3D stage): the panels turn solid instead */
html.noblur *, html.noblur *::before, html.noblur *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.noblur .mhc-bar { background: rgba(12, 12, 12, .94); }
