/* Magic Media — rehearsal site */
:root {
  --bg: #101012;
  --bg-2: #161619;
  --bg-3: #1d1d21;
  --ink: #f4efe8;
  --ink-2: #d8d2ca;
  --muted: #a39e97;
  --line: rgba(244, 239, 232, .10);
  --red: #e60020;
  --red-d: #c2001b;
  --amber: #e7a54a;
  --ok: #3fbf7f;
  --radius: 6px;
  --hdr: 72px;
  --font: 'Alexandria', 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hdr); }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 16px; line-height: 1.7; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0; font-weight: 800; }
p { margin: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; right: 16px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 4px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
[tabindex="-1"]:focus { outline: none; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: 32px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { color: var(--ink-2); font-size: 14px; font-weight: 500; letter-spacing: 0; margin-bottom: 14px; opacity: .85; }
.red { color: var(--red); }

/* ---------- buttons ---------- */
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 15px 28px; border: 0; border-radius: 4px;
  font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color .2s, transform .2s;
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -12px rgba(230, 0, 32, .7); }
.btn-red:hover { background: var(--red-d); }
.btn-red:active { transform: translateY(1px); }
.btn[disabled], .btn-ghost[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1px solid rgba(244, 239, 232, .3);
  border-radius: 4px; background: transparent; text-decoration: none; font-weight: 600; font-size: 15px; cursor: pointer; line-height: 1.3;
  transition: border-color .2s, background-color .2s;
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, .05); }
.btn-ghost.sm { padding: 7px 14px; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; color: var(--ink); }
.link-arrow .ico { width: 18px; height: 18px; color: var(--red); transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(-4px); }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: rgba(16, 16, 18, .7); border: 1px solid var(--line); color: var(--ink-2); }
.chip-amber { color: #ffd59a; border-color: rgba(231, 165, 74, .45); }

/* ---------- header ---------- */
.site-header {
  --hdr-a: 0;
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hdr);
  background: rgba(16, 16, 18, calc(var(--hdr-a) * .94));
  border-bottom: 1px solid rgba(244, 239, 232, calc(var(--hdr-a) * .07));
  backdrop-filter: blur(calc(var(--hdr-a) * 12px)); -webkit-backdrop-filter: blur(calc(var(--hdr-a) * 12px));
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -30px 0; pointer-events: none;
  background: linear-gradient(rgba(8, 8, 9, .6), rgba(8, 8, 9, 0)); opacity: calc(1 - var(--hdr-a));
}
.hdr-inner { position: relative; height: 100%; max-width: 1400px; margin-inline: auto; padding-inline: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; text-decoration: none; flex: none; }
.logo { position: relative; display: block; height: 42px; aspect-ratio: 643 / 207; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo-sm { height: 30px; }
.logo-sm img { position: static; }
.nav { display: flex; align-items: center; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 34px; margin: 0; padding: 0; }
.nav-list a:not(.btn-ghost) { position: relative; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 6px 0; transition: color .2s; }
.nav-list a:not(.btn-ghost):hover, .nav-list a.is-active { color: var(--ink); }
.nav-list a.is-active::after { content: ""; position: absolute; right: 0; left: 0; bottom: -4px; height: 2px; background: var(--red); }
.nav-portal { padding-inline-start: 6px; border-inline-start: 1px solid var(--line); }
.nav-portal .btn-ghost { font-size: 14px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: rgba(16, 16, 18, .5); cursor: pointer; padding: 0; }
.menu-icon { display: grid; gap: 5px; width: 20px; margin: auto; }
.menu-icon i { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-open .menu-icon i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-icon i:nth-child(2) { opacity: 0; }
.menu-open .menu-icon i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: absolute; inset: var(--hdr) 0 auto 0; background: #121214; border-bottom: 1px solid var(--line); padding: 8px 16px 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu a { display: block; padding: 14px 4px; font-size: 19px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu .mm-portal { color: #fff; border: 0; margin-top: 14px; background: var(--red); border-radius: 4px; text-align: center; font-size: 17px; }

/* ---------- hero: see "home scenes" at the end ---------- */

/* ---------- sections ---------- */
.section { padding: 104px 0; position: relative; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-title { display: flex; align-items: center; gap: 16px; font-size: clamp(30px, 3.4vw, 46px); }
.dash { display: inline-block; width: 40px; height: 4px; background: var(--red); flex: none; }
.sec-note { color: var(--muted); font-size: 14px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.card-link { display: block; position: relative; height: clamp(320px, 31vw, 440px); text-decoration: none; color: var(--ink); }
.card-media, .card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.card-media video { opacity: 0; transition: opacity .25s; }
.card.playing .card-media video { opacity: 1; }
.card-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0) 45%, rgba(8, 8, 9, .88)); }
.card-link:hover .card-media img { transform: scale(1.04); }
.card-body { position: absolute; z-index: 2; right: 22px; left: 22px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.card-cat { font-size: 13px; color: var(--ink-2); }
.card-title { font-size: 28px; font-weight: 800; line-height: 1.2; }
.card-body .chip { margin-top: 6px; }
.card-go { position: absolute; z-index: 2; left: 20px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; transform: scale(.85); opacity: 0; transition: opacity .25s, transform .25s; }
.card-link:hover .card-go, .card-link:focus-visible .card-go { opacity: 1; transform: none; }
.card-play { position: absolute; z-index: 3; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 14px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(10, 10, 11, .65); backdrop-filter: blur(6px); font-size: 13px; font-weight: 600; cursor: pointer; }
.card-play svg { width: 14px; height: 14px; fill: currentColor; }
.card-play .i-pause, .card.playing .card-play .i-play { display: none; }
.card.playing .card-play .i-pause { display: block; }

/* ---------- clients strip ---------- */
.clients-sec { padding-top: 24px; overflow: hidden; }
.clients-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mq-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.mq-toggle:hover { color: var(--ink); border-color: rgba(244, 239, 232, .3); }
.mq-toggle svg { width: 13px; height: 13px; fill: currentColor; }
.mq-toggle .i-play, .mq-toggle[aria-pressed="true"] .i-pause { display: none; }
.mq-toggle[aria-pressed="true"] .i-play { display: block; }
.marquee { display: grid; gap: 18px; }
.mq-row { display: flex; direction: ltr; overflow-x: auto; overflow-y: hidden; padding-block: 8px; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; cursor: grab;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.mq-row::-webkit-scrollbar { display: none; }
.mq-row.is-drag { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.mq-row.is-drag a { pointer-events: none; }
.mq-track { display: flex; gap: 18px; padding: 0 18px 0 0; margin: 0; list-style: none; flex: none; }
.mq-row img { -webkit-user-drag: none; user-select: none; }
.cl-tile { direction: rtl; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 156px; padding: 14px 10px 16px; border-radius: 14px; text-decoration: none; text-align: center;
  background: var(--bg-2); border: 1px solid var(--line); transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .25s, background-color .25s; }
.cl-tile-logo { position: relative; display: block; width: 104px; height: 104px; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .9); }
.cl-tile-logo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.cl-tile-logo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s; }
.cl-tile-name { font-weight: 700; font-size: 15px; line-height: 1.35; }
.cl-tile-cat { font-size: 12px; color: var(--muted); line-height: 1.3; margin-top: -6px; }
.cl-tile:hover, .cl-tile:focus-visible { transform: translateY(-6px); border-color: rgba(230, 0, 32, .55); background: var(--bg-3); }
.cl-tile:hover .cl-tile-logo img { transform: scale(1.06); }
.cl-tile:hover .cl-tile-logo::after { transform: translateX(120%); }

/* ---------- AI hub: see "home scenes" at the end. Old head art (still used by /demo): ---------- */
.head-svg { width: 100%; height: auto; overflow: visible; }
.gear { fill: rgba(230, 0, 32, .16); stroke: #ff2a3d; stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.circuit { fill: none; stroke: #e60020; stroke-opacity: .5; stroke-width: 1.5; stroke-dasharray: 4 6; }
.processing .g-a { animation: spin 2.2s linear infinite; }
.processing .g-b { animation: spin 1.5s linear infinite reverse; }
.processing .g-c { animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- services ---------- */

/* ---------- contact form ---------- */
.contact { background: linear-gradient(var(--bg), #0d0d0f); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; position: sticky; top: calc(var(--hdr) + 24px); }
.contact-copy p { color: var(--ink-2); }
.note-local { font-size: 13px; color: var(--muted) !important; border-inline-start: 2px solid var(--amber); padding-inline-start: 10px; }
.form { display: flex; flex-direction: column; gap: 18px; padding: 30px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.ctx { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: rgba(230, 0, 32, .1); border: 1px solid rgba(230, 0, 32, .45); border-radius: 4px; font-size: 14px; }
.ctx-x { border: 0; background: transparent; cursor: pointer; width: 32px; height: 32px; border-radius: 4px; color: var(--ink-2); }
.ctx-x:hover { background: rgba(255, 255, 255, .08); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; background: #0f0f11; border: 1px solid rgba(244, 239, 232, .16); border-radius: 4px; font-size: 16px; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(244, 239, 232, .14); }
.field [aria-invalid="true"] { border-color: #ff4d5e; }
.field input::placeholder, .field textarea::placeholder { color: #6f6a64; }
.row2 { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
.err { color: #ff8a95; font-size: 13px; min-height: 0; }
.err:empty { display: none; }
.form .btn { align-self: flex-start; }
.form-status { font-size: 15px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { color: #9ee6be; padding: 12px 14px; background: rgba(63, 191, 127, .1); border: 1px solid rgba(63, 191, 127, .35); border-radius: 4px; }
.form-status.bad { color: #ff8a95; }

/* ---------- inner pages ---------- */
.page { padding-top: var(--hdr); min-height: 80vh; }
.back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; margin-bottom: 26px; padding: 6px 0; }
.back:hover { color: var(--ink); }
.back .ico { width: 18px; height: 18px; color: var(--red); }
.pj-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; padding: 60px 0 48px;
  background-color: #101012; background-position: center; background-size: cover; background-repeat: no-repeat; }
.pj-hero .wrap { position: relative; }
.pj-hero h1 { font-size: clamp(34px, 5vw, 66px); margin-bottom: 14px; max-width: 18ch; }
.pj-client { margin-bottom: 12px; color: var(--ink-2); }
.pj-client a { color: var(--ink); font-weight: 700; }
.pj-note { display: inline-block; font-size: 14px; color: var(--ink-2); background: rgba(10, 10, 11, .7); border: 1px solid var(--line); border-inline-start: 3px solid var(--muted); padding: 8px 14px; border-radius: 4px; max-width: 70ch; }
.pj-note.amber { border-inline-start-color: var(--amber); color: #ffe2b8; }
.pj-body { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 64px; padding-top: 56px; padding-bottom: 96px; }
.pj-block h2 { font-size: 15px; font-weight: 700; color: var(--red); margin-bottom: 14px; }
.pj-block > p { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.8; color: var(--ink); }
.pj-wide { grid-column: 1 / -1; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 26px; font-size: 17px; }
.ticks li::before { content: ""; position: absolute; right: 0; top: .7em; width: 12px; height: 2px; background: var(--red); }
.bts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.bts figure, .final { margin: 0; }
.bts img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.final img, .final video { width: 100%; max-height: 80vh; object-fit: contain; background: #000; border-radius: var(--radius); }
.pj-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 34px 36px; border-radius: var(--radius); background: linear-gradient(120deg, rgba(230, 0, 32, .16), rgba(230, 0, 32, .02)), var(--bg-2); border: 1px solid rgba(230, 0, 32, .4); }
.pj-cta h2 { font-size: 26px; margin-bottom: 4px; }
.pj-cta p { color: var(--ink-2); }
.pj-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); }
.pj-nav .back { margin: 0; }

/* ---------- client page (light) ---------- */
body.on-light { --paper: #f6f2eb; --paper-2: #ece6dc; --pink: #17161a; --p-muted: #6b665f; --p-line: rgba(23, 22, 26, .12); background: var(--paper); }
body.on-light .page { background: var(--paper); color: var(--pink); }
.cl-page { padding-top: 40px; padding-bottom: 88px; }
.cl-page .back { color: var(--p-muted); }
.cl-page .back:hover { color: var(--pink); }
.cl-head { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; margin-bottom: 26px; }
.cl-head-logo { width: 168px; height: 168px; border-radius: 36px; object-fit: cover; background: #fff; box-shadow: 0 24px 48px -26px rgba(23, 22, 26, .55), 0 0 0 1px var(--p-line); }
.cl-cat { font-size: 14px; font-weight: 600; color: var(--red); margin-bottom: 6px; }
.cl-head h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.1; }
.cl-en { color: var(--p-muted); font-size: 15px; font-weight: 500; text-align: right; margin-top: 4px; }
.cl-facts { list-style: none; display: flex; gap: 32px; flex-wrap: wrap; margin: 18px 0 20px; padding: 0; }
.cl-facts li { display: flex; flex-direction: column; line-height: 1.3; }
.cl-facts b { font-size: 26px; font-weight: 800; }
.cl-facts span { font-size: 13px; color: var(--p-muted); }
.cl-gap { height: 18px; }
.cl-feature-p { color: var(--p-muted); font-size: 17px; margin-bottom: 26px; }
.cl-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cl-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 99px; border: 1px solid var(--p-line); background: #fff; color: var(--pink); text-decoration: none; font-weight: 600; font-size: 14px; transition: border-color .2s, transform .2s; }
.cl-btn:hover { border-color: var(--pink); }
.cl-note { font-size: 13px; color: #7a5a1f; background: #fbf0dc; border: 1px solid #efd9ad; padding: 8px 14px; border-radius: 8px; max-width: 76ch; margin-bottom: 40px; }
.cl-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-bottom: 56px; margin-bottom: 48px; border-bottom: 1px solid var(--p-line); }
.cl-feature .cl-item-lg { justify-self: center; width: min(100%, 560px, calc(72vh * var(--ar, .8))); }
.cl-kicker { display: inline-block; font-size: 13px; font-weight: 700; color: #fff; background: var(--red); padding: 4px 12px; border-radius: 99px; margin-bottom: 14px; }
.cl-feature h2 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 18px; }
.cl-stats { list-style: none; display: flex; gap: 36px; padding: 0; margin: 0 0 28px; }
.cl-stats li { display: flex; flex-direction: column; line-height: 1.2; }
.cl-stats b { font-size: clamp(34px, 4vw, 52px); font-weight: 800; }
.cl-stats span { color: var(--p-muted); font-size: 14px; }
.cl-sub { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 22px; }
.cl-grid { columns: 3 260px; column-gap: 20px; }
.cl-item { display: block; width: 100%; padding: 0; margin: 0 0 22px; border: 0; background: none; color: inherit; text-align: right; cursor: zoom-in; break-inside: avoid; }
.cl-item.is-video { cursor: pointer; }
.cl-media { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 14px; background: var(--paper-2); box-shadow: 0 18px 36px -24px rgba(23, 22, 26, .6); }
.cl-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.cl-item:hover .cl-media img, .cl-item:focus-visible .cl-media img { transform: scale(1.035); }
.cl-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--pink); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .25s, background-color .25s; }
.cl-play svg { width: 26px; height: 26px; fill: currentColor; margin-left: 4px; }
.cl-item:hover .cl-play { transform: scale(1.08); background: var(--red); color: #fff; }
.cl-kind { position: absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .9); color: var(--pink); }
.cl-cap { display: flex; gap: 6px; align-items: baseline; font-size: 13px; color: var(--p-muted); margin-top: 10px; }
.cl-cap b { color: var(--pink); font-size: 15px; }
.cl-cap i { font-style: normal; opacity: .5; }
.cl-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 40px; padding: 32px 36px; border-radius: 18px; background: var(--pink); color: var(--ink); }
.cl-cta h2 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 4px; }
.cl-cta p { color: var(--ink-2); }
.cl-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; }
.cl-nav-a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--pink); font-weight: 700; font-size: 17px; }
.cl-nav-a small { display: block; font-size: 12px; font-weight: 500; color: var(--p-muted); }
.cl-nav-a .ico { color: var(--red); width: 22px; height: 22px; }
.cl-nav-a:last-child { text-align: left; }

/* viewer */
html.vw-open { overflow: hidden; }
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 12, 13, .96); color: var(--ink); display: none; flex-direction: column; }
.viewer[open] { display: flex; }
.viewer::backdrop { background: rgba(0, 0, 0, .6); }
.vw-stage { position: relative; flex: 1; min-height: 0; padding: 24px 24px 8px; }
.vw-stage img, .vw-stage video { position: absolute; inset: 24px 24px 8px; width: calc(100% - 48px); height: calc(100% - 32px); object-fit: contain; }
.vw-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 24px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.vw-info { display: flex; gap: 6px 18px; align-items: baseline; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.vw-info b { color: var(--ink); font-size: 16px; }
.vw-info a { color: var(--ink); font-weight: 600; }
.vw-btns { display: flex; align-items: center; gap: 10px; }
.vw-count { min-width: 56px; text-align: center; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.vw-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(244, 239, 232, .25); background: rgba(255, 255, 255, .04); cursor: pointer; font-size: 17px; }
.vw-btn:hover { background: rgba(255, 255, 255, .12); }
.vw-btn .ico { width: 20px; height: 20px; }
.vw-x { margin-inline-start: 8px; background: var(--red); border-color: var(--red); color: #fff; }

.portal { padding-top: 72px; padding-bottom: 120px; display: grid; place-items: center; }
.portal-card { width: min(560px, 100%); padding: 40px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.portal-card h1 { font-size: 34px; }
.portal-badge { font-size: 12px; font-weight: 700; color: #ffd59a; border: 1px solid rgba(231, 165, 74, .5); padding: 2px 10px; border-radius: 99px; }
.portal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- demo ---------- */
.demo { padding-top: 40px; padding-bottom: 96px; }
.demo-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.demo-top h1 { font-size: clamp(30px, 4vw, 50px); margin-bottom: 10px; }
.demo-top .back { margin-bottom: 14px; }
.demo-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #ffd59a; padding: 5px 12px; border-radius: 99px; border: 1px solid rgba(231, 165, 74, .45); background: rgba(231, 165, 74, .08); }
.demo-badge b { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.pipe { list-style: none; display: flex; align-items: flex-start; margin: 0 0 28px; padding: 18px 20px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.pipe-node { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; width: 76px; text-align: center; }
.pipe-dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; background: #0f0f11; border: 2px solid rgba(244, 239, 232, .18); color: var(--muted); transition: all .3s; }
.pipe-label { font-size: 13px; color: var(--muted); font-weight: 600; line-height: 1.3; }
.pipe-node.done .pipe-dot { background: rgba(230, 0, 32, .14); border-color: rgba(230, 0, 32, .6); color: var(--ink); }
.pipe-node.now .pipe-dot { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 0 5px rgba(230, 0, 32, .18); }
.pipe-node.now .pipe-label, .pipe-node.done .pipe-label { color: var(--ink); }
.pipe-link { position: relative; flex: 1; min-width: 18px; height: 2px; margin-top: 19px; background: rgba(244, 239, 232, .14); }
.pipe-link.done { background: rgba(230, 0, 32, .55); }
.pulse { position: absolute; top: 50%; right: 0; width: 12px; height: 12px; margin: -6px -6px 0 0; border-radius: 50%; background: #ff2a3d; box-shadow: 0 0 12px 3px rgba(255, 42, 61, .7); opacity: 0; }
.pipe-link.pulsing .pulse { animation: pulse-run .9s cubic-bezier(.45, 0, .25, 1) 1 forwards; }
@keyframes pulse-run { 0% { right: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { right: 100%; opacity: 0; } }
.demo-grid { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.demo-panel { min-height: 520px; padding: 28px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); outline: none; }
.demo-side { padding: 22px; background: #0c0c0e; border: 1px solid var(--line); border-radius: var(--radius); position: sticky; top: calc(var(--hdr) + 16px); }
.demo-brain { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.demo-brain .head-svg { width: 190px; }
.demo-brain p { font-size: 14px; color: var(--ink-2); font-weight: 600; min-height: 1.7em; }
.side-title { font-size: 15px; color: var(--ink-2); margin-bottom: 10px; }
.demo-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13px; }
.demo-log li { display: grid; grid-template-columns: auto 1fr; gap: 10px; color: var(--ink-2); }
.demo-log time { color: var(--muted); direction: ltr; font-variant-numeric: tabular-nums; }
.scr { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.scr-k { font-size: 14px; font-weight: 700; color: var(--red); }
.igpost { width: min(400px, 100%); background: #0b0b0c; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ig-head { display: flex; gap: 10px; align-items: center; padding: 12px 14px; }
.ig-head b { display: block; font-size: 14px; }
.ig-head small { color: var(--muted); font-size: 12px; }
.ig-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 800; }
.igpost img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ig-cap { padding: 12px 14px 4px; font-size: 14px; }
.ig-cap p { color: var(--ink-2); }
.ig-cta { margin: 12px 14px 16px; }
.src-chip { font-size: 13px; color: var(--ink-2); padding: 5px 12px; border-radius: 99px; background: rgba(230, 0, 32, .1); border: 1px solid rgba(230, 0, 32, .35); }
.menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.menu-item { display: flex; flex-direction: column; gap: 6px; padding: 10px; text-align: right; background: #0f0f11; border: 2px solid rgba(244, 239, 232, .1); border-radius: 8px; cursor: pointer; transition: border-color .2s; }
.menu-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 5px; }
.menu-item.on { border-color: var(--red); box-shadow: 0 0 0 3px rgba(230, 0, 32, .18); }
.mi-name { font-weight: 700; font-size: 14px; line-height: 1.4; }
.mi-price { color: var(--ink-2); font-size: 14px; }
.qty-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; width: 100%; }
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(244, 239, 232, .2); border-radius: 6px; overflow: hidden; }
.qty button { width: 44px; height: 44px; border: 0; background: #0f0f11; font-size: 22px; cursor: pointer; }
.qty button:hover:not([disabled]) { background: var(--bg-3); }
.qty button[disabled] { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 48px; text-align: center; font-weight: 800; font-size: 18px; }
.sum { margin-inline-start: auto; font-size: 16px; }
.sum b { font-size: 20px; }
.receipt, .pos { width: 100%; max-width: 560px; background: #0f0f11; border: 1px solid var(--line); border-radius: 8px; padding: 6px 18px; }
.li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed rgba(244, 239, 232, .1); }
.li:last-child { border-bottom: 0; }
.li.muted { font-size: 14px; }
.li.total { font-size: 18px; }
.row-btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pos { border-color: rgba(244, 239, 232, .16); }
.pos-head { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.otag { font-weight: 800; font-family: ui-monospace, Consolas, monospace; font-size: 15px; padding: 2px 8px; background: rgba(255, 255, 255, .06); border-radius: 4px; }
.st { margin-inline-start: auto; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.st.new { background: rgba(231, 165, 74, .14); color: #ffd59a; }
.st.ok { background: rgba(63, 191, 127, .14); color: #9ee6be; }
.ticket { width: min(380px, 100%); background: #f3eee6; color: #19181a; border-radius: 4px; padding: 18px 20px 22px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .8);
  -webkit-mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 0 / 18px 100% repeat-x; mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 0 / 18px 100% repeat-x; }
.tk-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px dashed #19181a; padding-bottom: 10px; margin-bottom: 12px; font-size: 18px; }
.ticket .otag { background: #19181a; color: #f3eee6; }
.tk-item { display: flex; gap: 12px; font-size: 22px; font-weight: 800; }
.tk-q { color: var(--red); }
.tk-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 13px; color: #4b4845; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.kpi { padding: 16px 18px; background: #0f0f11; border: 1px solid var(--line); border-radius: 8px; }
.kpi small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.kpi b { font-size: 18px; line-height: 1.4; }
.kpi-main { background: rgba(230, 0, 32, .1); border-color: rgba(230, 0, 32, .45); }
.kpi-main b { font-size: 30px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-list { gap: 22px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards .card:last-child { grid-column: 1 / -1; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-side { position: static; }
}
@media (max-width: 860px) {
  .nav-list { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 760px) {
  :root { --hdr: 60px; }
  .wrap, .hdr-inner { padding-inline: 16px; }
  .logo { height: 34px; }
  .section { padding: 72px 0; }
  .eyebrow { font-size: 13px; margin-bottom: 8px; }
  .cards { grid-template-columns: 1fr; }
  .card-link { height: 300px; }
  .card-go { opacity: 1; transform: none; width: 38px; height: 38px; }
  .clients-sec { padding-top: 8px; }
  .marquee { gap: 12px; }
  .mq-track { gap: 12px; padding-right: 12px; }
  .cl-tile { width: 122px; padding: 10px 8px 12px; gap: 8px; }
  .cl-tile-logo { width: 84px; height: 84px; border-radius: 20px; }
  .cl-tile-name { font-size: 13px; }
  .cl-tile-cat { font-size: 11px; }
  .cl-page { padding-top: 24px; padding-bottom: 64px; }
  .cl-head { grid-template-columns: 1fr; gap: 18px; justify-items: start; }
  .cl-head-logo { width: 104px; height: 104px; border-radius: 26px; }
  .cl-facts { gap: 24px; margin: 14px 0 16px; }
  .cl-facts b { font-size: 22px; }
  .cl-note { margin-bottom: 28px; }
  .cl-feature { grid-template-columns: 1fr; gap: 22px; padding-bottom: 36px; margin-bottom: 32px; }
  .cl-feature .cl-item-lg { width: min(100%, calc(70vh * var(--ar, .8))); }
  .cl-stats { margin-bottom: 20px; }
  .cl-grid { columns: 2; column-gap: 12px; }
  .cl-item { margin-bottom: 16px; }
  .cl-media { border-radius: 10px; }
  .cl-play { width: 48px; height: 48px; }
  .cl-play svg { width: 20px; height: 20px; }
  .cl-kind { top: 8px; right: 8px; font-size: 11px; padding: 2px 8px; }
  .cl-cap { font-size: 12px; flex-wrap: wrap; }
  .cl-cta { padding: 24px 20px; }
  .cl-nav-a { font-size: 15px; }
  .vw-stage img, .vw-stage video { inset: 10px 8px 4px; width: calc(100% - 16px); height: calc(100% - 14px); }
  .vw-bar { padding: 10px 12px 14px; }
  .vw-info { font-size: 13px; gap: 2px 12px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-copy { position: static; }
  .form { padding: 20px 16px; }
  .row2 { grid-template-columns: 112px 1fr; }
  .pj-body { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; }
  .pj-hero { min-height: 52vh; }
  .bts { grid-template-columns: 1fr; }
  .pj-cta { padding: 24px 20px; }
  .demo-panel { padding: 18px 14px; min-height: 0; }
  .pipe { padding: 14px 10px; }
  .pipe-node { width: 54px; }
  .pipe-dot { width: 32px; height: 32px; font-size: 13px; }
  .pipe-label { font-size: 11px; }
  .pipe-link { min-width: 6px; margin-top: 16px; }
  .menu { gap: 8px; }
  .menu-item { padding: 6px; }
  .mi-name, .mi-price { font-size: 12px; }
  .sum { margin-inline-start: 0; width: 100%; }
  .kpi-main b { font-size: 24px; }
  .portal-card { padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  /* client logos: a still, wrapped grid instead of the drifting rows */
  .mq-row { flex-wrap: wrap; justify-content: center; -webkit-mask: none; mask: none; overflow: visible; cursor: auto; }
  .mq-track { animation: none !important; flex-wrap: wrap; justify-content: center; padding: 0; }
  .mq-dup, .mq-toggle { display: none; }
}

/* =====================================================================
   home scenes: logo intro · hero (social + software) · Automation Brain · footer
   ===================================================================== */

/* ---------- logo intro: camera lens — the aperture closes over the mark, then opens onto the site (~1.2 s) ---------- */
.intro { display: none; }
html.logo-intro .intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; --m: min(190px, 42vw); }
html.logo-intro body { overflow: hidden; }
html.logo-intro .intro::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(55% 55% at 50% 50%, #22090c, #09090a 70%);
  animation: intro-cut .01s linear .66s forwards;
}
.intro-mark { position: relative; z-index: 1; width: var(--m); aspect-ratio: 1; animation: intro-pop .4s cubic-bezier(.2, 1.3, .4, 1) both, intro-cut .01s linear .66s forwards; }
.intro-mark img { width: 100%; height: 100%; filter: drop-shadow(0 0 22px rgba(230, 0, 32, .55)); animation: intro-spin .66s cubic-bezier(.5, 0, .7, 1) both; }
.intro-iris { position: absolute; z-index: 2; left: 50%; top: 50%; width: var(--m); height: var(--m); translate: -50% -50%; overflow: visible; pointer-events: none; }
.iris-shade { fill: #0b0b0d; }
.iris-g { animation: iris-run 1.2s linear forwards; }
.iris-lines line { stroke: rgba(244, 239, 232, .24); stroke-width: 1.2px; vector-effect: non-scaling-stroke; }
.iris-edge { stroke: var(--red); stroke-width: 2px; vector-effect: non-scaling-stroke; opacity: .9; }
@keyframes iris-run {
  0% { transform: rotate(-30deg) scale(1.9); animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  28% { transform: rotate(0deg) scale(1); animation-timing-function: cubic-bezier(.6, 0, .9, .5); }
  55% { transform: rotate(60deg) scale(0); }
  60% { transform: rotate(60deg) scale(0); animation-timing-function: cubic-bezier(.5, 0, .2, 1); }
  100% { transform: rotate(170deg) scale(18); }
}
@keyframes intro-pop { from { opacity: 0; transform: scale(.55); } }
@keyframes intro-spin { 0%, 40% { rotate: 0deg; scale: 1; } 100% { rotate: -50deg; scale: .82; } }
@keyframes intro-cut { to { opacity: 0; visibility: hidden; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--hdr) + 40px) 0 72px; min-height: min(100svh, 980px); display: flex; align-items: center;
  background:
    radial-gradient(48% 60% at 22% 46%, rgba(230, 0, 32, .20), rgba(230, 0, 32, 0) 70%),
    radial-gradient(40% 50% at 90% 10%, rgba(230, 0, 32, .10), rgba(230, 0, 32, 0) 70%),
    #0c0c0e; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(244, 239, 232, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 239, 232, .045) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask: radial-gradient(70% 70% at 30% 50%, #000, transparent 75%); mask: radial-gradient(70% 70% at 30% 50%, #000, transparent 75%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: 40px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.hero .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); }
.hero-title { font-size: clamp(32px, 3.25vw, 56px); line-height: 1.22; font-weight: 800; margin-bottom: 22px; }
.hero-title span { display: block; white-space: nowrap; }
.hero-title em { font-style: normal; color: var(--red); }
.hero-title .ht-b { font-style: normal; white-space: nowrap; }
.hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-svc { display: grid; gap: 10px; margin: 0; max-width: 560px; }

.hero-visual { position: relative; width: 100%; max-width: 640px; aspect-ratio: 1 / .96; justify-self: center; }
/* code window */
.hv-code { position: absolute; left: 0; top: 5%; width: 63%; direction: ltr; border-radius: 12px; overflow: hidden; background: #101014; text-align: left;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 70px -30px rgba(0, 0, 0, .95), 0 0 60px -20px rgba(230, 0, 32, .35);
  transform: perspective(1200px) rotateY(12deg) rotateX(2deg); transform-origin: 0 50%; }
.hv-code-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #18181d; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.hv-code-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a40; }
.hv-code-bar i:first-child { background: #ff5f57; }
.hv-code-bar i:nth-child(2) { background: #febc2e; }
.hv-code-bar i:nth-child(3) { background: #28c840; }
.hv-code-bar span { margin-inline-start: 8px; font: 500 11px/1 ui-monospace, Consolas, monospace; color: rgba(255, 255, 255, .55); }
.hv-code-body { margin: 0; padding: 14px 14px 18px; min-height: 13.4em; font: 500 clamp(9px, .76vw, 11.5px)/1.9 ui-monospace, 'Cascadia Code', Consolas, monospace; color: #d7d3cc; white-space: pre; overflow: hidden; }
.hv-code-body .cl { display: block; }
.hv-code-body .ln { display: inline-block; width: 2.2em; color: rgba(255, 255, 255, .22); user-select: none; }
.t-k { color: #ff6b81; }
.t-f { color: #7cc7ff; }
.t-s { color: #a8e6a1; }
.t-c { color: #7d7a74; font-style: italic; }
.t-p { color: #e9e4dc; }
.caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: var(--red); margin-inline-start: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
/* order pipeline card */
.hv-flow { position: absolute; left: 0; bottom: 9%; width: 56%; padding: 12px 14px; border-radius: 12px; background: rgba(20, 20, 24, .88); backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 50px -26px rgba(0, 0, 0, .9); }
.hv-flow-t { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.hv-flow ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.hv-flow li { position: relative; flex: 1; text-align: center; font-size: 11.5px; font-weight: 600; padding: 6px 2px; border-radius: 7px; color: var(--muted); background: rgba(255, 255, 255, .04); transition: background-color .35s, color .35s, box-shadow .35s; }
.hv-flow li.on { color: #fff; background: rgba(230, 0, 32, .22); box-shadow: inset 0 0 0 1px rgba(255, 59, 65, .55); }
/* phone */
.hv-phone { position: absolute; right: 1%; top: 2%; width: 37%; aspect-ratio: 9 / 18.5; border-radius: 34px; padding: 9px; z-index: 3;
  background: linear-gradient(150deg, #2e2e33, #0d0d0f 60%, #1d1d21);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 50px 80px -30px rgba(0, 0, 0, .95), -20px 0 60px -30px rgba(230, 0, 32, .4);
  transform: rotate(4deg); }
.hv-notch { position: absolute; top: 15px; left: 50%; width: 30%; height: 14px; margin-left: -15%; border-radius: 10px; background: #050506; z-index: 2; }
.hv-screen { position: relative; height: 100%; border-radius: 26px; overflow: hidden; background: #fff; }
.hv-hearts { position: absolute; right: -6%; bottom: 16%; width: 30%; height: 60%; pointer-events: none; }
.hv-hearts i { position: absolute; bottom: 0; right: 30%; width: 22px; height: 22px; opacity: 0; background: #ff3040;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.7-7.5-10.6A4.3 4.3 0 0 1 12 7.6a4.3 4.3 0 0 1 7.5 2.8C19.5 16.3 12 21 12 21Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.7-7.5-10.6A4.3 4.3 0 0 1 12 7.6a4.3 4.3 0 0 1 7.5 2.8C19.5 16.3 12 21 12 21Z'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: heart-up 4.2s ease-out infinite; }
.hv-hearts i:nth-child(2) { right: 55%; width: 16px; height: 16px; animation-delay: .8s; background: #ff6b81; }
.hv-hearts i:nth-child(3) { right: 10%; width: 18px; height: 18px; animation-delay: 1.7s; }
.hv-hearts i:nth-child(4) { right: 42%; width: 26px; height: 26px; animation-delay: 2.5s; background: var(--red); }
.hv-hearts i:nth-child(5) { right: 70%; width: 14px; height: 14px; animation-delay: 3.3s; background: #ff8fa3; }
@keyframes heart-up { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-260%) translateX(-30%) scale(1.15); } }
/* notification toast */
.hv-toast { position: absolute; left: 3%; top: 55%; z-index: 4; }
.hv-toast-in { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 16px; border-radius: 14px; font-size: 13px; font-weight: 600; white-space: nowrap;
  background: rgba(24, 24, 28, .92); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 40px -18px rgba(0, 0, 0, .9);
  animation: toast-in .5s cubic-bezier(.16, 1, .3, 1) both; }
.hv-toast-in svg { width: 28px; height: 28px; flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
/* floating platform marks */
.hv-float { position: absolute; z-index: 5; width: clamp(34px, 3.6vw, 50px); filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .6)); animation: bob 5s ease-in-out infinite; }
.hv-float svg { width: 100%; height: auto; }
.hv-float.f1 { right: 34%; top: 0; }
.hv-float.f2 { right: -2%; top: 30%; animation-delay: -1.2s; }
.hv-float.f3 { right: 35%; top: 44%; animation-delay: -2.4s; width: clamp(30px, 3vw, 42px); }
.hv-float.f4 { right: 0; bottom: 14%; animation-delay: -3.4s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
.hero-visual[data-anim='off'] *, .hero-visual[data-vis='hidden'] * { animation-play-state: paused !important; }

/* ---------- AI hub + Automation Brain (port of the app's brain dashboard) ---------- */
.hub { position: relative; padding: 104px 0 96px; overflow: hidden; background: radial-gradient(60% 50% at 50% 30%, rgba(230, 0, 32, .12), rgba(230, 0, 32, 0) 70%), #0b0b0d; border-block: 1px solid var(--line); }
.hub-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 24px 56px; margin-bottom: 34px; }
.hub-title { font-size: clamp(38px, 4.6vw, 68px); font-weight: 800; letter-spacing: -.01em; display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.hub-pre { font-size: .42em; font-weight: 600; margin-bottom: .18em; }
.hub-main { font-size: 1.35em; white-space: nowrap; }
.hub-title .red { color: var(--red); }
.hub-side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 560px; }
.hub-desc { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); }
.hub-note { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

.mm-brain2 {
  --mm-red: #e31e24; --mm-red-hot: #ff3b41; --mm-warn: #fbbf24; --mm-sim: #7dd3fc;
  position: relative; isolation: isolate; container: mm-brain / inline-size; overflow: hidden; border-radius: 28px; border: 1px solid rgba(255, 255, 255, .1); color: #fff;
  background-image: radial-gradient(60% 55% at 50% 42%, rgba(227, 30, 36, .2), transparent 70%), radial-gradient(900px 520px at 100% -10%, rgba(227, 30, 36, .16), transparent 62%),
    radial-gradient(700px 480px at -10% 110%, rgba(155, 16, 22, .24), transparent 60%), linear-gradient(180deg, #121214 0%, #070708 100%);
  box-shadow: 0 40px 90px -45px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.bs-head { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 20px 24px 4px; }
.bs-title h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 800; }
.bs-title p { font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.bs-tools { margin-inline-start: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bs-demo { font-size: 11.5px; color: var(--mm-sim); padding: .35rem .75rem; border-radius: 999px; background: rgba(125, 211, 252, .1); }
.mm-wave { display: inline-flex; align-items: center; gap: 3px; height: 28px; }
.mm-wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--mm-red-hot); transform: scaleY(.35); }
.mm-wave i:nth-child(2) { transform: scaleY(.7); --d: 1; }
.mm-wave i:nth-child(3) { transform: scaleY(1); --d: 2; }
.mm-wave i:nth-child(4) { transform: scaleY(.6); --d: 3; }
.mm-wave i:nth-child(5) { transform: scaleY(.3); --d: 4; }
.mm-brain2[data-live] .mm-wave i { animation: mm-wave 1.6s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -.25s); }
.mm-engine-pill { display: inline-flex; align-items: center; gap: .45rem; border-radius: 999px; padding: .35rem .75rem; font-size: 11.5px; font-weight: 600; color: #fff;
  background: rgba(227, 30, 36, .16); box-shadow: inset 0 0 0 1px rgba(255, 59, 65, .55), 0 0 22px rgba(227, 30, 36, .25); }
.mm-engine-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--mm-red-hot); box-shadow: 0 0 8px var(--mm-red-hot); }
.mm-chip { display: inline-flex; align-items: center; gap: .4rem; border: 0; border-radius: 999px; padding: .35rem .75rem; font-size: 11.5px; font-weight: 500; color: rgba(255, 255, 255, .85); cursor: pointer;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: background-color .18s, box-shadow .18s; }
.mm-chip:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); }

/* Icons on two arcs around the head; --k (-1..1) puts each one on its arc. */
.mm-orbit { --rx: 42%; --rx-b: 39%; --ry: 45%; --spread: 48deg; --node: clamp(38px, 5.2cqw, 66px); position: relative; aspect-ratio: 1 / 1.45; margin: 4px 8px 12px; }
.mm-orbit .mm-head-box { position: absolute; left: 50%; top: 50%; z-index: 1; width: 64%; height: auto; aspect-ratio: 600 / 640; transform: translate(-50%, -50%) scaleX(-1); }
.mm-arc { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.mm-node-li { position: absolute; width: var(--node); height: var(--node); translate: -50% -50%; pointer-events: auto;
  left: calc(50% + var(--rx) * cos(var(--a))); top: calc(50% + var(--ry) * sin(var(--a))); }
.mm-arc-channels .mm-node-li { --a: calc(var(--k) * var(--spread)); }
.mm-arc-business .mm-node-li { --a: calc(180deg - var(--k) * var(--spread)); --rx: var(--rx-b); }
/* English name + Arabic in brackets beside the left-hand icons (under them on narrow screens) */
.mm-node-label { position: absolute; top: calc(100% + 4px); left: -6px; display: block; width: max-content; max-width: 88px; text-align: left; line-height: 1.2; pointer-events: none; text-shadow: 0 1px 6px #000; }
.mm-node-label b { display: block; font-size: 11px; font-weight: 700; color: #fff; transition: color .4s; }
.mm-node-label small { display: block; font-size: 10px; color: rgba(255, 255, 255, .62); }
.mm-node-li:has(.mm-node[data-status='active']) .mm-node-label b { color: #ff5a5f; }
@container mm-brain (min-width: 640px) {
  .mm-orbit { aspect-ratio: 16 / 8.6; --rx: 41%; --rx-b: 33%; --ry: 41%; --spread: 52deg; --node: clamp(38px, 4.8cqw, 60px); margin: 0 16px 16px; }
  .mm-orbit .mm-head-box { width: auto; height: 86%; }
  .mm-node-label { top: 50%; left: auto; right: calc(100% + 14px); max-width: none; transform: translateY(-50%); text-align: right; white-space: nowrap; }
  .mm-node-label b { font-size: clamp(13px, 1.3cqw, 17px); }
  .mm-node-label small { font-size: clamp(11px, 1.05cqw, 13.5px); }
}
.mm-node { position: relative; display: block; width: 100%; height: 100%; border-radius: 27%; outline: none; color: #fff; background: #141417; cursor: default;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .65)); transition: transform .3s cubic-bezier(.16, 1, .3, 1), opacity .4s, filter .4s; }
.mm-node svg { display: block; width: 100%; height: 100%; }
.mm-node::after { content: ""; position: absolute; inset: -4px; border-radius: 31%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12); transition: box-shadow .4s; pointer-events: none; }
.mm-node-engine { background: linear-gradient(160deg, #ff3b41, #9b1016); }
.mm-node-soon { opacity: .42; filter: grayscale(.5) drop-shadow(0 10px 18px rgba(0, 0, 0, .65)); }
.mm-node-dot { position: absolute; top: -3px; inset-inline-end: -3px; width: 26%; max-width: 13px; aspect-ratio: 1; border-radius: 50%; border: 2px solid #0b0b0d; background: #34d399; transition: background-color .4s, box-shadow .4s; }
.mm-node-soon .mm-node-dot { background: rgba(255, 255, 255, .35); }
.mm-node[data-status='active'] { transform: scale(1.14); }
.mm-node[data-status='active']::after { box-shadow: 0 0 0 2px var(--mm-red-hot), 0 0 26px rgba(227, 30, 36, .75); }
.mm-node[data-status='active'] .mm-node-dot { background: var(--mm-red-hot); box-shadow: 0 0 10px var(--mm-red-hot); }
.mm-node[data-status='active']::before { content: ""; position: absolute; inset: -4px; border-radius: 31%; border: 2px solid var(--mm-red-hot); animation: mm-ping 1.3s ease-out infinite; pointer-events: none; }
.mm-node:hover, .mm-node:focus-visible { transform: scale(1.12); }
.mm-node:hover::after, .mm-node:focus-visible::after { box-shadow: 0 0 0 2px rgba(255, 90, 95, .9), 0 0 22px rgba(227, 30, 36, .55); }
.mm-port { position: absolute; left: 50%; top: 50%; width: 1px; height: 1px; pointer-events: none; }
.mm-gear-logo { filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)) drop-shadow(0 0 10px rgba(227, 30, 36, .35)); }

.mm-head { position: absolute; inset: 0; }
.mm-head-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; max-width: none; }
.mm-head-aura { position: absolute; inset: 4% 0 18% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(227, 30, 36, .42), rgba(227, 30, 36, .12) 55%, transparent 75%); opacity: .7; will-change: opacity, transform; animation: mm-breathe 6.5s ease-in-out infinite; }
.mm-head-core { position: absolute; left: 30%; top: 17%; width: 42%; height: 32%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 59, 65, .3), transparent 70%); mix-blend-mode: screen; opacity: .6; pointer-events: none; animation: mm-breathe 6.5s ease-in-out infinite; animation-delay: -1.2s; }
.mm-gear2 { position: absolute; overflow: visible; max-width: none; will-change: transform; animation: mm-gear-turn var(--mm-gear-period, 24s) linear infinite; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); }
.mm-gear2[data-dir='-1'] { animation-direction: reverse; }

.mm-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; max-width: none; }
.mm-wire path { fill: none; stroke-linecap: round; transition: stroke .6s, opacity .4s, stroke-width .3s; }
.mm-wire-under { stroke: transparent; stroke-width: 7; }
.mm-wire-line { stroke: rgba(255, 255, 255, .08); stroke-width: 1.3; stroke-dasharray: 2 6; }
.mm-wire-dot { fill: rgba(255, 255, 255, .2); transition: fill .6s; }
.mm-wire-pulse { stroke: #fff; stroke-width: 2.6; stroke-dasharray: 2.5 97.5; stroke-dashoffset: 0; opacity: 0; animation: mm-pulse-run 3.8s linear infinite; animation-play-state: paused; }
.mm-wire-pulse[data-reverse] { animation-direction: reverse; }
/* pulses run only on the wire that is working right now: moving dashes on every wire repainted the whole map each frame
   (measured 68 fps with all wires pulsing vs ~115 with the active wire only); idle wires stay lit red */
.mm-wire[data-tone='live'] .mm-wire-pulse { opacity: 1; animation-duration: 1.7s; animation-play-state: running; }
.mm-wire[data-tone='live'] .mm-wire-pulse[data-i='1'] { animation-delay: -.57s; }
.mm-wire[data-tone='live'] .mm-wire-pulse[data-i='2'] { animation-delay: -1.13s; }
.mm-wire[data-tone='live'] .mm-wire-under { stroke: rgba(227, 30, 36, .16); }
.mm-wire[data-tone='live'] .mm-wire-line { stroke: rgba(255, 59, 65, .85); stroke-dasharray: none; stroke-width: 1.6; }
.mm-wire[data-tone='live'] .mm-wire-dot { fill: var(--mm-red-hot); }
.mm-wire[data-tone='glow'] .mm-wire-under { stroke: rgba(227, 30, 36, .08); }
.mm-wire[data-tone='glow'] .mm-wire-line { stroke: rgba(227, 30, 36, .45); stroke-dasharray: none; }
.mm-wire[data-tone='glow'] .mm-wire-dot { fill: rgba(255, 90, 95, .7); }
.mm-wire[data-tone='dim'] .mm-wire-line { stroke: rgba(255, 255, 255, .16); stroke-dasharray: 3 6; }
.mm-wire { transition: opacity .26s; }
.mm-brain2[data-focus] .mm-wire:not([data-on]) { opacity: .25; }
.mm-brain2[data-focus] .mm-wire[data-on] .mm-wire-under { stroke: rgba(227, 30, 36, .28); stroke-width: 9; }
.mm-brain2[data-focus] .mm-wire[data-on] .mm-wire-line { stroke-width: 2.2; stroke-dasharray: none; }
.mm-brain2[data-focus] .mm-node[data-node]:not(:hover):not(:focus-visible) { opacity: .6; }

.mm-brain2[data-anim='off'] *, .mm-brain2[data-vis='hidden'] *, .mm-brain2[data-motion='paused'] * { animation-play-state: paused !important; }
@keyframes mm-gear-turn { to { transform: rotate(360deg); } }
@keyframes mm-breathe { 0%, 100% { opacity: .5; transform: scale(.97); } 50% { opacity: .95; transform: scale(1.03); } }
@keyframes mm-pulse-run { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
@keyframes mm-wave { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes mm-ping { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.45); } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #0a0a0b; padding: 56px 0 0; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1fr .95fr 1.3fr; gap: 32px; align-items: start; }
.foot-brand p { margin: 14px 0 18px; font-size: 14px; color: var(--muted); max-width: 30ch; }
.foot-social { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.foot-social a { display: block; width: 40px; height: 40px; border-radius: 12px; transition: transform .2s, filter .2s; }
.foot-social a:hover, .foot-social a:focus-visible { transform: translateY(-3px); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); }
.foot-social svg { width: 40px; height: 40px; }
.foot-col h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-list a { text-decoration: none; font-size: 15px; color: var(--ink-2); unicode-bidi: isolate; }
.foot-list a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.foot-col address { font-style: normal; font-size: 15px; line-height: 1.8; margin-bottom: 10px; }
.foot-maplink { font-size: 14px; }
.foot-map { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #151518; aspect-ratio: 16 / 10; }
.foot-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-block: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* ---------- home scenes: narrower screens ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { min-height: 0; padding-top: calc(var(--hdr) + 28px); }
  .hero-visual { max-width: 560px; }
  .hub-head { grid-template-columns: 1fr; align-items: start; }
  .hub-title { align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-map { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
}
@media (max-width: 760px) {
  .hero { padding-bottom: 56px; }
  .hero-title { font-size: clamp(30px, 8.6vw, 44px); margin-bottom: 16px; }
  .hero-title span { white-space: normal; }
  .hero-lead { margin-bottom: 22px; }
  .hero-ctas { margin-bottom: 24px; }
  .hero-svc div { flex-direction: column; gap: 2px; padding: 10px 12px; }
  .hero-svc dt, .hero-svc dd { font-size: 13px; }
  .hero-visual { aspect-ratio: 1 / 1.12; }
  .hv-code { width: 72%; top: 6%; transform: none; }
  .hv-code-body { font-size: 8.4px; min-height: 0; padding: 10px; }
  .hv-flow { width: 74%; bottom: 3%; left: 0; padding: 9px 10px; }
  .hv-flow li { font-size: 10px; padding: 5px 1px; }
  .hv-phone { width: 46%; right: 0; border-radius: 26px; padding: 6px; }
  .hv-screen { border-radius: 21px; }
  .hv-notch { top: 10px; height: 10px; }
  .hv-toast { left: 0; top: 58%; }
  .hv-toast-in { font-size: 11.5px; padding: 8px 10px; }
  .hv-toast-in svg { width: 22px; height: 22px; }
  .hub { padding: 72px 0; }
  .mm-brain2 { border-radius: 20px; }
  .bs-head { padding: 16px 14px 0; }
  .bs-tools { margin-inline-start: 0; }
  .site-footer { padding-top: 40px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .foot-map { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  html.logo-intro .intro { display: none; }
  html.logo-intro body { overflow: auto; }
  .hv-feed, .hv-float, .hv-hearts i, .caret, .mm-brain2 *, .mm-brain2 *::before { animation: none !important; }
  .hv-hearts, .mm-wire-pulse { display: none; }
}

/* ---------------- «من أعمالنا»: behind the scenes, animation, websites ---------------- */
.cards[data-n="2"] { grid-template-columns: 1.35fr 1fr; }
.cards[data-n="1"] { grid-template-columns: 1fr; }
button.card-link { width: 100%; border: 0; padding: 0; margin: 0; background: none; font: inherit; text-align: start; cursor: pointer; }
.card.wk-videos .card-link, .card.wk-sites .card-link { height: clamp(420px, 40vw, 560px); }
.card.wk-videos .card-media video { opacity: 1; }
.card.wk-videos .card-media img { opacity: 1; }
.card.wk-videos.playing .card-media img { opacity: 0; }
.wk-text { max-width: 34ch; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.wk-cta { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; background: var(--red); color: #fff; font-size: 14px; font-weight: 700; }
.wk-cta svg { width: 16px; height: 16px; }
.card.wk-videos .card-link:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.wk-dots { position: absolute; z-index: 3; top: 22px; right: 22px; display: flex; gap: 5px; }
.wk-dots i { width: 18px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); transition: background .3s, width .3s; }
.wk-dots i.on { width: 28px; background: #fff; }
/* websites: the live site as a phone screen, links underneath */
.card.wk-sites { display: flex; flex-direction: column; }
.card.wk-sites .card-link { flex: 1 0 auto; }
.card-media.wk-shot { overflow: hidden; background: radial-gradient(90% 70% at 20% 10%, #3a171b, #111012 70%); }
.card.wk-sites .card-link::after { background: linear-gradient(rgba(0, 0, 0, 0) 55%, rgba(8, 8, 9, .92)); }
@media (max-width: 1080px) { .cards[data-n="2"] { grid-template-columns: 1fr 1fr; } .cards[data-n="2"] .card:last-child { grid-column: auto; } }
@media (max-width: 760px) {
  .cards[data-n="2"] { grid-template-columns: 1fr; }
  .card.wk-videos .card-link { height: 520px; }
  .card.wk-sites .card-link { height: 420px; }
}
@media (prefers-reduced-motion: reduce) { .wk-dots i { transition: none; } }

/* websites card v2: a browser window and a phone showing one live site after another */
.card.wk-sites .card-link { height: clamp(420px, 40vw, 560px); }
.wk-desk { position: absolute; top: 30px; left: 6%; width: 78%; aspect-ratio: 1440 / 940; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); transform: rotate(-2deg); }
.wk-bar { position: absolute; z-index: 2; inset: 0 0 auto 0; height: 22px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: #ececec; direction: ltr; }
.wk-bar b { width: 8px; height: 8px; border-radius: 50%; background: #c9c9c9; }
.wk-bar b:first-child { background: #ff5f57; } .wk-bar b:nth-child(2) { background: #febc2e; } .wk-bar b:nth-child(3) { background: #28c840; }
.wk-bar em { margin-inline-start: 8px; padding: 2px 10px; border-radius: 6px; background: #fff; color: #555; font: 600 10px/1.4 system-ui, sans-serif; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-desk img, .wk-phone img { position: absolute; left: 0; width: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .6s; }
.wk-desk img { top: 22px; height: calc(100% - 22px); }
.wk-phone { position: absolute; top: 120px; left: 3%; width: min(27%, 150px); aspect-ratio: 390 / 800; border-radius: 20px; border: 5px solid #1d1c1f; overflow: hidden; background: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); transform: rotate(-5deg); }
.wk-phone img { top: 0; height: 100%; }
.wk-desk img.on, .wk-phone img.on { opacity: 1; }
.card.wk-sites .card-link:hover .wk-desk { transform: rotate(-1deg) translateY(-6px); }
.wk-desk, .wk-phone { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.card.wk-sites .card-body { left: 22px; }
.wk-now { display: flex; flex-direction: column; gap: 2px; min-height: 44px; }
.wk-now b { font-size: 17px; }
.wk-now span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 760px) {
  .card.wk-sites .card-link { height: 460px; }
  .wk-desk { width: 84%; top: 22px; }
  .wk-phone { top: 92px; width: 30%; }
}
@media (prefers-reduced-motion: reduce) { .wk-desk img, .wk-phone img, .wk-desk, .wk-phone { transition: none; } }

/* /sites page */
.st-page { padding: 120px 0 80px; }
.st-head { margin: 18px 0 34px; max-width: 640px; }
.st-head h1 { font-size: clamp(34px, 4vw, 56px); line-height: 1.15; margin: 4px 0 10px; }
.st-head p { color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.st-grid { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.st-item { border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.st-shot { position: relative; display: block; aspect-ratio: 16 / 10.5; background: radial-gradient(90% 80% at 30% 0%, #3a171b, #111012 75%); overflow: hidden; }
.st-desk { position: absolute; top: 7%; right: 6%; width: 76%; aspect-ratio: 1440 / 940; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 18px 44px rgba(0, 0, 0, .5); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.st-desk img { position: absolute; top: 22px; left: 0; width: 100%; height: calc(100% - 22px); object-fit: cover; object-position: top; }
.st-phone { position: absolute; bottom: -12%; left: 5%; width: 24%; aspect-ratio: 390 / 800; border-radius: 18px; border: 5px solid #1d1c1f; overflow: hidden; background: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.st-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.st-shot:hover .st-desk, .st-shot:focus-visible .st-desk { transform: translateY(-6px); }
.st-shot:hover .st-phone, .st-shot:focus-visible .st-phone { transform: translateY(-10px); }
.st-shot:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.st-copy { padding: 18px 22px 22px; }
.st-copy h2 { font-size: 24px; margin: 0 0 4px; }
.st-copy p { margin: 0; color: var(--ink-2); }
.st-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px !important; }
@media (max-width: 760px) { .st-page { padding-top: 96px; } .st-grid { grid-template-columns: 1fr; gap: 18px; } }
@media (prefers-reduced-motion: reduce) { .st-desk, .st-phone { transition: none; } }

.card.wk-sites .card-link:hover .card-media img { transform: none; }
.st-links .cl-btn { background: rgba(255, 255, 255, .06); color: var(--ink); border-color: rgba(255, 255, 255, .18); }
.st-links .cl-btn:hover { border-color: var(--red); }

/* AI video card: which client the playing clip is for */
.wk-who { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); backdrop-filter: blur(6px); font-size: 13px; font-weight: 700; }
.wk-who::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.cards[data-n="3"] .card.wk-videos .card-link, .cards[data-n="3"] .card.wk-sites .card-link { height: clamp(460px, 42vw, 600px); }
.cards[data-n="3"] .wk-text { font-size: 14px; }
@media (max-width: 1080px) { .cards[data-n="3"] { grid-template-columns: 1fr 1fr; } .cards[data-n="3"] .card:first-child { grid-column: 1 / -1; } .cards[data-n="3"] .card:last-child { grid-column: auto; } }
@media (max-width: 760px) { .cards[data-n="3"] { grid-template-columns: 1fr; } .cards[data-n="3"] .card:first-child { grid-column: auto; } }

/* ---------------- «خدماتنا»: two glass halves around the turning mark ---------------- */
.services { overflow: hidden; background: radial-gradient(45% 40% at 88% 28%, rgba(230, 0, 32, .11), transparent 70%), radial-gradient(45% 40% at 12% 82%, rgba(230, 0, 32, .09), transparent 70%); }
.svc-intro { color: var(--muted); max-width: 460px; font-size: 15px; }
.svc-split { --ease: cubic-bezier(.16, 1, .3, 1); display: grid; grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr); align-items: stretch; }
.svc-half { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 24px; padding: 34px 30px 30px; border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .015) 62%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 1px 0 rgba(255, 255, 255, .09), 0 34px 70px -44px rgba(0, 0, 0, .95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: opacity .9s var(--ease), transform .9s var(--ease); }
.svc-half:not(.in) { opacity: 0; transform: translateX(var(--from, 0)); }
.svc-social { --from: 36px; }
.svc-system { --from: -36px; }
.svc-glow { position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(227, 30, 36, .3), transparent); filter: blur(10px); animation: svc-drift 14s ease-in-out infinite alternate; pointer-events: none; }
.svc-social .svc-glow { top: -38%; right: -22%; }
.svc-system .svc-glow { bottom: -38%; left: -22%; animation-delay: -7s; }
.svc-half-head { display: grid; gap: 6px; }
.svc-no { font-size: 12.5px; font-weight: 700; letter-spacing: .24em; color: var(--red); text-align: right; }
.svc-half-head h3 { display: grid; gap: 4px; }
.svc-en { display: block; text-align: right; font-size: clamp(30px, 3vw, 44px); font-weight: 800; letter-spacing: -.015em; line-height: 1.1;
  background: linear-gradient(100deg, #fff 30%, #ffb0b3 60%, #fff 80%) 0 0 / 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.svc-half.in .svc-en { animation: svc-sheen 1.8s .35s var(--ease) both; }
.svc-ar { font-size: clamp(16px, 1.4vw, 19px); font-weight: 600; color: var(--ink-2); }
.svc-half-head p { font-size: 14px; color: var(--muted); }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.svc-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .065);
  transition: transform .4s var(--ease), background-color .4s, box-shadow .4s; }
.svc-half:not(.in) .svc-item { opacity: 0; }
.svc-half.in .svc-item { animation: svc-rise .75s var(--ease) backwards; animation-delay: calc(.25s + var(--i) * 55ms); }
.svc-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #ff5a5f; background: rgba(227, 30, 36, .12); box-shadow: inset 0 0 0 1px rgba(255, 59, 65, .32);
  transition: transform .4s var(--ease), background-color .4s, color .4s, box-shadow .4s; }
.svc-ic svg { width: 22px; height: 22px; }
.svc-tx { min-width: 0; }
.svc-tx b { display: block; text-align: right; font-size: 15.5px; font-weight: 700; line-height: 1.35; color: #fff; }
.svc-tx span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.55; color: var(--muted); transition: color .4s; }
@media (hover: hover) {
  .svc-item:hover { transform: translateY(-3px); background-color: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 90, 95, .45), 0 16px 30px -20px rgba(227, 30, 36, .65); }
  .svc-item:hover .svc-ic { transform: rotate(-8deg) scale(1.06); color: #fff; background: var(--red); box-shadow: 0 6px 18px -6px rgba(227, 30, 36, .8); }
  .svc-item:hover .svc-tx span { color: var(--ink-2); }
}
.svc-cta { align-self: flex-start; margin-top: auto; }

.svc-core { position: relative; display: flex; flex-direction: column; align-items: center; }
.svc-line { position: relative; flex: 1; width: 1px; overflow: hidden; background: linear-gradient(transparent, rgba(255, 59, 65, .5), transparent); }
.svc-line::after { content: ""; position: absolute; left: -1px; width: 3px; height: 70px; border-radius: 3px; background: linear-gradient(transparent, #ff3b41, transparent); animation: svc-flow 3.2s linear infinite; }
.svc-core-in + .svc-line::after { animation-delay: -1.6s; }
.svc-core-in { position: relative; display: grid; place-items: center; flex: none; width: 104px; aspect-ratio: 1; margin: 22px 0; transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.svc-core:not(.in) .svc-core-in { opacity: 0; transform: scale(.55) rotate(-40deg); }
.svc-core-in::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(227, 30, 36, .22), rgba(255, 255, 255, .03));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 0 40px -6px rgba(227, 30, 36, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.svc-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); animation: svc-spin 9s linear infinite reverse; }
.svc-ring i { position: absolute; top: -3.5px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #ff3b41; box-shadow: 0 0 10px #ff3b41; }
.svc-ring-2 { inset: -14px; border: 1px dashed rgba(255, 59, 65, .28); animation-duration: 18s; animation-direction: normal; }
.svc-ring-2 i { width: 5px; height: 5px; margin-left: -2.5px; top: -2.5px; background: #fff; box-shadow: 0 0 8px #fff; }
.svc-mark { position: relative; width: 58%; height: auto; animation: svc-spin 14s linear infinite; filter: drop-shadow(0 0 14px rgba(227, 30, 36, .6)); }

@keyframes svc-spin { to { transform: rotate(360deg); } }
@keyframes svc-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes svc-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes svc-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-8%, 10%) scale(1.12); } }
@keyframes svc-flow { from { top: -70px; } to { top: 100%; } }
@keyframes svc-flow-x { from { right: -70px; } to { right: 100%; } }

@media (max-width: 1180px) { .svc-list { grid-template-columns: minmax(0, 1fr); } .svc-split { grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr); } }
@media (max-width: 860px) {
  .svc-split { grid-template-columns: minmax(0, 1fr); }
  .svc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-core { flex-direction: row; height: 132px; }
  .svc-line { flex: 1; width: auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 59, 65, .5), transparent); }
  .svc-line::after { top: -1px; left: auto; width: 70px; height: 3px; background: linear-gradient(90deg, transparent, #ff3b41, transparent); animation-name: svc-flow-x; }
  .svc-core-in { margin: 0 26px; width: 92px; }
  .svc-social, .svc-system { --from: 0; }
  .svc-half:not(.in) { transform: translateY(28px); }
}
@media (max-width: 600px) {
  .svc-list { grid-template-columns: minmax(0, 1fr); }
  .svc-half { padding: 26px 16px 20px; border-radius: 20px; gap: 18px; }
  .svc-item { padding: 12px; }
  .svc-cta { align-self: stretch; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-half, .svc-half:not(.in), .svc-core:not(.in) .svc-core-in { opacity: 1; transform: none; transition: none; }
  .svc-half:not(.in) .svc-item { opacity: 1; }
  .svc-split *, .svc-split *::before, .svc-split *::after { animation: none !important; }
  .svc-en { background-position: 0 0; }
}
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status a { color: inherit; font-weight: 700; text-decoration: underline; }

/* ---------- footer contacts: clear tappable links ---------- */
.foot-list a.foot-ct {
  display: inline-flex; align-items: center; gap: 12px; padding-block: 6px; padding-inline: 6px 12px; margin-inline-start: -6px;
  border-radius: 12px; color: var(--ink); font-weight: 600; transition: background-color .2s, color .2s, transform .2s;
}
.foot-list a.foot-ct:hover, .foot-list a.foot-ct:focus-visible { background: rgba(230, 0, 32, .1); color: #fff; text-decoration: none; transform: translateX(-3px); }
.foot-ic {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px;
  background: rgba(230, 0, 32, .12); border: 1px solid rgba(230, 0, 32, .35); color: #ff5a5f; transition: background-color .2s, color .2s;
}
.foot-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.foot-ic-wa { background: rgba(37, 211, 102, .12); border-color: rgba(37, 211, 102, .4); color: #25d366; }
.foot-ct:hover .foot-ic { background: var(--red); color: #fff; }
.foot-ct:hover .foot-ic-wa { background: #25d366; }
.foot-ct [dir="ltr"] { white-space: nowrap; }
.foot-bottom { padding-inline-end: 72px; }
.foot-mail { color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(230, 0, 32, .6); text-underline-offset: 4px; transition: color .2s; }
.foot-mail:hover { color: #fff; text-decoration-color: var(--red); }

/* ---------- floating WhatsApp button ---------- */
.wa-float {
  position: fixed; z-index: 60; inset-inline-end: max(18px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff;
  animation: wa-in .6s cubic-bezier(.2, .9, .3, 1.3) .4s both;
}
html.logo-intro .wa-float { visibility: hidden; animation: none; }
.wa-btn {
  position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 30% 25%, #4ee38a, #25d366 55%, #1aa952);
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .65), 0 0 0 1px rgba(255, 255, 255, .15) inset;
  animation: wa-bob 4.5s ease-in-out infinite; transition: transform .25s;
}
.wa-btn svg { width: 31px; height: 31px; animation: wa-wiggle 4.5s ease-in-out infinite; }
.wa-btn::before, .wa-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(37, 211, 102, .7);
  animation: wa-ring 2.6s ease-out infinite; pointer-events: none;
}
.wa-btn::after { animation-delay: 1.3s; }
.wa-tip {
  order: -1; display: grid; gap: 1px; padding: 9px 14px; border-radius: 14px; white-space: nowrap;
  background: rgba(18, 18, 21, .82); border: 1px solid rgba(37, 211, 102, .35);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7);
  font-size: 13px; line-height: 1.4; opacity: 0; transform: translateX(12px) scale(.96); pointer-events: none;
  transition: opacity .3s, transform .35s cubic-bezier(.2, .9, .3, 1.2);
}
[dir="rtl"] .wa-tip { transform: translateX(-12px) scale(.96); }
.wa-tip b { font-weight: 700; }
.wa-tip span { color: #8ff0b5; font-size: 12px; font-weight: 600; }
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip, .wa-float.tip .wa-tip { opacity: 1; transform: none; }
.wa-float:hover .wa-btn { transform: scale(1.08); }
@keyframes wa-in { from { opacity: 0; transform: translateY(30px) scale(.6); } }
@keyframes wa-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes wa-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
@keyframes wa-wiggle { 0%, 80%, 100% { rotate: 0deg; } 84% { rotate: -14deg; } 88% { rotate: 12deg; } 92% { rotate: -8deg; } 96% { rotate: 4deg; } }
@media (max-width: 760px) {
  .wa-btn { width: 54px; height: 54px; }
  .wa-btn svg { width: 29px; height: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-btn, .wa-btn svg, .wa-btn::before, .wa-btn::after { animation: none !important; }
  .wa-btn::before, .wa-btn::after { display: none; }
}

/* ---------- site-wide moving background: faint drifting icons + two slow glows ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; color: var(--ink); }
.bg-ic { position: absolute; opacity: .065; animation: bgfx-drift var(--d) ease-in-out var(--dl) infinite alternate; will-change: transform; }
.bg-glow { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(40px); opacity: .5;
  background: radial-gradient(circle, rgba(230, 0, 32, .16), rgba(230, 0, 32, 0) 65%); animation: bgfx-glow 34s ease-in-out infinite alternate; }
.bg-glow.g1 { top: -12vmax; left: -14vmax; }
.bg-glow.g2 { bottom: -16vmax; right: -12vmax; animation-duration: 42s; animation-direction: alternate-reverse; }
@keyframes bgfx-drift { from { transform: translate3d(0, 0, 0) rotate(var(--r)); } to { transform: translate3d(18px, -46px, 0) rotate(calc(var(--r) * -1)); } }
@keyframes bgfx-glow { to { transform: translate3d(22vw, 18vh, 0) scale(1.15); } }
.contact { background: linear-gradient(rgba(16, 16, 18, 0), rgba(13, 13, 15, .85)); }

/* ---------- light scroll reveals ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease var(--rv, 0ms), transform .8s cubic-bezier(.2, .8, .2, 1) var(--rv, 0ms); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .bg-ic, .bg-glow { animation: none !important; }
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- hero v2: code that runs (live console) + behind-the-scenes viewfinder phone ---------- */
.hv-code-bar .hv-run { margin-inline-start: auto; font: 700 9.5px/1 ui-monospace, Consolas, monospace; letter-spacing: .06em; color: rgba(255, 255, 255, .4); padding: 4px 7px; border-radius: 5px; background: rgba(255, 255, 255, .05); }
.hv-code-bar .hv-run.on { color: #ff6b81; background: rgba(230, 0, 32, .14); animation: hv-live 1.6s ease-in-out infinite; }
@keyframes hv-live { 50% { opacity: .55; } }
.hv-code-body { min-height: 0; padding-bottom: 12px; }
.hv-code-body .cl { position: relative; transition: background-color .3s; border-radius: 4px; }
.hv-code-body .cl.run { background: linear-gradient(90deg, rgba(230, 0, 32, .22), rgba(230, 0, 32, .04)); box-shadow: inset 2px 0 0 var(--red); }
.hv-code-body .cl.run .ln { color: #ff6b81; }
.hv-term { border-top: 1px solid rgba(255, 255, 255, .07); background: #0b0b0e; padding: 8px 12px 10px; font: 500 clamp(8.5px, .7vw, 10.5px)/1.75 ui-monospace, 'Cascadia Code', Consolas, monospace; color: #bfbab2; }
.hv-term-h { display: flex; justify-content: space-between; gap: 8px; color: rgba(255, 255, 255, .38); margin-bottom: 4px; }
.hv-term-h b { font-weight: 700; }
.hv-term-h .busy { color: #febc2e; }
.hv-term-h .ok { color: #3fdc85; }
.hv-term-out { height: 7em; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.hv-term-out p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: term-in .35s ease both; }
.hv-term-out i { font-style: normal; color: #3fdc85; margin-inline-end: 6px; }
.hv-term-out i.o-in { color: #7cc7ff; }
.hv-term-out bdi { color: #f4efe8; margin-inline: 4px; font-family: var(--font); font-size: 1.05em; }
.hv-term-out u { text-decoration: none; color: rgba(255, 255, 255, .3); }
@keyframes term-in { from { opacity: 0; transform: translateY(6px); } }

.hv-screen.hv-bts { background: #050506; }
.bts-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .7s ease, transform 4.6s linear; background: #050506; }
.bts-v.on { opacity: 1; transform: scale(1); }
.bts-ui { position: absolute; inset: 0; pointer-events: none; color: #fff; font-family: ui-monospace, Consolas, monospace;
  background: linear-gradient(rgba(0, 0, 0, .45), transparent 22%, transparent 70%, rgba(0, 0, 0, .7)); }
.bts-bars { position: absolute; top: 30px; inset-inline: 10px; display: flex; gap: 3px; direction: ltr; }
.bts-bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.bts-bars b { display: block; height: 100%; width: 0; background: #fff; }
.bts-bars i.done b { width: 100%; }
.bts-bars i.now b { width: calc(var(--p, 0) * 100%); }
.bts-top { position: absolute; top: 40px; inset-inline: 12px; display: flex; justify-content: space-between; align-items: center; direction: ltr; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.bts-rec { display: inline-flex; align-items: center; gap: 5px; }
.bts-rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff2d3d; box-shadow: 0 0 8px #ff2d3d; animation: caret 1.2s steps(1) infinite; }
.bts-c { position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .85); }
.bts-c.c1 { top: 62px; left: 12px; border-width: 2px 0 0 2px; }
.bts-c.c2 { top: 62px; right: 12px; border-width: 2px 2px 0 0; }
.bts-c.c3 { bottom: 58px; left: 12px; border-width: 0 0 2px 2px; }
.bts-c.c4 { bottom: 58px; right: 12px; border-width: 0 2px 2px 0; }
.bts-focus { position: absolute; left: 50%; top: 46%; width: 34px; height: 34px; margin: -17px; border: 1.5px solid #ffd34d; border-radius: 3px; opacity: 0; animation: bts-focus 4.2s ease-in-out infinite; }
@keyframes bts-focus { 0%, 8% { opacity: 0; transform: scale(1.6); } 16% { opacity: 1; transform: scale(1); } 22% { transform: scale(1.08); } 28%, 60% { opacity: 1; transform: scale(1); } 72%, 100% { opacity: 0; } }
.bts-cap { position: absolute; bottom: 14px; inset-inline: 12px; display: grid; gap: 1px; font-family: var(--font); text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.bts-cap b { font-size: 12px; font-weight: 800; }
.bts-cap span { font: 600 9px/1.4 ui-monospace, Consolas, monospace; color: rgba(255, 255, 255, .75); }
.bts-cap em { font-style: normal; color: #ff6b81; }
.hv-toast { top: 66%; }
@media (max-width: 760px) {
  .hv-term { padding: 6px 8px 8px; font-size: 7.6px; }
  .hv-term-out { height: 5.3em; }
  .hv-code-bar .hv-run { font-size: 8px; }
  .bts-bars { top: 22px; inset-inline: 8px; }
  .bts-top { top: 30px; inset-inline: 9px; font-size: 7.5px; }
  .bts-c { width: 11px; height: 11px; }
  .bts-c.c1, .bts-c.c2 { top: 46px; }
  .bts-c.c3, .bts-c.c4 { bottom: 44px; }
  .bts-c.c1, .bts-c.c3 { left: 9px; }
  .bts-c.c2, .bts-c.c4 { right: 9px; }
  .bts-cap { bottom: 10px; inset-inline: 9px; }
  .bts-cap b { font-size: 10px; }
  .bts-cap span { font-size: 7.5px; }
  .hv-toast { top: 64%; }
  .hero-visual { aspect-ratio: 1 / 1.26; }
}
.hero-visual[data-anim="off"] .bts-focus, .hero-visual[data-vis="hidden"] .bts-focus { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .bts-focus, .bts-rec::before, .hv-code-bar .hv-run.on, .hv-term-out p { animation: none !important; }
  .bts-v { transition: none; transform: none; }
}

/* =====================================================================
   light theme (header toggle) — html[data-theme="light"]
   Photo cards, the Automation Brain band, project heroes and the demo stay dark ("dark islands").
   ===================================================================== */
html[data-theme="light"] {
  --bg: #f6f3ee; --bg-2: #ffffff; --bg-3: #efeae3;
  --ink: #16151a; --ink-2: #3c3934; --muted: #6d6861; --line: rgba(22, 21, 26, .11);
  color-scheme: light;
}
html[data-theme="light"] :is(.card, .hub, .pj-hero, .hero-visual, .wa-tip),
html[data-theme="light"] .page:has(.demo) {
  --bg: #101012; --bg-2: #161619; --bg-3: #1d1d21;
  --ink: #f4efe8; --ink-2: #d8d2ca; --muted: #a39e97; --line: rgba(244, 239, 232, .10);
  color-scheme: dark; color: var(--ink);
}
html[data-theme="light"] .page:has(.demo) { background: var(--bg); color: var(--ink); }
html[data-theme="light"] :focus-visible { outline-color: var(--ink); }

/* header */
html[data-theme="light"] .site-header { background: rgba(246, 243, 238, calc(var(--hdr-a) * .9)); border-bottom-color: rgba(22, 21, 26, calc(var(--hdr-a) * .08)); }
html[data-theme="light"] .site-header::before { background: linear-gradient(rgba(246, 243, 238, .7), rgba(246, 243, 238, 0)); }
html[data-theme="light"] .logo-word { filter: brightness(0) saturate(0); opacity: .92; }
html[data-theme="light"] .foot-brand .logo img { filter: invert(1) hue-rotate(180deg) saturate(1.4); }
html[data-theme="light"] .menu-btn { background: rgba(255, 255, 255, .7); }
html[data-theme="light"] .mobile-menu { background: #fbf9f6; box-shadow: 0 30px 60px rgba(22, 21, 26, .18); }
html[data-theme="light"] .btn-ghost { border-color: rgba(22, 21, 26, .28); }
html[data-theme="light"] .btn-ghost:hover { background: rgba(22, 21, 26, .05); }
html[data-theme="light"] .btn-red { box-shadow: 0 12px 28px -14px rgba(230, 0, 32, .55); }

/* hero */
html[data-theme="light"] .hero { background:
    radial-gradient(48% 60% at 22% 46%, rgba(230, 0, 32, .13), rgba(230, 0, 32, 0) 70%),
    radial-gradient(40% 50% at 90% 10%, rgba(230, 0, 32, .07), rgba(230, 0, 32, 0) 70%), #f6f3ee; }
html[data-theme="light"] .hero::before { background-image: linear-gradient(rgba(22, 21, 26, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 21, 26, .05) 1px, transparent 1px); }
html[data-theme="light"] .hv-flow, html[data-theme="light"] .hv-toast-in { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 40px -18px rgba(22, 21, 26, .5); }

/* clients */
html[data-theme="light"] .cl-tile { box-shadow: 0 10px 24px -20px rgba(22, 21, 26, .5); }
html[data-theme="light"] .cl-tile-logo { box-shadow: 0 10px 24px -14px rgba(22, 21, 26, .45), 0 0 0 1px var(--line); }
html[data-theme="light"] .mq-toggle:hover { border-color: rgba(22, 21, 26, .3); }

/* services: frosted white glass */
html[data-theme="light"] .svc-half { background: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .6) 62%);
  box-shadow: inset 0 0 0 1px rgba(22, 21, 26, .08), 0 34px 70px -44px rgba(22, 21, 26, .45); }
html[data-theme="light"] .svc-glow { background: radial-gradient(closest-side, rgba(227, 30, 36, .16), transparent); }
html[data-theme="light"] .svc-en { background-image: linear-gradient(100deg, #16151a 30%, #e60020 60%, #16151a 80%); }
html[data-theme="light"] .svc-item { background: rgba(246, 243, 238, .7); box-shadow: inset 0 0 0 1px rgba(22, 21, 26, .07); }
html[data-theme="light"] .svc-tx b { color: var(--ink); }
html[data-theme="light"] .svc-ic { color: #d1001d; background: rgba(230, 0, 32, .08); }
@media (hover: hover) {
  html[data-theme="light"] .svc-item:hover { background-color: #fff; }
}
html[data-theme="light"] .svc-core-in::before { background: radial-gradient(closest-side, rgba(227, 30, 36, .14), rgba(255, 255, 255, .7)); box-shadow: inset 0 0 0 1px rgba(22, 21, 26, .1), 0 0 40px -6px rgba(227, 30, 36, .4); }
html[data-theme="light"] .svc-ring { border-color: rgba(22, 21, 26, .14); }
html[data-theme="light"] .svc-ring-2 i { background: #16151a; box-shadow: none; }

/* contact form */
html[data-theme="light"] .contact { background: linear-gradient(rgba(246, 243, 238, 0), rgba(239, 234, 227, .9)); }
html[data-theme="light"] .form { box-shadow: 0 30px 60px -40px rgba(22, 21, 26, .35); }
html[data-theme="light"] .field input, html[data-theme="light"] .field select, html[data-theme="light"] .field textarea { background: #fbfaf8; border-color: rgba(22, 21, 26, .18); }
html[data-theme="light"] .field input:focus, html[data-theme="light"] .field select:focus, html[data-theme="light"] .field textarea:focus { box-shadow: 0 0 0 3px rgba(22, 21, 26, .1); }
html[data-theme="light"] .field input::placeholder, html[data-theme="light"] .field textarea::placeholder { color: #9a948c; }
html[data-theme="light"] .err, html[data-theme="light"] .form-status.bad { color: #c2001b; }
html[data-theme="light"] .form-status.ok { color: #157a47; }
html[data-theme="light"] .ctx-x:hover { background: rgba(22, 21, 26, .06); }

/* inner pages + portal */
html[data-theme="light"] .pj-cta { background: linear-gradient(120deg, rgba(230, 0, 32, .1), rgba(230, 0, 32, .02)), #fff; }

/* footer */
html[data-theme="light"] .site-footer { background: #ece7df; }
html[data-theme="light"] .foot-list a.foot-ct:hover, html[data-theme="light"] .foot-list a.foot-ct:focus-visible { color: var(--ink); background: rgba(230, 0, 32, .07); }
html[data-theme="light"] .foot-ic { color: #d1001d; }
html[data-theme="light"] .foot-ic-wa { color: #128c4a; }
html[data-theme="light"] .foot-mail:hover { color: var(--ink); }
html[data-theme="light"] .foot-map { background: #fff; }

/* background layer */
html[data-theme="light"] .bg-ic { opacity: .075; }
html[data-theme="light"] .bg-glow { opacity: .35; }

/* smooth swap when the toggle is used (not on load) */
html.theme-swap, html.theme-swap *, html.theme-swap *::before { transition: background-color .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease !important; }

/* ---------- header tools: theme + language ---------- */
.hdr-tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; margin-inline-end: 22px; }
.tool-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 10px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--ink-2); font-size: 13px; font-weight: 700; line-height: 1;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: color .2s, border-color .2s, background-color .2s, transform .2s; }
.tool-btn:hover { color: var(--ink); border-color: rgba(230, 0, 32, .5); transform: translateY(-1px); }
.tool-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-sun { display: none; }
html[data-theme="light"] .theme-btn .i-sun { display: block; }
html[data-theme="light"] .theme-btn .i-moon { display: none; }
.theme-btn svg { animation: tool-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes tool-pop { from { transform: rotate(-90deg) scale(.4); opacity: 0; } }
html[data-theme="light"] .tool-btn { background: rgba(255, 255, 255, .7); }
.lang-wrap { position: relative; }
.lang-btn b { font: 700 12px/1 ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.lang-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 70; min-width: 170px; margin: 0; padding: 6px; list-style: none; border-radius: 14px;
  background: rgba(22, 22, 26, .96); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: lang-in .22s ease both; }
.lang-menu[hidden] { display: none; }
@keyframes lang-in { from { opacity: 0; transform: translateY(-6px); } }
.lang-menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 0; border-radius: 9px; background: transparent; color: #e9e4dc; font-size: 14px; font-weight: 600; cursor: pointer; text-align: start; }
.lang-menu button span { font: 700 11px/1 ui-monospace, Consolas, monospace; color: rgba(255, 255, 255, .45); }
.lang-menu button:hover, .lang-menu button:focus-visible { background: rgba(255, 255, 255, .07); }
.lang-menu button[aria-current="true"] { background: rgba(230, 0, 32, .18); color: #fff; }
.lang-menu button[aria-current="true"] span { color: #ff6b81; }
html[data-theme="light"] .lang-menu { background: rgba(255, 255, 255, .97); border-color: rgba(22, 21, 26, .1); box-shadow: 0 24px 50px -24px rgba(22, 21, 26, .45); }
html[data-theme="light"] .lang-menu button { color: #16151a; }
html[data-theme="light"] .lang-menu button span { color: #8a847c; }
html[data-theme="light"] .lang-menu button:hover { background: rgba(22, 21, 26, .05); }
html[data-theme="light"] .lang-menu button[aria-current="true"] { background: rgba(230, 0, 32, .09); color: #c2001b; }
@media (max-width: 1080px) {
  .hdr-tools { margin-inline-end: 10px; gap: 6px; }
  .tool-btn { height: 40px; min-width: 40px; padding: 0 8px; }
}

/* =====================================================================
   other languages (EN / FR / DE / ES): left-to-right
   ===================================================================== */
html.i18n-wait body { opacity: 0; animation: i18n-show 0s linear 2s forwards; }
@keyframes i18n-show { to { opacity: 1; } }
[dir="ltr"] :is(.cl-en, .cl-item, .menu-item, .svc-no, .svc-en, .svc-tx b) { text-align: left; }
[dir="ltr"] :is(.btn, .btn-ghost, .link-arrow, .wk-cta, .card-go, .back, .cl-nav-a, .cl-btn) .ico { transform: scaleX(-1); }
[dir="ltr"] .link-arrow:hover .ico { transform: scaleX(-1) translateX(-4px); }
[dir="ltr"] .ticks li::before { right: auto; left: 0; }
[dir="ltr"] .card-go { left: auto; right: 20px; }
[dir="ltr"] .foot-list a.foot-ct:hover, [dir="ltr"] .foot-list a.foot-ct:focus-visible { transform: translateX(3px); }
[dir="ltr"] .skip { right: auto; left: 16px; }
html:not([lang="ar"]) .hero-title { font-size: clamp(30px, 3vw, 52px); letter-spacing: -.01em; }
html:not([lang="ar"]) .hero-title span { white-space: normal; }
html:not([lang="ar"]) .sec-title { letter-spacing: -.01em; }
html:not([lang="ar"]) .row2 { grid-template-columns: 150px 1fr; }
[dir="ltr"] .hub-title { align-items: flex-start; text-align: left; }

/* =====================================================================
   Round 4 — centred headings with the turning Magic mark, hero boxes + notifications,
   behind-the-scenes first, footer logo, and Liquid Glass across the site.
   ===================================================================== */

/* ---------- glass tokens (dark islands keep the dark glass in light mode) ---------- */
:root {
  --g-dark: rgba(30, 30, 36, .46); --g-light: rgba(255, 255, 255, .58);
  --g-bg: var(--g-dark); --g-bg-2: rgba(255, 255, 255, .045);
  --g-brd: rgba(255, 255, 255, .13); --g-hi: rgba(255, 255, 255, .2);
  --g-blur: blur(22px) saturate(170%);
  --g-shadow: 0 24px 60px -30px rgba(0, 0, 0, .8);
}
html[data-theme="light"] {
  --g-bg: var(--g-light); --g-bg-2: rgba(255, 255, 255, .6);
  --g-brd: rgba(255, 255, 255, .8); --g-hi: rgba(255, 255, 255, .95);
  --g-shadow: 0 22px 50px -30px rgba(22, 21, 26, .38);
}
html[data-theme="light"] :is(.card, .hub, .pj-hero, .hero-visual, .wa-tip),
html[data-theme="light"] .page:has(.demo) {
  --g-bg: var(--g-dark); --g-bg-2: rgba(255, 255, 255, .045);
  --g-brd: rgba(255, 255, 255, .13); --g-hi: rgba(255, 255, 255, .2);
  --g-shadow: 0 24px 60px -30px rgba(0, 0, 0, .8);
}
html.glass-lite { --g-dark: rgba(24, 24, 28, .93); --g-light: rgba(255, 255, 255, .95); }

/* the glass surface: frosted body, bright rim on top, soft depth */
html :is(.hs-box, .tool-btn, .menu-btn, .btn-ghost, .mq-toggle, .cl-tile, .svc-half, .form, .lang-menu, .mobile-menu, .wk-glass, .card-play, .fs, .hv-note, .hv-notes-h, .wa-tip, .hs-hub) {
  background: var(--g-bg);
  -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
  border: 1px solid var(--g-brd);
  box-shadow: inset 0 1px 0 var(--g-hi), inset 0 -1px 0 rgba(255, 255, 255, .03), var(--g-shadow);
}
html[data-theme="light"] :is(.hs-box, .tool-btn, .menu-btn, .btn-ghost, .mq-toggle, .cl-tile, .svc-half, .form, .lang-menu, .mobile-menu, .fs) {
  background: var(--g-bg); border-color: var(--g-brd);
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 1px rgba(22, 21, 26, .05), var(--g-shadow);
}
html .svc-item { background: var(--g-bg-2); }
html[data-theme="light"] .svc-item { background: rgba(255, 255, 255, .55); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(22, 21, 26, .06); }
html :is(.btn-ghost, .mq-toggle):hover { background: rgba(255, 255, 255, .1); }
html[data-theme="light"] :is(.btn-ghost, .mq-toggle):hover { background: rgba(255, 255, 255, .85); }
html :is(.btn-ghost, .tool-btn, .menu-btn, .mq-toggle) { border-radius: 99px; }
html .menu-btn { border-radius: 14px; }
html .cl-tile { border-radius: 22px; }
html .svc-half { border-radius: 30px; }
html .form { border-radius: 26px; }
html.glass-lite :is(.hs-box, .tool-btn, .menu-btn, .btn-ghost, .mq-toggle, .cl-tile, .svc-half, .form, .lang-menu, .mobile-menu, .wk-glass, .card-play, .fs, .hv-note, .hv-notes-h, .wa-tip, .hs-hub, .hdr-inner) {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}

/* ---------- header: a floating glass capsule that forms as you scroll ---------- */
.site-header { background: transparent !important; border-bottom: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.hdr-inner {
  margin-top: 9px; height: calc(var(--hdr) - 16px); width: calc(100% - 28px); max-width: 1380px; padding-inline: 22px; border-radius: 22px;
  background: rgba(24, 24, 28, calc(var(--hdr-a) * .52));
  border: 1px solid rgba(255, 255, 255, calc(var(--hdr-a) * .12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, calc(var(--hdr-a) * .18)), 0 18px 44px -26px rgba(0, 0, 0, calc(var(--hdr-a) * .9));
  -webkit-backdrop-filter: blur(calc(var(--hdr-a) * 22px)) saturate(calc(100% + var(--hdr-a) * 70%));
  backdrop-filter: blur(calc(var(--hdr-a) * 22px)) saturate(calc(100% + var(--hdr-a) * 70%));
}
html[data-theme="light"] .hdr-inner {
  background: rgba(255, 255, 255, calc(var(--hdr-a) * .6));
  border-color: rgba(255, 255, 255, calc(var(--hdr-a) * .85));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, calc(var(--hdr-a) * .95)), 0 0 0 1px rgba(22, 21, 26, calc(var(--hdr-a) * .05)), 0 18px 40px -26px rgba(22, 21, 26, calc(var(--hdr-a) * .4));
}
html.glass-lite .hdr-inner { background: rgba(20, 20, 24, calc(var(--hdr-a) * .94)); }
html.glass-lite[data-theme="light"] .hdr-inner { background: rgba(255, 255, 255, calc(var(--hdr-a) * .96)); }
.mobile-menu { inset: calc(var(--hdr) - 2px) 14px auto 14px; border-radius: 22px; padding: 6px 16px 18px; }
html[data-theme="light"] .mobile-menu { background: var(--g-bg); }
@media (max-width: 760px) {
  .hdr-inner { width: calc(100% - 16px); margin-top: 8px; padding-inline: 12px; border-radius: 18px; }
  .mobile-menu { inset-inline: 8px; }
}

/* ---------- the Magic mark: a turning gear wherever a heading starts ---------- */
.mm-mark { display: inline-block; flex: none; width: 1em; height: 1em; background: url(../brand/intro-mark-red.png) center / contain no-repeat; }
@keyframes mm-spin { to { transform: rotate(360deg); } }
@keyframes mm-in { from { opacity: 0; transform: rotate(-320deg) scale(.3); } to { opacity: 1; transform: none; } }

/* ---------- section headings: centred, mark first ---------- */
.sec-head { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.sec-title { justify-content: center; gap: 14px; }
.sec-mark { width: .8em; height: .8em; filter: drop-shadow(0 0 12px rgba(230, 0, 32, .45)); animation: mm-spin 30s linear infinite; }
.sec-head.rv:not(.in) .sec-mark { opacity: 0; }
.sec-head.rv.in .sec-mark { animation: mm-in 1s cubic-bezier(.2, .8, .2, 1) both, mm-spin 30s linear 1s infinite; }
.sec-note, .svc-intro { max-width: 600px; margin-inline: auto; text-align: center; text-wrap: balance; }
.clients-meta { flex-direction: column; justify-content: center; gap: 14px; }
#clientsNote span { display: block; }
.mq-toggle { font-size: 12.5px; padding: 5px 13px; }

/* the AI hub heading follows the same centre line */
.hub-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.hub-copy, .hub-side { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.hub-desc { max-width: 640px; text-wrap: balance; }
html .hub-title, html[dir="ltr"] .hub-title { align-items: center; text-align: center; justify-content: center; }
.hub-note { display: grid; gap: 4px; justify-items: center; margin-top: 18px; text-wrap: balance; }
.hub-note > span:first-child { font-size: 15px; color: var(--ink-2); }
.hub-note-2 { font-size: 13.5px; color: var(--muted); }
.hub-note-2 em { font-style: normal; font-weight: 800; color: #ff3b41; }
.hub-note.rv .hub-note-2 { transition: opacity .6s .45s, transform .6s .45s; }
.hub-note.rv:not(.in) .hub-note-2 { opacity: 0; transform: translateY(8px); }

/* ---------- hero ---------- */
.hero .eyebrow { flex-wrap: wrap; row-gap: 2px; }
.hero .eyebrow b { font-weight: 800; color: var(--ink); }
.eb-sep { opacity: .5; }
@media (max-width: 760px) { html:not([lang="ar"]) .hero .eyebrow .eb-sep { display: none; } html:not([lang="ar"]) .hero .eyebrow b { flex-basis: 100%; padding-inline-start: 18px; } }
.hero-svc { display: grid; gap: 0; max-width: 540px; }
.hs-box { position: relative; padding: 16px 18px 15px; border-radius: 24px; text-align: center; }
.hs-t { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 17px; font-weight: 800; color: var(--ink); }
.hs-t .mm-mark { width: 21px; height: 21px; animation: mm-spin 24s linear infinite; }
.hs-box + .hs-link + .sr + .hs-box .hs-t .mm-mark { animation-direction: reverse; }
.hs-lead { margin-top: 5px; font-size: 15px; line-height: 1.6; color: var(--ink-2); text-wrap: balance; }
.hs-tags { margin-top: 4px; font-size: 12.5px; color: var(--muted); text-wrap: balance; }
.hs-link { position: relative; display: flex; flex-direction: column; align-items: center; height: 58px; }
.hs-line { position: relative; flex: 1; width: 2px; overflow: hidden; background: linear-gradient(rgba(230, 0, 32, .15), rgba(230, 0, 32, .65), rgba(230, 0, 32, .15)); }
.hs-line b { position: absolute; left: -1px; top: -14px; width: 4px; height: 14px; border-radius: 4px; background: #ff3b41; box-shadow: 0 0 10px #ff3b41; animation: hs-run 1.5s linear infinite; }
.hs-link .hs-line:last-child b { animation-delay: .75s; }
@keyframes hs-run { to { top: 100%; } }
.hs-hub { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; border-color: rgba(230, 0, 32, .5) !important; box-shadow: 0 0 20px rgba(230, 0, 32, .45), inset 0 1px 0 var(--g-hi) !important; }
.hs-hub .mm-mark { width: 18px; height: 18px; animation: mm-spin 6s linear infinite; }

/* phone notifications next to the behind-the-scenes phone */
.hv-notes { position: absolute; left: 0; top: 7%; z-index: 4; width: 58%; }
.hv-notes-h { display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px; margin-bottom: 10px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.hv-live { display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1 ui-monospace, Consolas, monospace; color: #ff6b81; }
.hv-live i { width: 7px; height: 7px; border-radius: 50%; background: #3fdc85; box-shadow: 0 0 8px #3fdc85; animation: caret 1.2s steps(1) infinite; }
.hv-notes-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; min-height: 304px; }
.hv-note {
  --k: 0; display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 22px;
  opacity: calc(1 - var(--k) * .17); transform: scale(calc(1 - var(--k) * .025)); transform-origin: 50% 0;
  transition: opacity .45s, transform .45s cubic-bezier(.2, .8, .2, 1);
  animation: note-in .55s cubic-bezier(.2, .9, .25, 1.12) backwards;
}
@keyframes note-in { from { opacity: 0; transform: translateY(-16px) scale(.94); } }
.hv-note.out { opacity: 0; transform: translateY(12px) scale(.94); }
.hv-notes-list.clear .hv-note { opacity: 0; transform: translateY(-10px) scale(.96); }
.hv-note-ic { flex: none; width: 38px; height: 38px; color: #ff4d55; }
.hv-note-ic svg { width: 100%; height: 100%; }
.hv-note-tx { flex: 1; min-width: 0; display: grid; gap: 1px; }
.hv-note-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 11px; color: var(--muted); }
.hv-note-h b { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.hv-note-m { font-size: 13px; line-height: 1.45; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hv-done { margin-top: 10px; padding: 9px 14px; border-radius: 16px; font-size: 13px; font-weight: 800; color: #3fdc85; background: rgba(63, 220, 133, .12); border: 1px solid rgba(63, 220, 133, .35); opacity: 0; transform: translateY(6px); transition: opacity .45s, transform .45s; min-height: 1.5em; }
.hv-done.on { opacity: 1; transform: none; }
html[data-theme="light"] :is(.hv-note, .hv-notes-h) { background: rgba(255, 255, 255, .64); border-color: rgba(255, 255, 255, .9); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(22, 21, 26, .05), 0 18px 36px -24px rgba(22, 21, 26, .4); }
html[data-theme="light"] :is(.hv-note-h b, .hv-note-m) { color: #16151a; }
html[data-theme="light"] :is(.hv-note-h, .hv-notes-h) { color: #6d6861; }
html[data-theme="light"] .hv-done { color: #157a47; background: rgba(21, 122, 71, .1); border-color: rgba(21, 122, 71, .3); }
html.glass-lite[data-theme="light"] :is(.hv-note, .hv-notes-h) { background: rgba(255, 255, 255, .96); }

/* ---------- «من أعمالنا»: text on a glass panel; behind the scenes first and widest ---------- */
.card-link::after { background: linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(8, 8, 9, .5)); }
.card-body { right: 14px; left: 14px; bottom: 14px; gap: 10px; align-items: stretch; }
.card.wk-sites .card-body { left: 14px; }
.wk-glass { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 14px 16px 15px; border-radius: 22px; }
.wk-glass .card-title { font-size: 26px; }
.wk-glass .wk-text { color: rgba(255, 255, 255, .86); }
.wk-cta { align-self: flex-start; margin-top: 0; }
.wk-cam { position: absolute; z-index: 3; top: 40px; right: 22px; display: flex; align-items: center; gap: 10px; direction: ltr; font: 700 11px/1 ui-monospace, Consolas, monospace; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); pointer-events: none; }
.wk-rec { display: inline-flex; align-items: center; gap: 6px; letter-spacing: .06em; }
.wk-rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff2d3d; box-shadow: 0 0 10px #ff2d3d; animation: caret 1.2s steps(1) infinite; }
.card.wk-making.playing .card-media video { animation: wk-zoom 9s ease-in-out infinite alternate; }
@keyframes wk-zoom { to { transform: scale(1.07); } }
.cards[data-n="3"] { grid-template-columns: 1.32fr 1fr 1fr; }
@media (max-width: 1080px) { .cards[data-n="3"] { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .cards[data-n="3"] { grid-template-columns: 1fr; }
  .card.wk-making .card-link { height: 600px; }
  .wk-glass .card-title { font-size: 23px; }
}

/* ---------- «عملاؤنا»: every tile the same height, one line per name ---------- */
.mq-track > li { display: flex; }
.cl-tile { height: 100%; }
.cl-tile-name, .cl-tile-cat { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-tile-name.is-long { font-size: 13px; }
.cl-tile-cat.is-long { font-size: 11px; }
@media (max-width: 760px) {
  .mq-row { -webkit-mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
}

/* ---------- «خدماتنا»: centred head, the mark is the zero ---------- */
.svc-half-head { justify-items: center; text-align: center; }
.svc-half-head .svc-no { display: inline-flex; align-items: center; justify-content: center; gap: 1px; font-size: 32px; font-weight: 800; letter-spacing: 0; line-height: 1; color: var(--red); text-align: center; }
.svc-half-head .svc-no b { font-weight: 800; }
.svc-no-mark { width: .82em; height: .82em; filter: drop-shadow(0 0 10px rgba(230, 0, 32, .4)); animation: mm-spin 30s linear infinite; }
.svc-half:not(.in) .svc-no-mark { opacity: 0; }
.svc-half.in .svc-no-mark { animation: mm-in 1s .2s cubic-bezier(.2, .8, .2, 1) both, mm-spin 30s linear 1.2s infinite; }
.svc-half-head .svc-en, .svc-half-head .svc-ar { text-align: center; }
.svc-half-head p { text-wrap: balance; }
.svc-cta { align-self: center; }

/* ---------- contact: heading centred, form under it ---------- */
.contact-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; max-width: 760px; margin-inline: auto; }
.contact-copy { position: static; align-items: center; text-align: center; }
#contactCta { display: none; }

/* ---------- footer: the logo in the middle, its mark turning; social circles with turning rims ---------- */
.foot-grid { grid-template-columns: 1fr 1fr 1.3fr; }
.foot-brand { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.foot-logo { display: block; text-decoration: none; border-radius: 12px; }
.foot-logo-in { --h: 66px; position: relative; display: block; height: var(--h); aspect-ratio: 643 / 207; }
.foot-logo-in img { position: absolute; inset: 0; width: 100%; height: 100%; }
.foot-mark { transform-origin: 15.241% 52.899%; filter: drop-shadow(0 0 14px rgba(230, 0, 32, .45)); animation: mm-spin 22s linear infinite; }
.foot-ring { position: absolute; left: 15.241%; top: 52.899%; width: calc(var(--h) * 1.36); height: calc(var(--h) * 1.36); margin: calc(var(--h) * -.68) 0 0 calc(var(--h) * -.68);
  border-radius: 50%; border: 1px dashed rgba(230, 0, 32, .5); animation: mm-spin 34s linear infinite reverse; }
.foot-ring::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(230, 0, 32, .32), transparent); }
.foot-ring i { position: absolute; top: -3.5px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #ff3b41; box-shadow: 0 0 10px #ff3b41; }
@keyframes fm-in { from { opacity: 0; transform: rotate(-540deg) scale(.2); } to { opacity: 1; transform: none; } }
@keyframes fw-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ring-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.foot-brand.rv:not(.in) :is(.foot-mark, .foot-ring) { opacity: 0; }
.foot-brand.rv:not(.in) .foot-word { clip-path: inset(0 100% 0 0); }
.foot-brand.rv.in .foot-mark { animation: fm-in 1.3s cubic-bezier(.2, .8, .2, 1) both, mm-spin 22s linear 1.3s infinite; }
.foot-brand.rv.in .foot-word { animation: fw-in .9s .55s cubic-bezier(.6, 0, .2, 1) both; }
.foot-brand.rv.in .foot-ring { animation: ring-in .9s .25s cubic-bezier(.2, .8, .2, 1) both, mm-spin 34s linear 1.2s infinite reverse; }
html[data-theme="light"] .foot-word { filter: brightness(0) saturate(0); opacity: .9; }
.foot-brand #footTitle { margin: 0; max-width: none; font-size: 15px; line-height: 1.75; color: var(--muted); }
.foot-brand #footTitle span { display: block; }
.foot-brand #footTitle span:first-child { color: var(--ink-2); font-weight: 600; }
.foot-social { gap: 18px; justify-content: center; padding-bottom: 18px; }
.foot-social a.fs { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: var(--ink); text-decoration: none; isolation: isolate; transition: transform .3s cubic-bezier(.2, .8, .2, 1), color .3s, background .3s; }
.foot-social .fs svg { position: relative; z-index: 1; width: 23px; height: 23px; }
.fs::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; padding: 2px; z-index: -1;
  background: conic-gradient(var(--c1), var(--c2), transparent 58%, var(--c1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: mm-spin 5s linear infinite; }
.fs-fb { --c1: #1877f2; --c2: #6aaeff; }
.fs-ig { --c1: #fd5949; --c2: #d6249f; }
.fs-ig::before { background: conic-gradient(#fdf497, #fd5949, #d6249f, transparent 62%, #fdf497); animation-delay: -1.7s; }
.fs-wa { --c1: #25d366; --c2: #9af2bf; }
.fs-wa::before { animation-delay: -3.4s; }
.foot-social a.fs:hover, .foot-social a.fs:focus-visible { transform: translateY(-4px); color: #fff; background: var(--c1); filter: none; }
.foot-social a.fs-ig:hover, .foot-social a.fs-ig:focus-visible { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 62%, #285aeb 92%); }
.fs-lbl { position: absolute; top: calc(100% + 6px); left: 50%; transform: translate(-50%, -4px); font-size: 11.5px; font-weight: 700; white-space: nowrap; color: var(--ink-2); opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.fs:hover .fs-lbl, .fs:focus-visible .fs-lbl { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1080px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-map { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-logo-in { --h: 58px; }
  .foot-brand #footTitle { font-size: 14px; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .hero .wrap > * { min-width: 0; }
  /* phone: four short lines, each pair of words stays together («العميل» never ends up alone) */
  html[lang="ar"] .hero-title { font-size: min(11.2vw, 46px); line-height: 1.16; }
  html[lang="ar"] .hero-title .ht-b { display: block; }
  .hero-svc { max-width: none; }
  .hero-visual { aspect-ratio: auto; display: grid; justify-items: center; gap: 22px; padding-top: 8px; }
  .hv-phone { position: relative; right: auto; top: auto; width: min(60%, 236px); }
  .hv-notes { position: relative; left: auto; top: auto; width: 100%; }
  .hv-notes-list { min-height: 300px; }
  .hv-float.f1 { right: auto; left: 9%; top: 2%; }
  .hv-float.f2 { right: 7%; top: 17%; }
  .hv-float.f4 { right: 9%; top: 44%; }
}

@media (prefers-reduced-motion: reduce) {
  .mm-mark, .foot-mark, .foot-ring, .fs::before, .hs-line b, .hv-note, .hv-live i, .wk-rec i, .card.wk-making.playing .card-media video { animation: none !important; }
  .hv-note, .hv-done { transition: none; }
}

/* =====================================================================
   Round 5 — real liquid glass, glass WhatsApp button, flipping sites card,
   footer network, no numbers on the service cards, no icon between hero boxes
   ===================================================================== */

/* ---------- liquid glass, part 1: colour behind the glass, so the frost has something to bend ---------- */
.bg-glow { opacity: .75; }
.bg-glow.g1 { background: radial-gradient(circle, rgba(230, 0, 32, .24), rgba(230, 0, 32, 0) 65%); }
.bg-glow.g2 { background: radial-gradient(circle, rgba(255, 70, 90, .2), rgba(255, 70, 90, 0) 65%); }
.bg-glow.g3 { top: 34%; right: -18vmax; width: 40vmax; height: 40vmax; background: radial-gradient(circle, rgba(150, 20, 95, .22), rgba(150, 20, 95, 0) 65%); animation-duration: 38s; animation-direction: alternate-reverse; }
.bg-glow.g4 { top: 58%; left: -16vmax; width: 38vmax; height: 38vmax; background: radial-gradient(circle, rgba(255, 110, 60, .13), rgba(255, 110, 60, 0) 65%); animation-duration: 46s; }
html[data-theme="light"] .bg-glow { opacity: .9; }
html[data-theme="light"] .bg-glow.g1 { background: radial-gradient(circle, rgba(230, 0, 32, .14), rgba(230, 0, 32, 0) 65%); }
html[data-theme="light"] .bg-glow.g2 { background: radial-gradient(circle, rgba(255, 120, 150, .2), rgba(255, 120, 150, 0) 65%); }
html[data-theme="light"] .bg-glow.g3 { background: radial-gradient(circle, rgba(190, 90, 200, .14), rgba(190, 90, 200, 0) 65%); }
html[data-theme="light"] .bg-glow.g4 { background: radial-gradient(circle, rgba(255, 170, 110, .2), rgba(255, 170, 110, 0) 65%); }
@media (max-width: 760px) { .bg-glow { animation: none; } }

/* ---------- liquid glass, part 2: a thick pane — light on the top edge, shade on the bottom, a moving shine ---------- */
:root {
  --g-dark: rgba(34, 32, 40, .34);
  --g-spec: rgba(255, 255, 255, .13); --g-top: rgba(255, 255, 255, .07);
  --g-b1: rgba(255, 255, 255, .3); --g-b2: rgba(255, 255, 255, .1); --g-b3: rgba(255, 255, 255, .035);
  --g-hi: rgba(255, 255, 255, .26); --g-lo: rgba(0, 0, 0, .4); --g-glow: rgba(255, 80, 95, .14); --g-s1: rgba(0, 0, 0, .35);
  --g-shadow: 0 34px 60px -30px rgba(0, 0, 0, .9), 0 12px 24px -16px rgba(0, 0, 0, .65);
  --g-blur: blur(24px) saturate(185%);
}
html[data-theme="light"] {
  --g-light: rgba(255, 255, 255, .42);
  --g-spec: rgba(255, 255, 255, .85); --g-top: rgba(255, 255, 255, .55);
  --g-b1: rgba(255, 255, 255, 1); --g-b2: rgba(255, 255, 255, .7); --g-b3: rgba(22, 21, 26, .08);
  --g-hi: #fff; --g-lo: rgba(22, 21, 26, .07); --g-glow: rgba(230, 0, 32, .07); --g-s1: rgba(22, 21, 26, .07);
  --g-shadow: 0 28px 52px -28px rgba(60, 20, 30, .38), 0 8px 18px -12px rgba(22, 21, 26, .16);
}
html[data-theme="light"] :is(.card, .hub, .pj-hero, .hero-visual, .wa-tip),
html[data-theme="light"] .page:has(.demo) {
  --g-spec: rgba(255, 255, 255, .13); --g-top: rgba(255, 255, 255, .07);
  --g-b1: rgba(255, 255, 255, .3); --g-b2: rgba(255, 255, 255, .1); --g-b3: rgba(255, 255, 255, .035);
  --g-hi: rgba(255, 255, 255, .26); --g-lo: rgba(0, 0, 0, .4); --g-glow: rgba(255, 80, 95, .14); --g-s1: rgba(0, 0, 0, .35);
  --g-shadow: 0 34px 60px -30px rgba(0, 0, 0, .9), 0 12px 24px -16px rgba(0, 0, 0, .65);
}
html.glass-lite { --g-dark: rgba(28, 27, 33, .94); --g-light: rgba(255, 255, 255, .94); }

html :is(.hs-box, .tool-btn, .menu-btn, .btn-ghost, .mq-toggle, .cl-tile, .svc-half, .form, .lang-menu, .mobile-menu, .wk-glass, .card-play, .fs, .hv-note, .hv-notes-h, .wa-tip),
html[data-theme="light"] :is(.hs-box, .tool-btn, .menu-btn, .btn-ghost, .mq-toggle, .cl-tile, .svc-half, .form, .lang-menu, .mobile-menu, .fs) {
  background:
    radial-gradient(120% 85% at var(--gx, 18%) var(--gy, -8%), var(--g-spec), transparent 58%),
    linear-gradient(180deg, var(--g-top), transparent 46%),
    var(--g-bg);
  border: 1px solid; border-color: var(--g-b1) var(--g-b2) var(--g-b3) var(--g-b2);
  box-shadow:
    inset 0 1px 0 var(--g-hi),
    inset 0 -1px 0 var(--g-lo),
    inset 0 -22px 32px -26px var(--g-glow),
    inset 0 14px 22px -20px var(--g-hi),
    0 1px 2px var(--g-s1),
    var(--g-shadow);
}
html :is(.btn-ghost, .mq-toggle, .tool-btn):hover,
html[data-theme="light"] :is(.btn-ghost, .mq-toggle, .tool-btn):hover {
  background:
    radial-gradient(120% 85% at var(--gx, 50%) var(--gy, 0%), var(--g-spec), transparent 62%),
    linear-gradient(180deg, var(--g-top), transparent 50%),
    var(--g-bg);
  border-color: var(--g-b1) var(--g-b1) var(--g-b2) var(--g-b1);
}
/* the client tiles keep their lift and red edge on hover */
html .cl-tile:hover, html .cl-tile:focus-visible { border-color: rgba(230, 0, 32, .6) rgba(230, 0, 32, .4) rgba(230, 0, 32, .3) rgba(230, 0, 32, .4); }

/* small inner panes (service rows) — the same light, without a second blur */
html .svc-item, html[data-theme="light"] .svc-item {
  background: radial-gradient(120% 90% at var(--gx, 20%) var(--gy, 0%), rgba(255, 255, 255, .06), transparent 60%), rgba(255, 255, 255, .025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 -1px 0 rgba(0, 0, 0, .3), 0 8px 18px -14px rgba(0, 0, 0, .7);
}
html[data-theme="light"] .svc-item {
  background: radial-gradient(120% 90% at var(--gx, 20%) var(--gy, 0%), #fff, transparent 65%), rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, .7), 0 0 0 1px rgba(22, 21, 26, .06), 0 10px 20px -16px rgba(60, 20, 30, .35);
}

/* icons as little glass tiles: tinted, lit from above, shaded below */
.svc-ic, .foot-ic { position: relative; overflow: hidden; isolation: isolate; }
.svc-ic {
  background: linear-gradient(160deg, rgba(255, 95, 100, .34), rgba(230, 0, 32, .1) 58%, rgba(120, 0, 15, .2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -3px 7px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 70, 76, .38), 0 8px 16px -9px rgba(230, 0, 32, .75);
}
.svc-ic::after, .foot-ic::after {
  content: ""; position: absolute; z-index: -1; inset: 1px 1px 52% 1px; border-radius: inherit;
  border-bottom-left-radius: 50% 30%; border-bottom-right-radius: 50% 30%;
  background: linear-gradient(rgba(255, 255, 255, .3), rgba(255, 255, 255, 0)); pointer-events: none;
}
html[data-theme="light"] .svc-ic {
  background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(255, 220, 224, .7) 55%, rgba(230, 0, 32, .14));
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 6px rgba(230, 0, 32, .12), inset 0 0 0 1px rgba(230, 0, 32, .22), 0 8px 16px -10px rgba(230, 0, 32, .5);
}
.foot-ic { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -3px 6px rgba(0, 0, 0, .3), 0 8px 16px -10px rgba(230, 0, 32, .6); }

/* ---------- glass WhatsApp button: frosted pane, green logo, softer pulse ---------- */
.wa-btn {
  background:
    radial-gradient(90% 70% at var(--gx, 30%) var(--gy, 12%), rgba(255, 255, 255, .34), transparent 60%),
    linear-gradient(170deg, rgba(60, 225, 125, .36), rgba(20, 140, 70, .3));
  -webkit-backdrop-filter: blur(16px) saturate(190%); backdrop-filter: blur(16px) saturate(190%);
  border: 1px solid; border-color: rgba(255, 255, 255, .55) rgba(255, 255, 255, .22) rgba(37, 211, 102, .25) rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -8px 16px -8px rgba(37, 211, 102, .5), 0 14px 30px -10px rgba(0, 0, 0, .6), 0 0 22px -6px rgba(37, 211, 102, .55);
}
.wa-btn svg path { fill: #25d366; }
.wa-btn svg { filter: drop-shadow(0 0 6px rgba(37, 211, 102, .55)) drop-shadow(0 1px 0 rgba(255, 255, 255, .5)); }
.wa-btn::before, .wa-btn::after { border-width: 1.5px; border-color: rgba(37, 211, 102, .4); }
html[data-theme="light"] .wa-btn {
  background:
    radial-gradient(90% 70% at var(--gx, 30%) var(--gy, 12%), rgba(255, 255, 255, .95), transparent 62%),
    linear-gradient(170deg, rgba(255, 255, 255, .6), rgba(37, 211, 102, .2));
  border-color: #fff rgba(255, 255, 255, .8) rgba(37, 211, 102, .3) rgba(255, 255, 255, .8);
  box-shadow: inset 0 1px 0 #fff, inset 0 -8px 16px -8px rgba(37, 211, 102, .35), 0 14px 28px -12px rgba(20, 70, 40, .45), 0 0 20px -6px rgba(37, 211, 102, .45);
}
html[data-theme="light"] .wa-btn svg path { fill: #12a84e; }
html.glass-lite .wa-btn { -webkit-backdrop-filter: none; backdrop-filter: none; background: radial-gradient(90% 70% at 30% 12%, rgba(255, 255, 255, .3), transparent 60%), rgb(22, 52, 36); }
html.glass-lite[data-theme="light"] .wa-btn { background: radial-gradient(90% 70% at 30% 12%, #fff, transparent 62%), rgb(225, 247, 233); }
/* the hero's floating icons sit on the far side from the WhatsApp button */
@media (max-width: 760px) {
  .hero .hv-float.f1 { left: auto; right: auto; inset-inline-start: 4%; top: 1%; }
  .hero .hv-float.f2 { left: auto; right: auto; inset-inline-start: 1%; top: 26%; }
  .hero .hv-float.f4 { left: auto; right: auto; inset-inline-start: 5%; top: 40%; }
}

/* ---------- hero: one glowing line links the two boxes (the icon between them is gone) ---------- */
.hs-link { height: 40px; }
.hs-line { width: 2px; background: linear-gradient(rgba(230, 0, 32, .35), rgba(255, 59, 65, .95), rgba(230, 0, 32, .35)); box-shadow: 0 0 8px rgba(230, 0, 32, .6); }
.hs-line::before { content: ""; position: absolute; inset: 0 -3px; background: radial-gradient(closest-side, rgba(230, 0, 32, .35), transparent); filter: blur(2px); }
.hs-line b { animation-duration: 1.2s; }

/* ---------- services: the turning mark alone above each title (no 1 / 2) ---------- */
.svc-half-head .svc-no { gap: 0; font-size: 34px; }

/* ---------- websites card: a new site every 3 s — slide, light sweep, nudge, progress dots ---------- */
.wk-desk img, .wk-phone img { transform: translateY(16%) scale(1.03); transition: opacity .55s ease, transform .75s cubic-bezier(.2, .8, .2, 1); }
.wk-desk img.on, .wk-phone img.on { transform: none; }
.wk-desk img.was, .wk-phone img.was { transform: translateY(-12%) scale(.98); }
.wk-desk, .wk-phone { isolation: isolate; }
.wk-desk::after, .wk-phone::after {
  content: ""; position: absolute; z-index: 3; inset: -20% -60%; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 48%, rgba(255, 255, 255, .1) 53%, transparent 62%);
  transform: translateX(-60%);
}
.card.wk-sites.flip .wk-desk::after { animation: wk-sweep 1s .15s ease-out; }
.card.wk-sites.flip .wk-phone::after { animation: wk-sweep 1s .3s ease-out; }
@keyframes wk-sweep { 0% { opacity: 1; transform: translateX(-60%); } 100% { opacity: 1; transform: translateX(60%); } }
.card.wk-sites.flip .wk-shot { animation: wk-nudge .7s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes wk-nudge { 40% { transform: scale(1.025); } }
.card.wk-sites .card-link::before { content: ""; position: absolute; z-index: 4; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1.5px rgba(255, 59, 65, 0); }
.card.wk-sites.flip .card-link::before { animation: wk-edge 1.1s ease-out; }
@keyframes wk-edge { 25% { box-shadow: inset 0 0 0 1.5px rgba(255, 59, 65, .75), inset 0 0 40px -10px rgba(255, 59, 65, .5); } }
.card.wk-sites .wk-cta { position: relative; overflow: hidden; isolation: isolate; }
.card.wk-sites .wk-cta::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); }
.card.wk-sites.flip .wk-cta::after { animation: wk-cta 1s .45s ease-out; }
@keyframes wk-cta { to { transform: translateX(120%); } }
.wk-now { transition: opacity .3s; }
.card.wk-sites.flip .wk-now { animation: wk-text .55s ease-out; }
@keyframes wk-text { from { opacity: 0; transform: translateY(8px); } }
.wk-sdots { display: flex; gap: 5px; margin-top: 4px; direction: ltr; }
[dir="rtl"] .wk-sdots { direction: rtl; }
.wk-sdots i { width: 6px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .28); transition: width .35s cubic-bezier(.2, .8, .2, 1), background .35s; }
.wk-sdots i.on { width: 20px; background: #ff3b41; box-shadow: 0 0 8px rgba(255, 59, 65, .7); }
@media (prefers-reduced-motion: reduce) {
  .wk-desk img, .wk-phone img { transform: none !important; }
  .card.wk-sites.flip .wk-shot, .card.wk-sites.flip .wk-now, .card.wk-sites.flip .wk-desk::after, .card.wk-sites.flip .wk-phone::after, .card.wk-sites.flip .wk-cta::after, .card.wk-sites.flip .card-link::before { animation: none !important; }
}

/* ---------- footer: the network drifts behind everything, a soft glow breathes behind the logo ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; }
.foot-fx { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask: radial-gradient(120% 90% at 50% 20%, #000 35%, transparent 100%); mask: radial-gradient(120% 90% at 50% 20%, #000 35%, transparent 100%); }
.foot-brand { position: relative; }
.foot-brand::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 10px; width: min(520px, 90vw); height: 220px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(230, 0, 32, .2), rgba(230, 0, 32, 0)); animation: foot-breathe 6s ease-in-out infinite; }
html[data-theme="light"] .foot-brand::before { background: radial-gradient(closest-side, rgba(230, 0, 32, .12), rgba(230, 0, 32, 0)); }
@keyframes foot-breathe { 50% { opacity: .45; transform: translateX(-50%) scale(.9); } }
@media (prefers-reduced-motion: reduce) { .foot-brand::before { animation: none; } }

/* ---------- footer socials as glass bubbles: puffed, a bright spot of light, a thin rainbow film, floating ---------- */
html .foot-social { gap: 24px; padding: 8px 0 24px; }
html .foot-social li:nth-child(2) a.fs { animation-delay: -1.8s; }
html .foot-social li:nth-child(3) a.fs { animation-delay: -3.6s; }
html .foot-social a.fs {
  width: 64px; height: 64px; border: 0; color: #fff;
  background:
    radial-gradient(circle at 70% 78%, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0) 8%),
    radial-gradient(circle at 50% 118%, color-mix(in srgb, var(--c1) 60%, transparent), transparent 60%),
    radial-gradient(circle at 50% 50%, transparent 50%, rgba(255, 255, 255, .08) 66%, rgba(255, 255, 255, .26) 100%),
    radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--c2) 26%, transparent), transparent 70%),
    rgba(255, 255, 255, .035);
  -webkit-backdrop-filter: blur(10px) saturate(180%); backdrop-filter: blur(10px) saturate(180%);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, .45),
    inset 0 -7px 14px -3px color-mix(in srgb, var(--c1) 60%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, .16),
    0 18px 28px -14px rgba(0, 0, 0, .85),
    0 0 28px -10px var(--c1);
  animation: fs-float 5.4s ease-in-out infinite;
  transition: background .35s, box-shadow .35s, color .3s;
}
html .foot-social .fs svg { width: 25px; height: 25px; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c1) 80%, transparent)); }
/* the soap film: a thin rim of shifting colours, turning slowly */
html .foot-social a.fs::before {
  inset: -1px; padding: 1.5px; opacity: .75;
  background: conic-gradient(var(--c1), #8aeaff, var(--c2), #fff59a, #ff8ad8, var(--c1));
  animation: mm-spin 7s linear infinite;
}
/* the bright spot of light on the top-left of the bubble */
html .foot-social a.fs::after {
  content: ""; position: absolute; z-index: 2; top: 8%; left: 17%; width: 44%; height: 28%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, .92), rgba(255, 255, 255, .18) 58%, rgba(255, 255, 255, 0) 72%);
  transform: rotate(-30deg);
}
/* touch / hover: it jiggles like a bubble and fills with the brand colour */
html .foot-social a.fs:hover, html .foot-social a.fs:focus-visible {
  transform: none; color: #fff;
  background:
    radial-gradient(circle at 70% 78%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 8%),
    radial-gradient(circle at 50% 50%, transparent 50%, rgba(255, 255, 255, .16) 68%, rgba(255, 255, 255, .38) 100%),
    radial-gradient(circle at 36% 30%, var(--c2), var(--c1) 72%);
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, .55), inset 0 -8px 14px -3px rgba(0, 0, 0, .3), 0 20px 30px -14px rgba(0, 0, 0, .8), 0 0 34px -6px var(--c1);
  animation: fs-float 5.4s ease-in-out infinite, fs-pop .7s cubic-bezier(.3, 1.6, .5, 1);
}
html .foot-social a.fs-ig:hover, html .foot-social a.fs-ig:focus-visible {
  background:
    radial-gradient(circle at 70% 78%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 8%),
    radial-gradient(circle at 50% 50%, transparent 50%, rgba(255, 255, 255, .16) 68%, rgba(255, 255, 255, .38) 100%),
    radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 62%, #285aeb 92%);
}
html .foot-social a.fs:hover svg, html .foot-social a.fs:focus-visible svg { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
@keyframes fs-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes fs-pop { 0% { scale: 1; } 30% { scale: 1.16 .9; } 55% { scale: .94 1.08; } 78% { scale: 1.05 .97; } 100% { scale: 1.08; } }
html .foot-social a.fs:hover { scale: 1.08; }

html[data-theme="light"] .foot-social a.fs {
  color: var(--c1);
  background:
    radial-gradient(circle at 70% 78%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 8%),
    radial-gradient(circle at 50% 118%, color-mix(in srgb, var(--c1) 34%, transparent), transparent 60%),
    radial-gradient(circle at 50% 50%, transparent 50%, rgba(255, 255, 255, .35) 66%, rgba(255, 255, 255, .9) 100%),
    radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--c2) 18%, transparent), transparent 70%),
    rgba(255, 255, 255, .3);
  box-shadow:
    inset 0 2px 3px #fff,
    inset 0 -7px 14px -3px color-mix(in srgb, var(--c1) 35%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, .7),
    0 16px 26px -14px rgba(60, 20, 30, .45),
    0 0 24px -10px var(--c1);
}
html[data-theme="light"] .foot-social .fs svg { filter: none; }
html[data-theme="light"] .foot-social a.fs:hover, html[data-theme="light"] .foot-social a.fs:focus-visible { color: #fff; }
html.glass-lite .foot-social a.fs { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
@media (max-width: 760px) { html .foot-social a.fs { width: 58px; height: 58px; } html .foot-social { gap: 20px; } }
@media (prefers-reduced-motion: reduce) {
  html .foot-social a.fs, html .foot-social a.fs:hover, html .foot-social a.fs::before { animation: none !important; }
}

/* ---------- hero: «منظومة مترابطة بعقل واحد» map (brain in the middle, five systems around it) ---------- */
.hv-sys { position: absolute; left: 0; top: 6%; z-index: 4; width: 58%; }
.hv-sys-t { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 4px; padding: 6px 13px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--ink-2);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hv-map { position: relative; width: 100%; aspect-ratio: 1 / .82; }
/* rings: the far half (behind the brain) and the near half (in front of it) are two layers */
.hv-orbits { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; max-width: none; pointer-events: none; }
.hv-back { z-index: 1; }
.hv-front { z-index: 4; }
.hv-ring { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1.2; stroke-dasharray: 2 5; }
.hv-front .hv-ring { stroke: rgba(255, 255, 255, .26); stroke-dasharray: none; }
.hv-beam { fill: none; stroke: #ff3b41; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 5 7; opacity: 0; transition: opacity .3s; filter: drop-shadow(0 0 4px rgba(255, 59, 65, .8)); }
.hv-spark { fill: #fff; opacity: 0; transition: opacity .3s; filter: drop-shadow(0 0 5px #ff3b41) drop-shadow(0 0 2px #fff); }
.hv-map.think .hv-beam, .hv-map.think .hv-spark { opacity: 1; }
.hv-map.beam-in .hv-beam { animation: hv-beam-run .6s linear infinite; }
.hv-map.beam-out .hv-beam { animation: hv-beam-run .6s linear infinite reverse; }
@keyframes hv-beam-run { to { stroke-dashoffset: -12; } }
/* the brain: the sun in the middle, floating gently; the Magic mark turns in its glass core */
.hv-brain { position: absolute; left: 50%; top: 47%; z-index: 2; width: 42%; aspect-ratio: 240 / 200; transform: translate(-50%, -54%); pointer-events: none; }
.hv-brain-in { position: absolute; inset: 0; animation: hv-float 5.5s ease-in-out infinite; will-change: transform; }
.hv-brain-svg { display: block; width: 100%; height: 100%; max-width: none; overflow: visible; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }
.hv-brain-glow { position: absolute; inset: -22% -18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 60, 70, .34), rgba(227, 30, 36, .14) 55%, transparent); opacity: .7; transition: opacity .5s, transform .5s; }
.hv-map.think .hv-brain-glow { opacity: 1; transform: scale(1.08); }
.hv-core { position: absolute; left: 51%; top: 49%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .28), rgba(40, 6, 14, .86) 46%, #14050a 100%);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55), 0 0 0 4px rgba(227, 30, 36, .35), 0 0 22px rgba(255, 40, 60, .65), inset 0 -4px 10px rgba(0, 0, 0, .5); }
.hv-core img { display: block; width: 74%; height: 74%; max-width: none; object-fit: contain; animation: hv-spin 7s linear infinite; filter: drop-shadow(0 0 5px rgba(255, 255, 255, .55)) drop-shadow(0 0 10px rgba(255, 50, 60, .7)); }
.hv-map.think .hv-core img { animation-duration: 3s; }
@keyframes hv-spin { to { transform: rotate(360deg); } }
@keyframes hv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4%); } }
/* planets: position, size and depth are set by scenes.js every frame (--near: 0 far side, 1 near side) */
.hv-node { position: absolute; left: 0; top: 0; z-index: 1; display: grid; justify-items: center; gap: 4px; opacity: calc(.42 + var(--near, 1) * .5); will-change: transform; }
.hv-node-ic { display: block; width: 40px; height: 40px; border-radius: 13px; transition: filter .35s, box-shadow .35s; }
.hv-node-ic svg { display: block; width: 100%; height: 100%; max-width: none; }
.hv-node em { font-style: normal; font-size: 11px; font-weight: 700; line-height: 1; color: var(--ink-2); white-space: nowrap; }
.hv-node.lit { opacity: calc(.62 + var(--near, 1) * .38); }
.hv-node.lit .hv-node-ic { box-shadow: 0 0 0 1.5px rgba(255, 90, 95, .55); }
.hv-node.on { opacity: 1; }
.hv-node.on .hv-node-ic { box-shadow: 0 0 0 2px #ff3b41; filter: drop-shadow(0 0 14px rgba(255, 59, 65, .85)); animation: hv-ping .9s ease-out; }
.hv-node.on em { color: var(--ink); }
@keyframes hv-ping { 0% { box-shadow: 0 0 0 2px #ff3b41, 0 0 0 0 rgba(255, 59, 65, .6); } 100% { box-shadow: 0 0 0 2px #ff3b41, 0 0 0 16px rgba(255, 59, 65, 0); } }
.hv-cap { display: grid; gap: 2px; min-height: 3.2em; margin: 8px 0 0; font-size: 13px; line-height: 1.45; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.hv-cap.on { opacity: 1; transform: none; }
.hv-cap b { font-size: 12px; font-weight: 800; color: #ff6b81; }
.hv-cap span { color: var(--ink); }
html[data-theme="light"] .hv-sys-t { background: rgba(255, 255, 255, .64); border-color: rgba(255, 255, 255, .9); color: #6d6861; }
html[data-theme="light"] .hv-ring { stroke: rgba(22, 21, 26, .18); }
html[data-theme="light"] .hv-front .hv-ring { stroke: rgba(22, 21, 26, .28); }
html[data-theme="light"] .hv-brain-svg { filter: drop-shadow(0 10px 16px rgba(120, 30, 60, .22)); }
/* the hero visual is a "dark island", but this map sits on the light page itself, so it takes the light text colours back */
html[data-theme="light"] .hero-visual .hv-sys { --ink: #16151a; --ink-2: #3c3934; --muted: #6d6861; color: var(--ink); }
html[data-theme="light"] .hv-cap b { color: #d1203a; }
html[data-theme="light"] .hv-node-ic { color: #2b2830; box-shadow: 0 3px 10px rgba(22, 21, 26, .1); }
html[data-theme="light"] .hv-node-ic rect[fill="rgba(255,255,255,0.06)"] { fill: #fff; stroke: rgba(22, 21, 26, .14); }
html[data-theme="light"] .hv-node { opacity: calc(.6 + var(--near, 1) * .4); }
@media (max-width: 760px) {
  .hv-sys { position: relative; left: auto; top: auto; width: 100%; max-width: 440px; }
  .hv-sys-t { margin-bottom: 8px; }
  .hv-map { aspect-ratio: 1 / .9; }
  .hv-brain { width: 48%; }
  .hv-node-ic { width: 36px; height: 36px; border-radius: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-brain-in, .hv-core img, .hv-map .hv-beam, .hv-node.on .hv-node-ic { animation: none; }
  .hv-node, .hv-cap, .hv-beam { transition: none; }
}

/* ---------- work cards: short see-through glass box (title + brand only) ---------- */
html .card.wk-videos .wk-glass, html[data-theme="light"] .card.wk-videos .wk-glass {
  gap: 2px; padding: 10px 14px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 60%), rgba(16, 16, 20, .16);
  border-color: rgba(255, 255, 255, .32) rgba(255, 255, 255, .16) rgba(255, 255, 255, .1) rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(12px) saturate(170%); backdrop-filter: blur(12px) saturate(170%);
}
html.glass-lite .card.wk-videos .wk-glass { background: rgba(16, 16, 20, .5); }
.card.wk-videos .wk-glass .card-title { color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.card.wk-videos .wk-glass .wk-who { margin-top: 4px; color: #fff; background: rgba(255, 255, 255, .14); }

/* small «قريبا» tag (client login no longer uses it: it opens app.magicmedia-eg.com since 2026-11-24) */
.soon-tag { display: inline-block; margin-inline-start: 6px; padding: 2px 7px; border-radius: 99px; font-size: 10.5px; font-weight: 700; line-height: 1.4; vertical-align: 1px;
  color: #ffd1d4; background: rgba(230, 0, 32, .22); border: 1px solid rgba(255, 90, 95, .45); }
.mobile-menu .mm-portal .soon-tag { color: #fff; background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .45); font-size: 12px; }
html[data-theme="light"] .nav-portal .soon-tag { color: #b3001b; background: rgba(230, 0, 32, .08); border-color: rgba(230, 0, 32, .3); }

/* ---------- service pages (/services/<slug>) + links to them ---------- */
.svc-item:has(> .svc-a) { padding: 0; }
.svc-a { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: inherit; color: inherit; text-decoration: none; }
.svc-a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (max-width: 720px) { .svc-a { padding: 12px; } }
.sv-head { max-width: 720px; }
.sv-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.sv-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; margin-bottom: 22px; }
.sv-block, .sv-faq, .sv-more { padding: 26px 28px; border-radius: 18px; background: var(--g-bg-2, rgba(255, 255, 255, .04)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.sv-block h2, .sv-faq h2, .sv-more h2 { font-size: 20px; margin: 0 0 14px; }
.sv-block p { color: var(--ink-2); font-size: 16.5px; line-height: 1.75; }
.sv-block p + p { margin-top: 12px; }
.sv-faq { margin-bottom: 22px; }
.sv-faq details { border-top: 1px solid rgba(255, 255, 255, .08); }
.sv-faq details:first-of-type { border-top: 0; }
.sv-faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 16.5px; list-style-position: inside; }
.sv-faq summary::marker { color: var(--red); }
.sv-faq details p { padding: 0 0 16px; color: var(--ink-2); line-height: 1.75; }
.sv-more ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sv-more a { display: inline-block; padding: 9px 16px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 14.5px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: box-shadow .2s, background .2s; }
.sv-more a:hover { background: rgba(227, 30, 36, .12); box-shadow: inset 0 0 0 1px rgba(255, 90, 95, .5); }
@media (max-width: 760px) { .sv-grid { grid-template-columns: 1fr; gap: 16px; } .sv-block, .sv-faq, .sv-more { padding: 20px; } }
html[data-theme="light"] :is(.sv-block, .sv-faq, .sv-more) { background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(22, 21, 26, .08); }
html[data-theme="light"] .sv-faq details { border-top-color: rgba(22, 21, 26, .1); }
html[data-theme="light"] .sv-more a { box-shadow: inset 0 0 0 1px rgba(22, 21, 26, .16); }
/* footer: every service page, on every page */
.foot-svc { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.foot-svc h3 { display: flex; align-items: center; gap: 9px; font-size: 16px; margin: 0 0 16px; }
.foot-svc h3 .mm-mark { font-size: 18px; animation: fs-spin 6s linear infinite; }
@keyframes fs-spin { to { transform: rotate(360deg); } }
/* every service is a small glass card: its icon, its name (the link text search engines read) and an arrow */
.foot-svc ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.foot-svc a { position: relative; display: flex; align-items: center; gap: 11px; height: 100%; padding: 11px 12px; border-radius: 15px; text-decoration: none;
  font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)); border: 1px solid rgba(255, 255, 255, .08);
  transition: color .25s, border-color .25s, background .25s, transform .25s cubic-bezier(.2, .9, .25, 1.2); }
.fs-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #ff5a5f;
  background: radial-gradient(circle at 30% 25%, rgba(255, 90, 95, .3), rgba(227, 30, 36, .1) 70%); box-shadow: inset 0 0 0 1px rgba(255, 90, 95, .28); transition: color .25s, background .25s, box-shadow .25s; }
.fs-ic svg, .fs-go { display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fs-ic svg { width: 20px; height: 20px; }
.fs-t { flex: 1; min-width: 0; }
.fs-go { flex: none; width: 16px; height: 16px; color: var(--muted); opacity: .55; transition: transform .25s, opacity .25s, color .25s; }
.foot-svc a:hover, .foot-svc a:focus-visible { color: var(--ink); border-color: rgba(255, 90, 95, .45); background: linear-gradient(180deg, rgba(227, 30, 36, .14), rgba(227, 30, 36, .04)); transform: translateY(-2px); }
.foot-svc a:hover .fs-ic, .foot-svc a:focus-visible .fs-ic { color: #fff; background: linear-gradient(145deg, #ff4d55, #c4141b); box-shadow: 0 4px 14px rgba(227, 30, 36, .45); }
.foot-svc a:hover .fs-go, .foot-svc a:focus-visible .fs-go { opacity: 1; color: #ff5a5f; transform: translateX(-3px); }
.foot-svc a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
[dir="ltr"] .fs-go { transform: scaleX(-1); }
[dir="ltr"] .foot-svc a:hover .fs-go, [dir="ltr"] .foot-svc a:focus-visible .fs-go { transform: scaleX(-1) translateX(-3px); }
html[data-theme="light"] .foot-svc a { background: rgba(255, 255, 255, .7); border-color: rgba(22, 21, 26, .09); box-shadow: 0 2px 8px rgba(22, 21, 26, .04); }
html[data-theme="light"] .foot-svc a:hover, html[data-theme="light"] .foot-svc a:focus-visible { background: #fff; border-color: rgba(227, 30, 36, .4); box-shadow: 0 8px 22px rgba(227, 30, 36, .12); }
html[data-theme="light"] .fs-ic { color: #d1203a; background: rgba(227, 30, 36, .08); box-shadow: inset 0 0 0 1px rgba(227, 30, 36, .2); }
@media (max-width: 1020px) { .foot-svc ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .foot-svc ul { gap: 8px; }
  .foot-svc a { flex-direction: column; align-items: flex-start; gap: 9px; padding: 12px 12px 13px; font-size: 13.5px; }
  .fs-ic { width: 34px; height: 34px; }
  .fs-go { position: absolute; top: 14px; inset-inline-end: 12px; }
}
@media (prefers-reduced-motion: reduce) { .foot-svc a, .fs-go, .fs-ic { transition: none; } .foot-svc a:hover { transform: none; } .foot-svc h3 .mm-mark { animation: none; } }

/* r7: the Arabic hero title stays inside its own column on wide screens (the phone was covering the end of line 1) */
@media (min-width: 1081px) {
  html[lang="ar"] .hero-title { font-size: clamp(30px, 2.9vw, 47px); }
}

/* r8 speed (2026-11-24): the page was dropping to a few frames per second.
   1. the site-wide background holds still: a moving background under glass forces every glass card to be re-blurred each frame;
   2. looping animations pause while their section is off screen (app.js pauseOffscreen sets data-off). */
.bg-ic, .bg-glow { animation: none !important; will-change: auto; }
[data-off], [data-off] *, [data-off]::before, [data-off]::after, [data-off] *::before, [data-off] *::after { animation-play-state: paused !important; }

/* r9 speed (2026-11-24): the light running down the services line moved with top/right, which re-laid out the page every frame.
   It is now a full-length layer with the 70px streak at its end, moved with transform only (same look). */
.svc-line::after { top: 0; height: 100%; border-radius: 0; will-change: transform; animation-name: svc-flow-t;
  background: linear-gradient(transparent calc(100% - 70px), #ff3b41 calc(100% - 35px), transparent); }
@keyframes svc-flow-t { from { transform: translateY(-100%); } to { transform: translateY(70px); } }
@media (max-width: 860px) {
  .svc-line::after { top: -1px; left: 0; right: auto; width: 100%; height: 3px; animation-name: svc-flow-tx;
    background: linear-gradient(270deg, transparent calc(100% - 70px), #ff3b41 calc(100% - 35px), transparent); }
  @keyframes svc-flow-tx { from { transform: translateX(100%); } to { transform: translateX(-70px); } }
}

/* legal pages (/privacy, /data-deletion) + footer legal line */
.lg-page .lg-block { margin-top: 18px; }
.lg-page .lg-block p { margin: 0 0 10px; line-height: 1.9; }
.lg-page .lg-block a { color: inherit; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.lg-page .lg-name { display: inline-block; font-size: 18px; }
.lg-page .lg-date { font-size: 14px; margin-top: 8px; }
.lg-steps { margin: 0 0 12px; padding-inline-start: 22px; display: grid; gap: 10px; font-size: 17px; }
.lg-page > .wrap > p:last-child { margin-top: 22px; }
.foot-legal { display: block; margin-top: 4px; }
.foot-links { display: flex; gap: 16px; align-items: flex-start; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--red); }
.lg-page .lg-block .ticks + p { margin-top: 16px; }
