/* =====================================================================================================
   MIRAS — site.css  (brand tokens come from assets/brand/miras-brand.css)
   Dark-first: the MIRAS navy is the identity. Arabic RTL first, English LTR supported.
   ===================================================================================================== */
:root {
  --bg: #050e22;
  --bg-deep: #02070f;
  --bg-soft: #0b1a33;
  --surface: rgba(11, 26, 51, .52);
  --surface-2: rgba(15, 33, 64, .72);
  --line: rgba(224, 183, 105, .14);
  --line-2: rgba(255, 255, 255, .08);
  --text: #eef2f7;
  --muted: #9aa6b8;
  --dim: #66748a;
  --gold: #e0b769;
  --gold-deep: #a8782c;
  --gold-hi: #f1d28c;
  --blue: #3a8ef0;
  --blue-deep: #1c6bc2;
  --gold-grad: linear-gradient(135deg, #8a6222 0%, #e0b769 45%, #f1d28c 55%, #a8782c 100%);
  --radius: 22px;
  --radius-lg: 32px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --hdr-h: 76px;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #050e22; } }
:root[data-theme="dark"] { --bg: #050e22; }

*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 20px); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--miras-font); font-size: 17px; line-height: 1.75; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html[lang="en"] body { line-height: 1.65; }
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: rgba(224, 183, 105, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
em { font-style: normal; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.flip { transform-box: fill-box; transform-origin: center; }
html[dir="ltr"] .flip { transform: scaleX(-1); }

/* ---------------------------------------------------------------- page background layers */
.bg { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(28, 107, 194, .16), transparent 70%),
    radial-gradient(50% 45% at 10% 30%, rgba(224, 183, 105, .08), transparent 70%),
    radial-gradient(120% 90% at 50% 20%, #0b1a33 0%, #050e22 55%, #02070f 100%);
}
.bg::after { /* grain */
  content: ''; position: absolute; inset: -50%; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); } 60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); } }
.field { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.6s var(--ease); }
.is-ready .field { opacity: 1; }
.vignette { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 100% at 50% 50%, transparent 55%, rgba(2, 7, 15, .75) 100%); }

