/* NederTech Solutions — dark theme. Motion patterns carried over from the approved AEGIS site:
   desktop pin+scrub, phone sticky stage + damped follower, ring only for the demos section. */
:root {
  --bg: #050506;
  --bg2: #0b0c0f;
  --card: #101115;
  --line: rgba(255, 255, 255, 0.09);
  --line2: rgba(255, 255, 255, 0.16);
  --ink: #f2f0eb;
  --mute: #9a988f;
  --faint: #5d5b55;
  --accent: #ff6a13;   /* Dutch orange */
  --accent2: #ffa25e;
  --data: #8fd0ff;     /* server-room blue, matches the dive footage */
  --wa: #25d366;
  --r: 18px;
  --gut: clamp(16px, 4.2vw, 64px);
  --display: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}
:root:not([data-theme="light"]) { color-scheme: dark; }
[dir="rtl"] { --display: 'IBM Plex Sans Arabic', 'Instrument Serif', serif; --sans: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; inset-inline-start: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.kicker, .eyebrow { font: 500 12px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
[dir="rtl"] .kicker, [dir="rtl"] .eyebrow { letter-spacing: 0; font-family: var(--sans); font-size: 14px; }
.sec-head h2, .lab-copy h2, .ct-copy h2 { font: 400 clamp(40px, 6.4vw, 92px)/0.98 var(--display); letter-spacing: -0.01em; margin-top: 14px; }
[dir="rtl"] .sec-head h2, [dir="rtl"] .lab-copy h2, [dir="rtl"] .ct-copy h2 { font-weight: 600; line-height: 1.15; letter-spacing: 0; font-size: clamp(34px, 5.4vw, 76px); }
.sec-head h2 em, .sec-head h2 i { font-style: italic; color: var(--mute); }
[dir="rtl"] .sec-head h2 em { font-style: normal; }
.lede { color: var(--mute); font-size: clamp(16px, 1.35vw, 19px); max-width: 46ch; margin-top: 18px; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--sans); border: 1px solid transparent; transition: transform .2s, background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--accent); color: #140700; }
.btn-primary:hover { background: var(--accent2); }
.btn-ghost { border-color: var(--line2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-wa { background: var(--wa); color: #04210f; }
.btn-wa:hover { background: #3ee07c; }
.wa-ic { width: 20px; height: 20px; fill: currentColor; flex: none; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- header */
.nt-head { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 14px var(--gut); padding-top: max(14px, env(safe-area-inset-top)); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.is-scrolled .nt-head { background: rgba(5, 5, 6, 0.92); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1 var(--sans); letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; padding: 5px; border-radius: 8px; background: #101114; border: 1px solid var(--line2); }
.brand svg path { fill: none; stroke: var(--accent); stroke-width: 3.4; stroke-linejoin: round; stroke-linecap: round; }
.brand em { font-style: normal; font-weight: 400; color: var(--mute); margin-inline-start: 6px; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; font-size: 14px; color: var(--mute); }
.nav a:hover { color: var(--ink); }
.head-r { display: flex; align-items: center; gap: 14px; }
.langs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font: 500 12px/1 var(--mono); }
.langs a { padding: 7px 10px; border-radius: 999px; color: var(--mute); }
.langs a[aria-current] { background: var(--ink); color: var(--bg); }
.langs a[lang="ar"] { font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: 13px; padding-block: 5px; }

/* ---------- 1. the dive (scroll-world technique: scroll drives the camera through pre-rendered footage) */
.world { position: relative; height: calc(100svh + 360vh); background: #000; }
.w-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.w-poster, .w-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 46%; }
.w-video { opacity: 0; transition: opacity .4s; will-change: transform; }
.w-video.ready { opacity: 1; }
.w-vignette { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 50% 45%, transparent 35%, rgba(0,0,0,.72) 100%),
  linear-gradient(180deg, rgba(5,5,6,.55) 0%, transparent 26%, transparent 60%, rgba(5,5,6,.9) 100%); pointer-events: none; }
.w-grid { position: absolute; inset: 0; opacity: .08; pointer-events: none; background-image: linear-gradient(rgba(143,208,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(143,208,255,.25) 1px, transparent 1px); background-size: 64px 64px; }
.w-flash { position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 46%, #fff 0%, #cfe9ff 30%, var(--bg) 100%); opacity: 0; pointer-events: none; will-change: opacity; }
.w-copy { position: absolute; inset: 0; padding: 0 var(--gut); pointer-events: none; }
.wb { position: absolute; inset-inline-start: var(--gut); bottom: clamp(70px, 14vh, 150px); max-width: min(760px, 88vw); opacity: 0; visibility: hidden; }
.wb.on { visibility: visible; pointer-events: auto; }
.wb-title { font: 400 clamp(46px, 7.4vw, 118px)/0.95 var(--display); letter-spacing: -0.015em; margin-top: 14px; text-wrap: balance; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
[dir="rtl"] .wb-title { font-weight: 600; line-height: 1.15; letter-spacing: 0; font-size: clamp(38px, 6vw, 92px); }
.wb-body { margin-top: 18px; font-size: clamp(17px, 1.5vw, 21px); color: #d8d6d0; max-width: 40ch; text-shadow: 0 1px 12px rgba(0,0,0,.8); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { font: 500 12px/1 var(--mono); padding: 8px 12px; border: 1px solid rgba(143,208,255,.35); color: var(--data); border-radius: 999px; background: rgba(5,10,16,.45); }
[dir="rtl"] .tags li { font-family: var(--sans); font-size: 13px; }
.w-rail { position: absolute; inset-inline-end: var(--gut); top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.w-rail span { width: 3px; height: 34px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; position: relative; }
.w-rail span::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform: scaleY(var(--f, 0)); transform-origin: top; }
.w-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); display: flex; flex-direction: column; align-items: center; gap: 10px; }
[dir="rtl"] .w-hint { letter-spacing: 0; font-family: var(--sans); font-size: 13px; }
.w-hint span { width: 1px; height: 40px; background: linear-gradient(var(--ink), transparent); animation: hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 2. loop */
.loop { position: relative; background: var(--bg); }
.loop-in { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: 110px var(--gut) 80px; }
.loop-board { position: relative; border: 1px solid var(--line); border-radius: 24px; padding: 26px; background: linear-gradient(180deg, #0c0d10, #08090b); }
.loop-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; padding-inline-end: 86px; }
.loop-tabs li { font: 500 13px/1 var(--sans); padding: 9px 14px; border-radius: 999px; color: var(--mute); border: 1px solid var(--line); transition: all .3s; }
.loop-tabs li.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.loop-steps { display: grid; gap: 4px; position: relative; }
.ls { display: grid; grid-template-columns: 34px 112px 1fr; gap: 12px; align-items: center; padding: 14px 12px; border-radius: 12px; border: 1px solid transparent; transition: background .35s, border-color .35s; }
.ls.on { background: rgba(255,106,19,.07); border-color: rgba(255,106,19,.3); }
.ls-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 500 12px/1 var(--mono); border: 1px solid var(--line2); color: var(--mute); }
.ls.on .ls-n { background: var(--accent); border-color: var(--accent); color: #140700; }
.ls-t { font: 500 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
[dir="rtl"] .ls-t { font-family: var(--sans); letter-spacing: 0; font-size: 14px; }
.ls-v { font-size: 16px; color: var(--ink); min-height: 1.4em; }
.loop-ring { position: absolute; width: 74px; height: 74px; inset-inline-end: 22px; top: 18px; transform: rotate(-90deg); }
.loop-ring circle { fill: none; stroke: var(--line2); stroke-width: 5; }
.loop-ring .lr-p { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; }

/* ---------- 3. services: horizontal track */
.services { position: relative; background: var(--bg); }
.svc-in { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 110px 0 60px; overflow: clip; }
.svc-in .sec-head { padding: 0 var(--gut); margin-bottom: 44px; }
.svc-track { display: flex; gap: 20px; padding: 0 var(--gut); width: max-content; will-change: transform; }
.svc { width: clamp(290px, 27vw, 380px); min-height: 380px; border-radius: var(--r); padding: 26px; background: linear-gradient(160deg, #15161b 0%, #0b0c0f 70%); border: 1px solid var(--line); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.svc::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(255,106,19,.55), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7; pointer-events: none; }
.svc-top { display: flex; justify-content: space-between; align-items: center; }
.svc-n { font: 500 13px/1 var(--mono); color: var(--faint); }
.ic { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font: 400 34px/1.02 var(--display); margin-top: 40px; }
[dir="rtl"] .svc h3 { font-weight: 600; font-size: 27px; line-height: 1.25; }
.svc-line { color: var(--mute); margin-top: 10px; }
.svc ul { margin-top: auto; padding-top: 22px; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.svc li { font-size: 14.5px; color: #d6d4ce; padding-inline-start: 18px; position: relative; }
.svc li::before { content: ''; position: absolute; inset-inline-start: 0; top: .62em; width: 7px; height: 1.5px; background: var(--accent); }
.svc-bar { height: 2px; margin: 36px var(--gut) 0; background: var(--line); border-radius: 2px; overflow: hidden; }
.svc-bar span { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
[dir="rtl"] .svc-bar span { transform-origin: right; }

/* ---------- 4. lab: the arm, driven by scroll */
.lab { position: relative; height: calc(100svh + 180vh); background: #0d0e10; }
.lab-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.lab-frame { position: absolute; inset: 0; }
.lab-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: #0d0e10; touch-action: pan-y; opacity: 0; transition: opacity .8s; color-scheme: dark; }
.lab.live .lab-frame iframe { opacity: 1; }
.lab-load { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--mute); text-transform: uppercase; }
.lab.live .lab-load { display: none; }
.lab-copy { position: absolute; inset-inline-end: var(--gut); bottom: clamp(28px, 8vh, 80px); width: min(400px, 36vw); padding: 24px; border-radius: var(--r); background: rgba(10, 11, 13, .9); border: 1px solid var(--line); pointer-events: auto; }
[dir="rtl"] .lab-copy { inset-inline-end: auto; inset-inline-start: var(--gut); }
.lab-copy h2 { font-size: clamp(30px, 3vw, 44px); }
.lab-beats { position: relative; height: 92px; margin-top: 18px; }
.lbt { position: absolute; inset: 0; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; }
.lbt.on { opacity: 1; transform: none; }
.lbt b { display: block; font: 400 28px/1.1 var(--display); font-style: italic; color: var(--accent); }
[dir="rtl"] .lbt b { font-style: normal; font-weight: 600; font-size: 22px; }
.lbt span { display: block; color: #d6d4ce; margin-top: 6px; font-size: 15px; }
.lab-prog { height: 2px; background: var(--line); margin-top: 8px; }
.lab-prog span { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
[dir="rtl"] .lab-prog span { transform-origin: right; }
.lab-note { margin-top: 14px; font-size: 13px; color: var(--mute); }
.lab-note a { color: var(--ink); border-bottom: 1px solid var(--line2); }

/* ---------- 5. work ring (3D card ring; perspective on the ring's direct parent) */
.work { position: relative; height: calc(100svh + 240vh); background: radial-gradient(80% 60% at 50% 60%, #121318 0%, var(--bg) 70%); }
.work-stage { position: sticky; top: 0; height: 100svh; overflow: clip; display: flex; flex-direction: column; justify-content: center; padding-top: 80px; }
.work .sec-head h2 { font-size: clamp(34px, 5vw, 72px); }
.ring-view { position: relative; height: min(56vh, 460px); margin-top: 4vh; perspective: 1400px; perspective-origin: 50% 40%; }
.ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.rc { position: absolute; width: var(--cw, 290px); height: var(--ch, 380px); left: calc(var(--cw, 290px) / -2); top: calc(var(--ch, 380px) / -2); border-radius: 22px; transform-style: preserve-3d; will-change: transform; backface-visibility: hidden; }
.rc-in { position: absolute; inset: 0; border-radius: inherit; padding: 22px; background: linear-gradient(170deg, #1a1b21 0%, #0d0e11 75%); border: 1px solid var(--line2); display: flex; flex-direction: column; overflow: hidden; }
.rc-screen { position: relative; height: 46%; border-radius: 14px; background: radial-gradient(90% 90% at 30% 20%, rgba(255,106,19,.22), transparent 60%), #08090b; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.rc-screen .ic { width: 58px; height: 58px; }
.rc-screen i { position: absolute; left: 14px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); }
.rc-screen i:nth-of-type(1) { bottom: 32px; width: 46%; }
.rc-screen i:nth-of-type(2) { bottom: 20px; width: 30%; }
.rc-screen i:nth-of-type(3) { top: 14px; right: 14px; left: auto; width: 18%; background: rgba(255,106,19,.45); }
.rc-tag { margin-top: 18px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--data); }
[dir="rtl"] .rc-tag { font-family: var(--sans); letter-spacing: 0; font-size: 13px; }
.rc h3 { font: 400 30px/1.02 var(--display); margin-top: 10px; }
[dir="rtl"] .rc h3 { font-weight: 600; font-size: 23px; line-height: 1.25; }
.rc p:last-child { color: var(--mute); font-size: 14.5px; margin-top: 8px; }
.rc-shade { position: absolute; inset: 0; border-radius: inherit; background: #000; opacity: var(--shade, 0); pointer-events: none; }

/* ---------- 6. process */
.process { padding: clamp(90px, 14vh, 160px) var(--gut); border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 56px; counter-reset: s; }
.steps li { padding: 26px 22px 30px; border-top: 2px solid var(--line2); position: relative; }
.steps li::before { content: ''; position: absolute; top: -2px; inset-inline-start: 0; width: 44px; height: 2px; background: var(--accent); }
.pn { font: 500 12px/1 var(--mono); color: var(--accent); }
.steps h3 { font: 400 30px/1.05 var(--display); margin-top: 18px; }
[dir="rtl"] .steps h3 { font-weight: 600; font-size: 23px; line-height: 1.3; }
.steps p { color: var(--mute); margin-top: 10px; }

/* ---------- 7. contact: QR to WhatsApp on desktop, one-tap button on phones */
.contact { padding: clamp(40px, 8vh, 100px) var(--gut) clamp(90px, 14vh, 160px); }
.ct-card { display: grid; grid-template-columns: minmax(0, 1.25fr) auto; gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(28px, 4.4vw, 64px); border-radius: 30px; border: 1px solid var(--line2); background: radial-gradient(70% 120% at 100% 0%, rgba(37,211,102,.13), transparent 60%), radial-gradient(60% 100% at 0% 100%, rgba(255,106,19,.12), transparent 60%), #0b0c0f; }
.ct-person { display: flex; gap: 14px; align-items: center; margin-top: 28px; }
.av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #140700; font: 700 20px/1 var(--sans); }
.ct-person b { display: block; font-size: 17px; }
.ct-person small { display: block; color: var(--mute); font-size: 13px; }
.ct-tel { display: inline-block; font: 500 15px/1 var(--mono); margin-top: 6px; color: var(--ink); }
.ct-qr { margin: 0; text-align: center; }
.qr-frame { --scan-travel: calc(260px - 40px); position: relative; width: 260px; height: 260px; padding: 20px; border-radius: 24px; background: #fff; box-shadow: 0 30px 80px rgba(37,211,102,.18), 0 0 0 1px rgba(255,255,255,.2); overflow: hidden; }
.qr-frame img { width: 100%; height: 100%; }
.qr-logo { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 14px; background: var(--wa); display: grid; place-items: center; border: 4px solid #fff; }
.qr-logo .wa-ic { width: 28px; height: 28px; color: #fff; }
.scan { position: absolute; left: 12px; right: 12px; height: 2px; top: 20px; background: linear-gradient(90deg, transparent, var(--wa), transparent); box-shadow: 0 0 18px var(--wa); animation: scan 2.6s ease-in-out infinite; animation-play-state: paused; }
.ct-qr.qr-live .scan { animation-play-state: running; }
@keyframes scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(var(--scan-travel)); } }
.ct-qr figcaption { margin-top: 14px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
[dir="rtl"] .ct-qr figcaption { font-family: var(--sans); letter-spacing: 0; font-size: 13px; }
.touch .ct-qr, .touch .ct-web { display: none; }
.ct-call { display: none; }
.touch .ct-call { display: inline-flex; }

/* ---------- footer, fab */
.nt-foot { padding: 60px var(--gut) calc(60px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; color: #d6d4ce; font-size: 15px; }
.nt-foot .muted { color: var(--faint); font-size: 13px; }
.nt-foot .langs { justify-self: start; margin-top: 10px; }
.wa-fab { position: fixed; inset-inline-end: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.35); transform: scale(0); transition: transform .35s cubic-bezier(.2,1.4,.4,1); }
.wa-fab .wa-ic { width: 30px; height: 30px; }
.show-fab .wa-fab { transform: scale(1); }

/* ---------- reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.steps li:nth-child(2) { transition-delay: .08s; } .steps li:nth-child(3) { transition-delay: .16s; } .steps li:nth-child(4) { transition-delay: .24s; }

/* ---------- phone stage (Dar Mokha sticky stage + damped follower, from the approved pattern) */
.ms { position: relative; }
.ms-stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
.ms-fit { transform-origin: 50% 0; will-change: transform; }

/* ---------- responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .loop-in { grid-template-columns: 1fr; padding-top: 96px; align-content: center; gap: 28px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .nt-head { gap: 10px; padding-block: 10px; }
  .head-r { margin-inline-start: auto; gap: 8px; }
  .head-r .btn-wa span { display: none; }
  .head-r .btn-wa { width: 38px; padding: 0; justify-content: center; }
  .brand em { display: none; }
  .langs a { padding: 6px 8px; }
  .wb { bottom: 96px; }
  .w-rail { display: none; }
  .loop-in { padding: 84px var(--gut) 24px; gap: 18px; }
  .loop-in .lede { display: none; }
  .loop-board { padding: 16px; }
  .ls { grid-template-columns: 26px 1fr; gap: 4px 10px; padding: 10px; }
  .ls-n { width: 24px; height: 24px; grid-row: span 2; }
  .ls-v { font-size: 15px; }
  .loop-ring { width: 46px; height: 46px; top: 14px; inset-inline-end: 14px; }
  .loop-tabs { padding-inline-end: 54px; }
  .svc-in { padding: 84px 0 30px; }
  .svc-in .sec-head { margin-bottom: 24px; }
  .svc { width: 78vw; min-height: 340px; }
  .lab-copy { inset-inline: 16px; width: auto; bottom: 16px; padding: 18px; }
  [dir="rtl"] .lab-copy { inset-inline: 16px; }
  .lab-copy .kicker, .lab-note { display: none; }
  .lab-copy h2 { font-size: 26px; margin-top: 0; }
  .lab-beats { height: 78px; margin-top: 10px; }
  .lbt b { font-size: 22px; }
  .lbt span { font-size: 14px; }
  .ring-view { perspective: 900px; height: 52vh; }
  .rc { --cw: 210px; --ch: 300px; }
  .rc h3 { font-size: 24px; }
  .steps { grid-template-columns: 1fr; }
  .ct-card { grid-template-columns: 1fr; border-radius: 24px; }
  .ct-qr { justify-self: center; }
  .qr-frame { --scan-travel: calc(220px - 40px); width: 220px; height: 220px; }
  .btn { height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .w-hint span, .scan { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- loop backdrops: one full-bleed image per industry, cross-faded by loop.js (AEGIS pattern) */
.loop-in { position: relative; isolation: isolate; }
.loop-bgs { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.loop-bg { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.loop-bg.on { opacity: 1; }
.loop-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--k, 1.04)); will-change: transform; }
.loop-bg::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(5,5,6,.9) 0%, rgba(5,5,6,.62) 34%, rgba(5,5,6,.22) 62%, rgba(5,5,6,.38) 100%),
  linear-gradient(180deg, rgba(5,5,6,.75) 0%, transparent 18%, transparent 78%, rgba(5,5,6,.9) 100%); }
[dir="rtl"] .loop-bg::after { background:
  linear-gradient(270deg, rgba(5,5,6,.9) 0%, rgba(5,5,6,.62) 34%, rgba(5,5,6,.22) 62%, rgba(5,5,6,.38) 100%),
  linear-gradient(180deg, rgba(5,5,6,.75) 0%, transparent 18%, transparent 78%, rgba(5,5,6,.9) 100%); }
.loop-bg figcaption { position: absolute; z-index: 1; inset-inline-end: var(--gut); bottom: 22px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(242,240,235,.55); }
[dir="rtl"] .loop-bg figcaption { font-family: var(--sans); letter-spacing: 0; font-size: 12px; }
.loop-board { background: rgba(8, 9, 11, .8); box-shadow: 0 30px 80px rgba(0,0,0,.45); }

/* ---------- service demos: a small live UI on top of each card */
.svc { min-height: 520px; }
.svc-demo { position: relative; height: 176px; margin: -26px -26px 22px; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(120% 120% at 20% 0%, rgba(255,106,19,.10), transparent 55%), #0a0b0e; border-radius: var(--r) var(--r) 0 0; }
.svc-live { position: absolute; z-index: 3; top: 12px; inset-inline-start: 14px; display: inline-flex; align-items: center; gap: 7px; font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
[dir="rtl"] .svc-live { font-family: var(--sans); letter-spacing: 0; font-size: 11px; }
.svc-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 8px var(--wa); }
.svc-demo * { animation-play-state: paused !important; }
.svc.play .svc-demo * { animation-play-state: running !important; }
.d-cap { position: absolute; bottom: 8px; inset-inline-end: 12px; font: 500 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(242,240,235,.45); }
[dir="rtl"] .d-cap { font-family: var(--sans); letter-spacing: 0; font-size: 10px; }

/* 01 booking: slots fill up, the day closes itself, a WhatsApp confirmation lands */
.d-book { position: absolute; inset: 38px 14px 12px; }
.d-day { font: 500 11px/1 var(--mono); color: var(--ink); }
.d-slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 9px; }
.d-slots li { font: 500 10px/1 var(--mono); text-align: center; padding: 7px 0; border-radius: 7px; border: 1px solid var(--line2); color: var(--mute); animation: d-slot 8s calc(var(--i) * .55s) infinite both; }
@keyframes d-slot { 0%, 6% { background: transparent; color: var(--mute); border-color: var(--line2); } 9%, 88% { background: rgba(255,106,19,.18); color: var(--accent2); border-color: rgba(255,106,19,.5); } 96%, 100% { background: transparent; color: var(--mute); border-color: var(--line2); } }
.d-full { margin-top: 9px; font-size: 11px; color: var(--accent); opacity: 0; animation: d-show 8s 3.6s infinite both; }
.d-msg { position: absolute; bottom: 0; inset-inline-start: 0; inset-inline-end: 0; display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.35); font-size: 11.5px; color: #d9f7e5; opacity: 0; transform: translateY(8px); animation: d-pop 8s 1.4s infinite both; }
.d-msg .wa-ic { width: 15px; height: 15px; color: var(--wa); }
@keyframes d-show { 0%, 4% { opacity: 0; } 8%, 70% { opacity: 1; } 78%, 100% { opacity: 0; } }
@keyframes d-pop { 0%, 4% { opacity: 0; transform: translateY(8px); } 9%, 80% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: translateY(8px); } }

/* 02 QR menu: a real Arabic menu we built, scrolling on a phone, next to the table QR */
.d-menu { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 22px; padding-top: 18px; }
.d-browser { width: 62%; border-radius: 9px; border: 1px solid #2a2b31; background: #16171b; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.d-dots { display: block; height: 14px; background: radial-gradient(circle at 9px 7px, #ff5f57 2.5px, transparent 3px), radial-gradient(circle at 18px 7px, #febc2e 2.5px, transparent 3px), radial-gradient(circle at 27px 7px, #28c840 2.5px, transparent 3px); }
.d-screen { height: 112px; overflow: hidden; background: #000; }
.d-screen img { width: 100%; height: auto; display: block; animation: d-scroll 9s ease-in-out infinite alternate; }
@keyframes d-scroll { 0%, 12% { transform: translateY(0); } 88%, 100% { transform: translateY(-30%); } }
.d-qr { display: grid; justify-items: center; gap: 8px; font-size: 11px; color: var(--mute); text-align: center; max-width: 96px; }
.d-qr .ic { width: 56px; height: 56px; stroke: var(--ink); animation: d-pulse-ic 2.4s ease-in-out infinite; }
@keyframes d-pulse-ic { 50% { transform: scale(1.06); } }

/* 03 AI office: a typed question, a checked number with its sources */
.d-ask { position: absolute; inset: 40px 16px 12px; display: grid; align-content: start; gap: 6px; }
.d-q { font-size: 12.5px; color: var(--ink); display: flex; align-items: center; gap: 2px; min-height: 2.6em; }
.d-q span { clip-path: inset(0 100% 0 0); animation: d-type 7s steps(36, end) infinite; }
[dir="rtl"] .d-q span { animation-name: d-type-rtl; }
@keyframes d-type { 0% { clip-path: inset(0 100% 0 0); } 30%, 92% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 0); } }
@keyframes d-type-rtl { 0% { clip-path: inset(0 0 0 100%); } 30%, 92% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 0); } }
.d-caret { width: 2px; height: 1.1em; background: var(--accent); animation: d-blink 1s steps(1) infinite; flex: none; }
@keyframes d-blink { 50% { opacity: 0; } }
.d-a { font: 400 34px/1 var(--display); color: var(--ink); opacity: 0; animation: d-show 7s 2.3s infinite both; }
.d-src { font: 500 10.5px/1 var(--mono); color: var(--mute); opacity: 0; animation: d-show 7s 2.6s infinite both; }
.d-check { font-size: 11.5px; color: var(--wa); opacity: 0; animation: d-show 7s 3s infinite both; }

/* 04 private AI gateway: apps → one gate → models, with requests flowing through */
.d-gw { position: absolute; inset: 40px 12px 12px; display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 10px; align-items: center; direction: ltr; }
.d-gw ul { display: grid; gap: 5px; }
.d-gw li { font-size: 10.5px; padding: 6px 7px; border-radius: 7px; border: 1px solid var(--line2); color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-gates li { border-color: rgba(255,106,19,.45); color: var(--accent2); background: rgba(255,106,19,.08); }
.d-models li { border-color: rgba(143,208,255,.4); color: var(--data); }
[dir="rtl"] .d-gw li { direction: rtl; text-align: right; }
.d-pulse { position: absolute; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: d-flow 2.6s linear infinite; top: 30%; }
.d-pulse:nth-of-type(2) { top: 52%; animation-delay: .9s; }
.d-pulse:nth-of-type(3) { top: 74%; animation-delay: 1.7s; }
@keyframes d-flow { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateX(var(--w, 300px)); opacity: 0; } }

/* 05 monitoring: a falling battery curve, then a plain-language alert, then the watchdog */
.d-alerts { position: absolute; inset: 34px 14px 10px; }
.d-soc { position: absolute; inset: 0 0 auto 0; width: 100%; height: 56px; }
.d-soc path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: 100; animation: d-draw 8s ease-out infinite; vector-effect: non-scaling-stroke; }
@keyframes d-draw { 0% { stroke-dashoffset: 100; } 30%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.d-alert { position: absolute; inset-inline: 0; bottom: 46px; display: flex; gap: 8px; padding: 7px 9px; border-radius: 10px; background: #15161b; border: 1px solid var(--line2); font-size: 11px; line-height: 1.35; color: #d6d4ce; opacity: 0; transform: translateY(8px); animation: d-pop 8s 2.2s infinite both; }
.d-alert span { font: 500 10px/1.4 var(--mono); color: var(--accent2); flex: none; }
.d-alert p { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.d-watch { bottom: 0; animation-delay: 3.6s; }
.d-watch span { color: var(--data); }

/* 06 vision: detections on a packing line; the uncertain one goes to a person */
.d-vision { position: absolute; inset: 0; }
.d-vis-in { position: absolute; left: 0; right: 0; top: 50%; aspect-ratio: 800 / 474; transform: translateY(-50%); direction: ltr; }
.d-vis-in img { width: 100%; height: 100%; display: block; opacity: .9; }
.d-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--wa), transparent); opacity: .7; animation: d-scanline 3.5s linear infinite; }
@keyframes d-scanline { 0% { transform: translateY(0); } 100% { transform: translateY(220px); } }
.d-box { position: absolute; border: 1.5px solid var(--wa); border-radius: 4px; opacity: 0; animation: d-show 7s calc(.5s + var(--i) * .7s) infinite both; }
.d-box span { position: absolute; bottom: 100%; inset-inline-start: -1.5px; margin-bottom: 3px; padding: 2px 5px; border-radius: 3px; background: var(--wa); color: #04210f; font: 600 9px/1.3 var(--mono); white-space: nowrap; }
.d-box:nth-of-type(1) { left: 49%; top: 48%; width: 8%; height: 11%; }
.d-box:nth-of-type(2) { left: 62.5%; top: 52%; width: 11%; height: 13%; }
.d-box:nth-of-type(3) { left: 77.5%; top: 61%; width: 9%; height: 10%; border-color: #ffb347; border-style: dashed; }
.d-box:nth-of-type(3) span { inset-inline-start: auto; right: -1.5px; }
.d-box:nth-of-type(3) span { background: #ffb347; color: #2a1600; }

@media (max-width: 760px) {
  .svc { min-height: 470px; }
  .svc-demo { height: 156px; margin: -26px -26px 18px; }
  .loop-bg::after { background: linear-gradient(180deg, rgba(5,5,6,.92) 0%, rgba(5,5,6,.72) 45%, rgba(5,5,6,.9) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .svc-demo *, .svc-demo *::before { animation: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; stroke-dashoffset: 0 !important; }
  .d-pulse { display: none; }
}
.d-box:nth-of-type(2) span, .d-box:nth-of-type(3) span { bottom: auto; top: 100%; margin: 3px 0 0; }