/* ---------------------------------------------------------------- loader */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg-deep); color: var(--text); transition: clip-path 1s var(--ease-io); clip-path: inset(0 0 0 0); }
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__in { display: grid; justify-items: center; gap: 22px; }
.loader__mark { width: 88px; height: 88px; border-radius: 24px; box-shadow: 0 0 0 1px rgba(224, 183, 105, .3), 0 20px 60px rgba(224, 183, 105, .18); animation: breathe 2.4s var(--ease) infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 1px rgba(224, 183, 105, .55), 0 20px 80px rgba(224, 183, 105, .32); } }
.loader .miras-wordmark { color: var(--gold); font-size: 1.05rem; }
.loader__bar { width: min(260px, 60vw); height: 2px; background: rgba(255, 255, 255, .08); border-radius: 2px; overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .loader__bar i { transform-origin: right; }
.loader__num { font: 600 .8rem/1 var(--miras-font); letter-spacing: .3em; color: var(--muted); direction: ltr; }
.loader.is-done .loader__in { opacity: 0; transform: translateY(-30px); transition: .6s var(--ease); }

/* ---------------------------------------------------------------- page-transition veil */
.veil { position: fixed; inset: 0; z-index: 190; pointer-events: none; display: grid; place-items: center; visibility: hidden; }
.veil::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 30%, #0b1a33, #02070f); clip-path: circle(0 at var(--vx, 50%) var(--vy, 50%)); }
.veil::after { content: ''; position: absolute; inset: 0; border: 0; background: var(--gold-grad); opacity: .9; clip-path: circle(0 at var(--vx, 50%) var(--vy, 50%)); }
.veil__mark { position: relative; width: 72px; height: 72px; border-radius: 20px; opacity: 0; transform: scale(.7) rotate(-8deg); }
.veil.is-in, .veil.is-cover, .veil.is-out { visibility: visible; pointer-events: auto; }
.veil.is-in::after { animation: veilIn .7s var(--ease-io) forwards; }
.veil.is-in::before { animation: veilIn .8s .08s var(--ease-io) forwards; }
.veil.is-in .veil__mark { animation: markIn .5s .4s var(--ease) forwards; }
.veil.is-cover::before { clip-path: circle(150% at 50% 50%); }
.veil.is-cover .veil__mark { opacity: 1; transform: none; }
.veil.is-out::before { clip-path: circle(150% at 50% 50%); animation: veilOut 1s .1s var(--ease-io) forwards; }
.veil.is-out .veil__mark { opacity: 1; transform: none; animation: markOut .45s var(--ease) forwards; }
@keyframes veilIn { to { clip-path: circle(150% at var(--vx, 50%) var(--vy, 50%)); } }
@keyframes veilOut { to { clip-path: inset(0 0 100% 0); } }
@keyframes markIn { to { opacity: 1; transform: none; } }
@keyframes markOut { to { opacity: 0; transform: translateY(-20px) scale(.9); } }
html:not(.js) .veil { display: none; }

/* ---------------------------------------------------------------- cursor */
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.cursor { position: fixed; inset: 0 auto auto 0; z-index: 300; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor__dot, .cursor__ring, .cursor__label { position: fixed; top: 0; left: 0; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--gold); }
.cursor__ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 1px solid rgba(224, 183, 105, .55); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(224, 183, 105, .1); border-color: rgba(224, 183, 105, .8); }
.cursor.has-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--gold-grad); border-color: transparent; }
.cursor__label { width: 96px; height: 96px; margin: -48px 0 0 -48px; display: grid; place-items: center; text-align: center; font-weight: 700; font-size: .78rem; color: #1b1305; opacity: 0; transition: opacity .25s; }
.cursor.has-label .cursor__label { opacity: 1; }
.cursor.is-down .cursor__ring { transform-origin: center; scale: .85; }

/* ---------------------------------------------------------------- header */
.progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .progress i { transform-origin: right; }
.hdr { position: fixed; top: 0; inset-inline: 0; z-index: 100; height: var(--hdr-h); transition: transform .5s var(--ease), background .4s, box-shadow .4s; }
.hdr.is-scrolled { background: rgba(5, 14, 34, .62); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr .wrap { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(224, 183, 105, .25); }
.brand .miras-wordmark { color: var(--gold); font-size: .92rem; }
.nav { margin-inline-start: auto; display: flex; gap: 4px; }
.nav a { position: relative; padding: 8px 14px; font-weight: 600; font-size: .93rem; color: rgba(238, 242, 247, .78); border-radius: 999px; transition: color .3s, background .3s; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav a::after { content: ''; position: absolute; inset-inline: 14px; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .4s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.hdr__tools { display: flex; align-items: center; gap: 10px; }
.nav + .hdr__tools { margin-inline-start: 8px; }
.lang-btn { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; letter-spacing: .04em; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s, box-shadow .3s; }
.lang-btn:hover { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); position: relative; }
.burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger i:nth-child(1) { top: 17px; } .burger i:nth-child(2) { top: 25px; }
.menu-open .burger i:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger i:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* mobile menu */
.menu { position: fixed; inset: 0; z-index: 90; background: rgba(2, 7, 15, .96); backdrop-filter: blur(10px); display: flex; flex-direction: column; justify-content: center; padding: calc(var(--hdr-h) + 20px) var(--gutter) 40px; gap: 6px; clip-path: circle(0 at calc(100% - 40px) 38px); transition: clip-path .8s var(--ease-io); visibility: hidden; }
html[dir="rtl"] .menu { clip-path: circle(0 at 40px 38px); }
.menu-open .menu { clip-path: circle(160% at 50% 0); visibility: visible; }
.menu a { font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 700; line-height: 1.3; opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .6s var(--ease), color .3s; }
.menu a:hover { color: var(--gold); }
.menu-open .menu a { opacity: 1; transform: none; }
.menu-open .menu a:nth-child(2) { transition-delay: .06s; } .menu-open .menu a:nth-child(3) { transition-delay: .12s; }
.menu-open .menu a:nth-child(4) { transition-delay: .18s; } .menu-open .menu a:nth-child(5) { transition-delay: .24s; } .menu-open .menu a:nth-child(6) { transition-delay: .3s; }
.menu__foot { margin-top: 30px; color: var(--muted); font-size: .9rem; }
body.menu-open { overflow: hidden; }

/* ---------------------------------------------------------------- buttons */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 1rem; white-space: nowrap; overflow: hidden; isolation: isolate; transition: transform .45s var(--ease), box-shadow .4s; }
.btn .ic { width: 20px; height: 20px; transition: transform .45s var(--ease); }
.btn:hover .ic { transform: translateX(-4px); }
html[dir="ltr"] .btn:hover .ic { transform: translateX(4px); }
.btn--gold { background: var(--gold-grad); color: #1b1305; box-shadow: 0 14px 40px rgba(168, 120, 44, .35), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn--gold::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn--gold:hover::before { transform: translateX(120%); }
.btn--ghost { color: #fff; background: rgba(11, 26, 51, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px rgba(224, 183, 105, .55); }
.btn--sm { height: 44px; padding: 0 18px; font-size: .92rem; }
.btn--accent { background: var(--p-accent, var(--gold)); color: #1b1305; box-shadow: 0 14px 40px color-mix(in srgb, var(--p-accent, var(--gold)) 35%, transparent); }

/* ---------------------------------------------------------------- reveal & split text */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal].in { opacity: 1; transform: none; }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .12em; margin-block: -.12em; }
[data-split] .wi { display: inline-block; transform: translateY(110%) rotate(4deg); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 45ms + var(--d, 0s)); }
html[dir="rtl"] [data-split] .wi { transform: translateY(110%) rotate(-4deg); }
html[dir] [data-split].in .wi { transform: none; }
html:not(.js) [data-reveal] { opacity: 1; transform: none; }
html:not(.js) [data-split] .wi { transform: none; }

/* ---------------------------------------------------------------- section shell */
.sec { position: relative; padding-block: clamp(90px, 14vh, 160px); }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: .82rem; font-weight: 700; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }
.kicker::before { content: ''; width: 34px; height: 1px; background: var(--gold); }
.h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.2; margin: 14px 0 16px; font-weight: 700; letter-spacing: -.01em; }
html[lang="en"] .h2 { letter-spacing: -.025em; line-height: 1.08; }
.h2 em, .hero__title em { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 40em; margin: 0; }
.sec__head { margin-bottom: clamp(40px, 6vw, 70px); }

/* ---------------------------------------------------------------- hero */
.hero { min-height: 100svh; display: grid; align-items: center; padding: calc(var(--hdr-h) + 40px) 0 90px; position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.hero__copy { position: relative; z-index: 2; }
.hero__kicker { display: inline-flex; align-items: center; gap: 12px; padding: 7px 16px 7px 8px; border-radius: 999px; background: rgba(11, 26, 51, .6); box-shadow: inset 0 0 0 1px var(--line); }
html[dir="rtl"] .hero__kicker { padding: 7px 8px 7px 16px; }
.hero__kicker img { width: 28px; height: 28px; border-radius: 8px; }
.hero__kicker .miras-wordmark { font-size: .72rem; letter-spacing: .32em; margin-inline-end: -.32em; }
.hero__title { font-size: clamp(2.6rem, 6.6vw, 5.8rem); line-height: 1.12; margin: 26px 0 22px; font-weight: 700; letter-spacing: -.01em; }
html[lang="en"] .hero__title { letter-spacing: -.035em; line-height: 1.02; font-size: clamp(2.4rem, 5.2vw, 4.6rem); }
html[lang="en"] .hero__title .ln { display: inline; }
html[lang="en"] .hero__title .ln::after { content: " "; }
.hero__title .ln { display: block; }
.hero__p { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 32em; margin: 0 0 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: rgba(238, 242, 247, .85); background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line-2); }
.chip .ic { width: 17px; height: 17px; color: var(--gold); }
.hero__visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.badge { position: absolute; inset-inline-end: 6%; bottom: 6%; width: 132px; height: 132px; display: grid; place-items: center; }
.badge svg { direction: ltr; unicode-bidi: isolate; position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge text { fill: var(--gold); font: 700 9.4px var(--miras-font); letter-spacing: .38em; }
.badge img { width: 54px; height: 54px; border-radius: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-cue { position: absolute; bottom: 28px; inset-inline-start: 50%; translate: -50% 0; display: grid; justify-items: center; gap: 10px; font-size: .75rem; letter-spacing: .2em; color: var(--muted); }
html[dir="rtl"] .scroll-cue { translate: 50% 0; }
.scroll-cue i { width: 1px; height: 48px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent, #fff, transparent); animation: drip 2s var(--ease) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
/* hero intro choreography (after loader) */
.hero [data-intro] { opacity: 0; transform: translateY(30px); }
.is-ready .hero [data-intro] { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }

/* ---------------------------------------------------------------- marquee */
.marquee { position: relative; padding-block: 28px; overflow: hidden; border-block: 1px solid var(--line); background: rgba(2, 7, 15, .6); }
.marquee__track { display: flex; width: max-content; gap: 0; will-change: transform; }
.marquee__item { display: inline-flex; align-items: center; gap: 36px; padding-inline-end: 36px; font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; line-height: 1.2; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(224, 183, 105, .55); }
.marquee__item:nth-child(even) { color: var(--text); -webkit-text-stroke: 0; }
.marquee__item svg { width: .5em; height: .5em; color: var(--gold); -webkit-text-stroke: 0; }

/* ---------------------------------------------------------------- services (stacking cards) */
.stack { display: grid; gap: clamp(28px, 5vw, 56px); }
.svc { position: relative; min-height: min(520px, 70vh); display: grid; grid-template-columns: 1fr 1.05fr; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(160deg, #0f2140, #060f24); box-shadow: 0 0 0 1px var(--line), 0 30px 70px rgba(0, 0, 0, .3); }
.svc__body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 16px; }
.svc__num { font-size: .85rem; font-weight: 700; letter-spacing: .2em; color: var(--gold); direction: ltr; text-align: start; }
.svc h3 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.2; margin: 0; }
.svc p { color: var(--muted); margin: 0; font-size: 1.08rem; max-width: 28em; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.svc__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(224, 183, 105, .1); color: var(--gold); box-shadow: inset 0 0 0 1px var(--line); }
.svc__icon .ic { width: 30px; height: 30px; }
.svc__art { position: relative; overflow: hidden; background: radial-gradient(90% 80% at 50% 40%, rgba(28, 107, 194, .25), transparent 70%); display: grid; place-items: center; padding: 30px; }
.svc__art .media { width: 100%; }
.device-frame { border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 80px rgba(0, 0, 0, .5); transform: perspective(1200px) rotateY(-14deg) rotateX(6deg); transition: transform 1s var(--ease); }
html[dir="ltr"] .device-frame { transform: perspective(1200px) rotateY(14deg) rotateX(6deg); }
.svc:hover .device-frame { transform: perspective(1200px) rotateY(0) rotateX(0); }
.device-frame--phone { width: min(240px, 60%); border-radius: 30px; border: 6px solid #0d1726; }
.browser { width: 100%; border-radius: 14px; overflow: hidden; background: #0a1427; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 80px rgba(0, 0, 0, .5); }
.browser__bar { display: flex; gap: 6px; padding: 12px 14px; background: rgba(255, 255, 255, .04); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.browser__body { padding: 22px; display: grid; gap: 12px; }
.browser__hero { height: 120px; border-radius: 10px; background: linear-gradient(120deg, rgba(224, 183, 105, .35), rgba(28, 107, 194, .35)); position: relative; overflow: hidden; }
.browser__hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%); animation: sheen 3.5s var(--ease) infinite; }
@keyframes sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.browser__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.browser__row span { height: 64px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.browser__line { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.browser__line.s { width: 60%; }

/* ---------------------------------------------------------------- media (lazy, blurred LQIP) */
.media { position: relative; overflow: hidden; background-size: cover; background-position: center; }
.media::before { content: ''; position: absolute; inset: 0; background: inherit; filter: blur(14px); transform: scale(1.1); transition: opacity .8s; }
.media img { position: relative; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease); }
.media.is-loaded img { opacity: 1; }
.media.is-loaded::before { opacity: 0; }

/* ---------------------------------------------------------------- products */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.filter { height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); transition: .35s var(--ease); }
.filter:hover { color: #fff; }
.filter.is-on { color: #1b1305; background: var(--gold-grad); box-shadow: none; }
.grid-p { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 26px; }
.pcard { --rx: 0deg; --ry: 0deg; position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); background: linear-gradient(170deg, rgba(15, 33, 64, .85), rgba(5, 14, 34, .92)); box-shadow: 0 0 0 1px var(--line); transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .8s var(--ease), box-shadow .5s, opacity .6s, scale .6s var(--ease); isolation: isolate; }
.pcard.is-tilting { transition: transform .12s linear, box-shadow .5s; }
.pcard:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--p-primary, var(--gold)) 60%, transparent), 0 40px 90px rgba(0, 0, 0, .45), 0 0 80px color-mix(in srgb, var(--p-primary, var(--gold)) 18%, transparent); }
.pcard::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .1), transparent 45%); opacity: 0; transition: opacity .4s; }
.pcard:hover::after { opacity: 1; }
.pcard__art { position: relative; aspect-ratio: 16 / 10.5; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; background: var(--p-art, var(--bg-soft)); display: grid; place-items: center; transform-style: preserve-3d; }
.pcard__art::before { content: ''; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--p-accent, #fff) 30%, transparent), transparent 30%); animation: spin 9s linear infinite; opacity: .35; }
.pcard__icon { position: relative; width: 38%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); transform: translateZ(60px); transition: transform 1s var(--ease); }
.pcard:hover .pcard__icon { transform: translateZ(90px) translateY(-6px) rotate(-3deg); }
.pcard__shot { position: absolute; inset-inline-end: -8%; bottom: -14%; width: 62%; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); transform: rotate(-8deg) translateZ(20px); opacity: .55; transition: transform 1s var(--ease), opacity .6s; }
html[dir="rtl"] .pcard__shot { transform: rotate(8deg) translateZ(20px); }
.pcard:hover .pcard__shot { opacity: .85; transform: rotate(-4deg) translate(-4%, -6%) translateZ(30px); }
html[dir="rtl"] .pcard:hover .pcard__shot { transform: rotate(4deg) translate(4%, -6%) translateZ(30px); }
.pcard__body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; transform: translateZ(30px); }
.pcard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--p-primary, var(--gold)); background: color-mix(in srgb, var(--p-primary, var(--gold)) 14%, transparent); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 4px rgba(37, 211, 102, .15); }
.pcard h3 { margin: 4px 0 0; font-size: 1.7rem; line-height: 1.2; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pcard h3 small { font-size: .95rem; color: var(--muted); font-weight: 600; letter-spacing: .12em; }
.pcard p { margin: 0; color: var(--muted); }
.pcard__foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-2); }
.plats { display: flex; gap: 8px; }
.plat { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); color: var(--muted); }
.plat .ic { width: 17px; height: 17px; }
.go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--p-accent, var(--gold)); }
.go .ic { transition: transform .5s var(--ease); }
.pcard:hover .go .ic { transform: translateX(-6px); }
html[dir="ltr"] .pcard:hover .go .ic { transform: translateX(6px); }
.pcard__link { position: absolute; inset: 0; z-index: 4; border-radius: inherit; }
.pcard.is-filtered { opacity: .12; scale: .96; pointer-events: none; }
.pcard--soon { background: transparent; box-shadow: none; border: 1.5px dashed rgba(224, 183, 105, .28); justify-content: center; align-items: center; text-align: center; min-height: 380px; padding: 30px; gap: 14px; }
.pcard--soon .orb { width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #f1d28c, #a8782c 45%, #1c6bc2 100%); filter: blur(.3px); animation: morph 8s ease-in-out infinite; box-shadow: 0 0 60px rgba(224, 183, 105, .3); }
@keyframes morph { 0%, 100% { border-radius: 50%; transform: rotate(0); } 25% { border-radius: 58% 42% 50% 50% / 45% 55% 45% 55%; } 50% { border-radius: 40% 60% 62% 38% / 55% 40% 60% 45%; transform: rotate(180deg); } 75% { border-radius: 55% 45% 40% 60% / 40% 60% 40% 60%; } }

/* ---------------------------------------------------------------- why (bento with spotlight) */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cell { position: relative; padding: 30px; border-radius: var(--radius); background: rgba(11, 26, 51, .78); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; min-height: 210px; display: flex; flex-direction: column; gap: 10px; transition: transform .6s var(--ease), box-shadow .5s; }
.cell::before { content: ''; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--sx, -100px) var(--sy, -100px), rgba(224, 183, 105, .14), transparent 60%); pointer-events: none; }
.cell:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px rgba(0, 0, 0, .3); }
.cell__ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--gold); background: rgba(224, 183, 105, .08); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 8px; }
.cell__ic .ic { width: 26px; height: 26px; }
.cell h3 { margin: 0; font-size: 1.3rem; }
.cell p { margin: 0; color: var(--muted); }
.cell--wide { grid-column: span 2; }
.cell__deco { position: absolute; inset-inline-end: -30px; bottom: -40px; width: 220px; height: 220px; color: var(--gold); opacity: .07; pointer-events: none; animation: floaty 9s ease-in-out infinite; }
.cell__deco .ic { width: 100%; height: 100%; stroke-width: .9; }
@keyframes floaty { 50% { transform: translateY(-14px) rotate(-6deg); } }
.cell--wide .cell__ic { position: relative; }
.cell__ring { position: absolute; inset-inline-end: 12%; top: 50%; width: 150px; height: 150px; margin-top: -75px; border-radius: 50%; border: 1px dashed rgba(224, 183, 105, .3); animation: spin 24s linear infinite; pointer-events: none; }
.cell__ring::after { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 20px var(--gold); }
@media (max-width: 640px) { .cell__ring { display: none; } }
.cell--tall { grid-row: span 2; }
.cell__big { margin-top: auto; font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 700; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; direction: ltr; text-align: start; }

/* ---------------------------------------------------------------- process (horizontal pinned) */
.process { position: relative; }
.process__pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.process__track { display: flex; gap: 26px; padding-inline: var(--gutter); will-change: transform; margin-top: 34px; }
.step { flex: none; width: min(420px, 78vw); min-height: 340px; padding: 34px; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(15, 33, 64, .82), rgba(5, 14, 34, .9)); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.step__n { font-size: 5.5rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(224, 183, 105, .5); direction: ltr; text-align: start; }
.step h3 { margin: auto 0 0; font-size: 1.7rem; }
.step p { margin: 0; color: var(--muted); }
.step::after { content: ''; position: absolute; inset-inline-end: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(28, 107, 194, .35), transparent 70%); }
.process__bar { margin: 40px var(--gutter) 0; height: 2px; background: rgba(255, 255, 255, .08); border-radius: 2px; overflow: hidden; }
.process__bar i { display: block; height: 100%; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .process__bar i { transform-origin: right; }

/* ---------------------------------------------------------------- contact */
.contact { text-align: center; }
.contact__title { font-size: clamp(2.4rem, 6.4vw, 5.6rem); line-height: 1.15; margin: 18px auto 22px; max-width: 14em; }
html[lang="en"] .contact__title { letter-spacing: -.035em; line-height: 1.04; }
.contact__title em { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact .lead { margin-inline: auto; }
.clinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; margin: 50px auto 0; max-width: 820px; text-align: start; }
.clink { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: rgba(11, 26, 51, .78); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .4s, background .4s, transform .5s var(--ease); overflow: hidden; }
.clink:hover { box-shadow: inset 0 0 0 1px var(--line); background: var(--surface-2); }
.clink__ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; }
.clink__ic .ic { width: 22px; height: 22px; }
.clink--whatsapp .clink__ic { background: #25d366; }
.clink--mail .clink__ic { background: var(--gold-grad); color: #1b1305; }
.clink--instagram .clink__ic { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.clink--facebook .clink__ic { background: #1877f2; }
.clink--tiktok .clink__ic { background: #010101; box-shadow: -2px -2px 0 #25f4ee inset, 2px 2px 0 #fe2c55 inset; }
.clinks .clink:last-child:nth-child(odd) { grid-column: 1 / -1; }
.clink__txt { display: grid; min-width: 0; line-height: 1.4; }
.clink__txt small { color: var(--muted); font-size: .8rem; }
.clink__txt b { font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.clink__go { margin-inline-start: auto; color: var(--dim); transition: color .3s, transform .4s var(--ease); }
html[dir="rtl"] .clink__go { transform: scaleX(-1); }
.clink:hover .clink__go { color: var(--gold); }
.logo-frame { width: min(300px, 70vw); margin: 70px auto 0; border-radius: 34px; overflow: hidden; background: var(--miras-navy); box-shadow: 0 0 0 1px rgba(224, 183, 105, .25), 0 50px 120px rgba(0, 0, 0, .55), 0 0 120px rgba(224, 183, 105, .12); }
.logo-frame img { width: 100%; height: auto; aspect-ratio: 937 / 860; }

/* ---------------------------------------------------------------- footer */
.foot { position: relative; padding: 70px 0 34px; margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(to bottom, rgba(2, 7, 15, .2), rgba(2, 7, 15, .85)); }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); font-size: .95rem; }
.foot__nav a:hover { color: var(--gold); }
.to-top { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--muted); }
.to-top span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: .4s var(--ease); }
.to-top:hover span { background: var(--gold-grad); color: #1b1305; transform: translateY(-4px); }
.foot .miras-footer { padding: 0; gap: 14px; }
.foot .miras-signature { width: min(70%, 260px); }
.foot .miras-footer__copy { color: var(--muted); opacity: .85; }

/* ---------------------------------------------------------------- product page */
.p-page { --p-primary: #1f9ea0; --p-accent: #f2a93b; --p-dark: #0f6670; --p-deep: #0a1517; }
.p-bg { position: fixed; inset: 0; z-index: -2; background: radial-gradient(70% 60% at 25% 20%, color-mix(in srgb, var(--p-primary) 22%, transparent), transparent 70%), radial-gradient(50% 50% at 90% 80%, color-mix(in srgb, var(--p-accent) 10%, transparent), transparent 70%), radial-gradient(120% 90% at 50% 20%, #0b1a33 0%, #050e22 55%, #02070f 100%); }
.p-hero { position: relative; min-height: 100svh; padding: calc(var(--hdr-h) + 30px) 0 60px; display: grid; align-items: center; }
.p-hero__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 30px; align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a:hover { color: var(--gold); }
.crumbs .ic { width: 14px; height: 14px; opacity: .5; }
html[dir="ltr"] .crumbs .ic { transform: scaleX(-1); }
.p-hero__logo { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.p-hero__logo img.icon { width: 74px; height: 74px; border-radius: 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.p-hero__logo img.word { height: 44px; width: auto; }
.p-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.12; margin: 14px 0 16px; }
html[lang="en"] .p-hero h1 { letter-spacing: -.03em; line-height: 1.04; }
.p-hero h1 em { color: var(--p-accent); }
.p-hero__p { font-size: 1.15rem; color: var(--muted); max-width: 32em; margin: 0 0 30px; }
.p-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.p-hero__plats { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 34px; color: var(--muted); font-size: .9rem; }
.p-hero__plats .chip .ic { color: var(--p-accent); }
.p-hero .tag { color: var(--p-primary); }
.stage { position: relative; width: 100%; aspect-ratio: 1.12; }
.stage canvas { width: 100%; height: 100%; }
.stage::before { content: ''; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--p-primary) 35%, transparent), transparent 65%); filter: blur(30px); z-index: -1; }
.stage__fallback { position: absolute; inset: 0; display: none; place-items: center; }
.stage__fallback img { width: 46%; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .5)); }
.no-webgl .stage__fallback, .stage canvas.is-off + .stage__fallback { display: grid; }

.subnav { position: sticky; top: 12px; z-index: 80; margin: 0 auto; width: max-content; max-width: calc(100% - 2 * var(--gutter)); padding: 6px; border-radius: 999px; background: rgba(5, 14, 34, .72); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px rgba(0, 0, 0, .35); display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; top: calc(var(--hdr-h) + 8px); transition: transform .5s var(--ease); }
.hdr.is-hidden ~ main .subnav { transform: translateY(calc(-1 * var(--hdr-h))); }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { position: relative; z-index: 1; padding: 9px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .3s; }
.subnav a.is-active { color: #1b1305; }
.subnav__pill { position: absolute; z-index: 0; top: 6px; height: calc(100% - 12px); border-radius: 999px; background: var(--p-accent); transition: transform .55s var(--ease), width .55s var(--ease); left: 0; }

.p-sec { padding-block: clamp(80px, 12vh, 140px); }
.p-overview { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.p-overview p { font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.95; color: rgba(238, 242, 247, .86); margin: 0 0 18px; }
.hl { display: grid; gap: 14px; }
.hl__item { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); display: flex; align-items: center; gap: 18px; }
.hl__item b { font-size: 3rem; line-height: 1; color: var(--p-accent); direction: ltr; min-width: 1.2em; }
.hl__item span { color: var(--muted); }
.p-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; transition: transform .6s var(--ease), box-shadow .5s; }
.feat::before { content: ''; position: absolute; inset: 0; background: radial-gradient(320px circle at var(--sx, -100px) var(--sy, -100px), color-mix(in srgb, var(--p-primary) 20%, transparent), transparent 60%); pointer-events: none; }
.feat:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--p-primary) 45%, transparent), 0 30px 60px rgba(0, 0, 0, .3); }
.feat__n { position: absolute; inset-inline-end: 22px; top: 18px; font-size: .8rem; font-weight: 700; color: var(--dim); direction: ltr; }
.feat__ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--p-accent); background: color-mix(in srgb, var(--p-primary) 16%, transparent); margin-bottom: 18px; }
.feat__ic .ic { width: 26px; height: 26px; }
.feat h3 { margin: 0 0 8px; font-size: 1.2rem; }
.feat p { margin: 0; color: var(--muted); font-size: .98rem; }

.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); margin-bottom: 30px; flex-wrap: wrap; }
.tabs button { height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--muted); transition: .35s var(--ease); }
.tabs button.is-on { background: var(--p-primary); color: #fff; }
.gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px var(--gutter) 30px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: thin; scrollbar-color: var(--p-primary) transparent; cursor: grab; }
.gallery.is-drag { cursor: grabbing; scroll-snap-type: none; }
.gallery.is-drag * { pointer-events: none; }
.shot { flex: none; scroll-snap-align: center; display: grid; gap: 12px; transition: opacity .5s, transform .6s var(--ease); }
.shot[hidden] { display: none; }
.shot__frame { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px rgba(0, 0, 0, .4); transition: transform .6s var(--ease), box-shadow .5s; background-color: var(--p-deep); }
.shot:hover .shot__frame { transform: translateY(-8px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--p-primary) 60%, transparent), 0 40px 80px rgba(0, 0, 0, .5); }
.shot--desktop .shot__frame { width: min(760px, 82vw); aspect-ratio: 16 / 10; }
.shot--tablet .shot__frame { width: min(330px, 62vw); aspect-ratio: 1668 / 2388; }
.shot--phone .shot__frame { width: min(250px, 52vw); aspect-ratio: 1179 / 2556; border-radius: 28px; }
.shot__frame .media { position: absolute; inset: 0; }
.shot figcaption { color: var(--muted); font-size: .92rem; display: flex; gap: 10px; align-items: center; }
.shot figcaption b { color: var(--p-accent); direction: ltr; font-size: .8rem; }

.video { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line), 0 40px 100px rgba(0, 0, 0, .5); }
.video--landscape { aspect-ratio: 16 / 9; }
.video--portrait { aspect-ratio: 9 / 16; max-width: 400px; margin-inline: auto; }
.video video { width: 100%; height: 100%; object-fit: cover; }
.video__poster { position: absolute; inset: 0; display: grid; place-items: center; background-size: cover; background-position: center; transition: opacity .6s; }
.video__poster::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, .55)); }
.video.is-playing .video__poster { opacity: 0; pointer-events: none; }
.play { position: relative; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--p-accent); color: #1b1305; box-shadow: 0 0 0 0 color-mix(in srgb, var(--p-accent) 60%, transparent); animation: pulse 2.2s infinite; transition: transform .5s var(--ease); }
.play:hover { transform: scale(1.08); }
.play .ic { width: 34px; height: 34px; margin-inline-start: 4px; }
html[dir="rtl"] .play .ic { margin-inline-start: 0; margin-inline-end: 4px; transform: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 26px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.video-soon { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); }

.tuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.tut { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); transition: .5s var(--ease); text-align: start; width: 100%; }
.tut:not([disabled]):hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--p-primary) 50%, transparent); transform: translateY(-4px); }
.tut__n { width: 54px; height: 54px; border-radius: 16px; flex: none; display: grid; place-items: center; font-weight: 700; color: var(--p-accent); background: color-mix(in srgb, var(--p-primary) 16%, transparent); direction: ltr; }
.tut__t { display: grid; gap: 2px; min-width: 0; }
.tut__t b { font-weight: 600; }
.tut__t small { color: var(--dim); }
.tut[disabled] { cursor: default; opacity: .78; }
.tut .soon { margin-inline-start: auto; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--muted); white-space: nowrap; }

.specs { border-radius: var(--radius-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--surface); }
.spec { display: grid; grid-template-columns: minmax(130px, .4fr) 1fr; gap: 20px; padding: 20px 28px; border-bottom: 1px solid var(--line-2); transition: background .3s; }
.spec:last-child { border-bottom: 0; }
.spec:hover { background: rgba(255, 255, 255, .025); }
.spec dt { color: var(--muted); font-weight: 600; }
.spec dd { margin: 0; }

.order { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: clamp(40px, 7vw, 90px) clamp(24px, 6vw, 80px); background: var(--p-art, var(--bg-soft)); text-align: center; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.order::before { content: ''; position: absolute; inset: -50%; background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--p-accent) 35%, transparent), transparent 25%); animation: spin 12s linear infinite; opacity: .5; }
.order > * { position: relative; }
.order h2 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 0 0 10px; }
.order p { color: rgba(238, 242, 247, .8); margin: 0 auto 30px; max-width: 32em; }
.order .btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: rgba(2, 7, 15, .92); backdrop-filter: blur(12px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; padding: 70px 16px 90px; }
.lb.is-open { opacity: 1; visibility: visible; }
.lb img { max-width: min(1400px, 100%); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 14px; box-shadow: 0 40px 120px rgba(0, 0, 0, .6); transform: scale(.94); transition: transform .5s var(--ease); }
.lb.is-open img { transform: none; }
.lb__btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s; }
.lb__btn:hover { background: rgba(255, 255, 255, .16); }
.lb__close { top: 16px; inset-inline-end: 16px; }
.lb__prev, .lb__next { top: 50%; translate: 0 -50%; }
.lb__prev { inset-inline-start: 16px; } .lb__next { inset-inline-end: 16px; }
html[dir="rtl"] .lb__prev .ic, html[dir="rtl"] .lb__next .ic { transform: scaleX(-1); }
.lb__cap { position: absolute; bottom: 28px; inset-inline: 16px; text-align: center; color: var(--muted); }

.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .hdr__tools { margin-inline-start: auto; }
  .burger { display: block; }
  .hdr__tools .btn { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .p-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; pointer-events: none; }
  .badge { display: none; }
  .hero { text-align: start; align-items: end; padding-top: calc(var(--hdr-h) + 34vh); }
  .hero__copy { text-shadow: 0 2px 24px rgba(2, 7, 15, .9); }
  .svc { grid-template-columns: 1fr; min-height: 0; }
  .svc__art { min-height: 260px; order: -1; }
  .p-hero__grid { grid-template-columns: 1fr; }
  .stage { order: -1; aspect-ratio: 1.05; margin-top: -10px; }
  .p-overview { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; gap: 4px; padding: 16px 20px; }
}
/* phone & tablet: "how we work" becomes a native finger-swipe carousel instead of the pinned scroll */
@media (max-width: 859px) {
  .process { padding-block: clamp(80px, 12vh, 120px); }
  .process__pin { position: relative; height: auto; overflow: visible; }
  .process__track { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 6px; overscroll-behavior-x: contain; transform: none !important; }
  .process__track::-webkit-scrollbar { display: none; }
  .step { scroll-snap-align: center; width: min(320px, 80vw); min-height: 300px; }
  .process__bar { margin-top: 26px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .cell--wide { grid-column: auto; }
  .p-features { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .btn { height: 50px; padding: 0 20px; }
  .brand .miras-wordmark { font-size: .8rem; }
  .foot__top { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .svc { position: relative; top: 0; }
}

/* =====================================================================================================
   About (about.html) & legal pages (privacy.html, terms.html)
   ===================================================================================================== */
.a-hero [data-intro], .l-hero [data-intro] { opacity: 0; transform: translateY(30px); }
.is-ready .a-hero [data-intro], .is-ready .l-hero [data-intro] { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
html:not(.js) .a-hero [data-intro], html:not(.js) .l-hero [data-intro] { opacity: 1; transform: none; }

.a-hero { min-height: 92svh; display: grid; align-items: center; padding: calc(var(--hdr-h) + 40px) 0 70px; }
.a-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.a-hero .hero__title { margin-top: 22px; }
.a-hero__visual { display: grid; place-items: center; }
.logo-frame--float { margin: 0; width: min(340px, 80%); animation: floatY 7s ease-in-out infinite; }
@keyframes floatY { 50% { transform: translateY(-16px); } }

.a-name { text-align: center; }
.a-name .kicker { justify-content: center; }
.a-name__word { font-size: clamp(5rem, 18vw, 13rem); font-weight: 700; line-height: 1.15; margin: 10px 0 6px; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 20px 60px rgba(224, 183, 105, .25)); }
.a-name__def { max-width: 38em; margin: 0 auto; font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.95; color: rgba(238, 242, 247, .88); }

.a-story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 90px); align-items: start; }
.a-story .sec__head { position: sticky; top: calc(var(--hdr-h) + 30px); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; position: relative; }
.timeline::before { content: ''; position: absolute; inset-inline-start: 11px; top: 14px; bottom: 14px; width: 1px; background: linear-gradient(var(--gold), rgba(224, 183, 105, .05)); }
.timeline li { position: relative; padding: 24px 28px; padding-inline-start: 52px; border-radius: var(--radius); background: rgba(11, 26, 51, .78); box-shadow: inset 0 0 0 1px var(--line-2); }
.timeline__dot { position: absolute; inset-inline-start: 4px; top: 30px; width: 15px; height: 15px; border-radius: 50%; background: var(--gold-grad); box-shadow: 0 0 0 5px rgba(224, 183, 105, .12), 0 0 20px rgba(224, 183, 105, .45); }
.timeline p { margin: 0; font-size: 1.08rem; line-height: 1.9; color: rgba(238, 242, 247, .88); }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mv__card { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: linear-gradient(160deg, #0f2140, #060f24); box-shadow: 0 0 0 1px var(--line), 0 30px 70px rgba(0, 0, 0, .3); min-height: 260px; display: flex; flex-direction: column; gap: 16px; }
.mv__card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--sx, -100px) var(--sy, -100px), rgba(224, 183, 105, .14), transparent 60%); pointer-events: none; }
.mv__card p { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.6; font-weight: 600; }
.mv__glyph { position: absolute; inset-inline-end: -20px; bottom: -30px; width: 170px; height: 170px; color: var(--gold); opacity: .08; animation: floaty 9s ease-in-out infinite; }
.mv__glyph .ic { width: 100%; height: 100%; stroke-width: .8; }

.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.member--lead { grid-column: 1 / -1; }
.member.member--compact { grid-template-columns: 1fr; justify-items: center; text-align: center; align-content: start; gap: 18px; padding-block: 34px 30px; }
.member.member--compact .member__photo { width: clamp(104px, 10vw, 128px); }
.member--compact .member__initial { font-size: clamp(2.6rem, 4vw, 3.3rem); }
.member.member--compact .member__body { justify-items: center; }
.member.member--compact h3 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); }
.member { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 36px); align-items: center; padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius-lg); background: linear-gradient(160deg, #0f2140, #060f24); box-shadow: 0 0 0 1px var(--line), 0 30px 70px rgba(0, 0, 0, .3); }
.member::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--sx, -100px) var(--sy, -100px), rgba(224, 183, 105, .12), transparent 60%); pointer-events: none; }
.member__photo { position: relative; width: clamp(120px, 14vw, 170px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #1b3560, var(--miras-navy) 70%); display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(224, 183, 105, .35), 0 20px 50px rgba(0, 0, 0, .45); }
.member__photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.member__initial { font-size: clamp(3rem, 6vw, 4.4rem); font-weight: 700; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.member__ring { position: absolute; inset: -10px; border-radius: 50%; border: 1px dashed rgba(224, 183, 105, .4); animation: spin 26s linear infinite; }
.member__ring::after { content: ''; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 16px var(--gold); }
.member__body { display: grid; gap: 10px; min-width: 0; }
.member__body .tag { width: fit-content; color: var(--gold); background: rgba(224, 183, 105, .12); }
.member h3 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; }
.member p { margin: 0; color: var(--muted); line-height: 1.9; }
.member__skills { display: flex; flex-wrap: wrap; gap: 8px; }
.member__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.member--soon { min-height: 0; }

/* legal */
.l-hero { padding: calc(var(--hdr-h) + 60px) 0 50px; }
.l-hero__title { font-size: clamp(2.6rem, 6vw, 5rem); margin: 18px 0 18px; }
.l-hero .hero__p { max-width: 36em; }
.l-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.l-meta .chip b { color: var(--gold); font-weight: 700; }
.chip--link { transition: box-shadow .3s, color .3s; }
.chip--link:hover { box-shadow: inset 0 0 0 1px var(--line); color: var(--gold); }
.l-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 980px; }
.l-summary__label { grid-column: 1 / -1; font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }
.l-summary__item { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: rgba(11, 26, 51, .78); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 600; line-height: 1.6; }
.l-summary__item .ic { color: #25d366; flex: none; margin-top: 3px; }
.l-body { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: start; padding-bottom: 60px; }
.toc { position: sticky; top: calc(var(--hdr-h) + 20px); }
.toc__box { border-radius: var(--radius); background: rgba(5, 14, 34, .82); box-shadow: inset 0 0 0 1px var(--line); padding: 8px; }
.toc__box summary { cursor: pointer; list-style: none; padding: 12px 14px; font-weight: 700; color: var(--gold); display: flex; justify-content: space-between; align-items: center; }
.toc__box summary::-webkit-details-marker { display: none; }
.toc__box summary::after { content: '+'; font-size: 1.2rem; color: var(--muted); transition: transform .3s; }
.toc__box[open] summary::after { transform: rotate(45deg); }
.toc ol { list-style: none; margin: 0; padding: 0 0 6px; max-height: calc(100vh - var(--hdr-h) - 120px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(224, 183, 105, .3) transparent; }
.toc a { display: flex; gap: 12px; align-items: baseline; padding: 8px 14px; border-radius: 12px; font-size: .92rem; color: var(--muted); line-height: 1.5; transition: background .3s, color .3s; }
.toc a b { font-size: .75rem; color: var(--dim); min-width: 1.4em; transition: color .3s; }
.toc a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.toc a.is-active { color: #fff; background: rgba(224, 183, 105, .1); box-shadow: inset 2px 0 0 var(--gold); }
html[dir="rtl"] .toc a.is-active { box-shadow: inset -2px 0 0 var(--gold); }
.toc a.is-active b { color: var(--gold); }
.l-doc { min-width: 0; display: grid; gap: 18px; }
.l-zone { display: grid; gap: 18px; }
.clause { padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); background: rgba(11, 26, 51, .8); box-shadow: inset 0 0 0 1px var(--line-2); scroll-margin-top: calc(var(--hdr-h) + 24px); transition: box-shadow .5s; }
.clause:target { box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 4px rgba(224, 183, 105, .12); }
.clause h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.4; }
.clause__n { font-size: .9rem; font-weight: 700; color: var(--gold); padding: 3px 10px; border-radius: 999px; background: rgba(224, 183, 105, .1); flex: none; }
.clause ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.clause li { position: relative; padding-inline-start: 22px; color: rgba(238, 242, 247, .86); line-height: 1.95; }
.clause li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .8em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); opacity: .7; }
.l-note { display: flex; gap: 12px; align-items: center; margin: 10px 0 0; padding: 16px 20px; border-radius: 18px; color: var(--muted); border: 1px dashed rgba(224, 183, 105, .3); }
.l-note .ic { color: var(--gold); }
.l-contact .clinks { margin: 20px 0 0; max-width: none; }

/* home → about teaser */
.teaser { position: relative; }
.teaser__card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 30px; align-items: center; padding: clamp(30px, 5vw, 64px); border-radius: var(--radius-lg); background: linear-gradient(160deg, #0f2140, #060f24); box-shadow: 0 0 0 1px var(--line), 0 40px 90px rgba(0, 0, 0, .35); }
.teaser__card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--sx, -100px) var(--sy, -100px), rgba(224, 183, 105, .12), transparent 60%); pointer-events: none; }
.teaser__card .h2 { margin-top: 10px; }
.teaser__card .lead { margin-bottom: 26px; }
.teaser__word { justify-self: center; font-size: clamp(4rem, 11vw, 8rem); font-weight: 700; line-height: 1.2; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: floatY 7s ease-in-out infinite; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 18px 0 0; font-size: .85rem; color: var(--dim); }
.foot__legal a:hover { color: var(--gold); }

@media (max-width: 980px) {
  .l-body { grid-template-columns: 1fr; }
  .toc { position: relative; top: 0; }
  .l-summary { grid-template-columns: 1fr; }
  .a-story { grid-template-columns: 1fr; }
  .a-story .sec__head { position: relative; top: 0; }
  .team { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .a-hero__grid { grid-template-columns: 1fr; }
  .a-hero__visual { display: none; }
  .a-hero { align-items: end; padding-top: calc(var(--hdr-h) + 30vh); text-shadow: 0 2px 24px rgba(2, 7, 15, .9); }
  .l-hero { padding-top: calc(var(--hdr-h) + 24vh); }
  .mv { grid-template-columns: 1fr; }
  .teaser__card { grid-template-columns: 1fr; }
  .teaser__word { display: none; }
}
@media (max-width: 640px) {
  .member { grid-template-columns: 1fr; justify-items: start; }
  .team { grid-template-columns: 1fr; }
  .member--compact { justify-items: center; }
  .bento--values { grid-template-columns: 1fr; }
}

/* 404 page */
.nf { min-height: 100svh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 14px; padding: 40px 16px; }
.nf .brand { margin-bottom: 20px; }
.nf__code { margin: 0; font-size: clamp(6rem, 22vw, 12rem); font-weight: 700; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf__title { margin: 0; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.nf__p { margin: 0; color: var(--muted); }
.nf .btn { margin-top: 16px; }
