/* SCRUB-X — Coming soon "الموقع في العمليات" (approved design: ScrubX_Coming_Soon.html).
   Everything is scoped under body.sxo-page / .sxo to avoid clashes with the theme and plugins.
   Motion: CSS transforms/opacity/SVG strokes only; off for prefers-reduced-motion. */

/* ---------- page shell (neutralise theme layout on this template only) ---------- */
body.sxo-page {
	margin: 0;
	min-height: 100vh;
	min-height: 100svh;
	background: #1236a8;
	background-image: radial-gradient(ellipse at 15% 40%, #3b68ec77, transparent 56%), linear-gradient(130deg, #163cb6, #0a257d);
	color: #eff5ff;
	font-family: Alexandria, Tahoma, Arial, sans-serif;
	overflow-x: hidden;
}
body.sxo-page .wp-site-blocks { padding: 0 !important; }
body.sxo-page .wp-site-blocks > * { margin-block: 0 !important; }

.sxo {
	position: relative;
	isolation: isolate;
	min-height: 100vh;
	min-height: 100svh;
	color: #eff5ff;
	font-family: Alexandria, Tahoma, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	max-width: none !important;
	margin: 0 !important;
}
.sxo *, .sxo *::before, .sxo *::after { box-sizing: border-box; }
.sxo .is-layout-flow > *, .sxo .is-layout-constrained > * { margin-block: 0; max-width: none; }
.sxo p { margin: 0; }
.sxo a { color: inherit; text-decoration: none; }
.sxo button { font: inherit; cursor: pointer; }
.sxo a:focus-visible, .sxo button:focus-visible { outline: 3px solid #d6a630; outline-offset: 6px; }

/* drifting blueprint grid */
.sxo::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: .13;
	background-image: linear-gradient(#9abfff33 1px, transparent 1px), linear-gradient(90deg, #9abfff33 1px, transparent 1px);
	background-size: 68px 68px;
	animation: sxo-grid-drift 24s linear infinite;
}

/* ---------- header ---------- */
.sxo .sxo-header {
	height: 100px;
	margin: 0 5vw;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	border-bottom: 1px solid #b2cbff2b;
}
.sxo .sxo-brand { display: flex; gap: 14px; align-items: center; }
.sxo .sxo-logo { margin: 0; flex: none; }
.sxo .sxo-logo a { display: block; border-radius: 50%; }
.sxo .sxo-logo img { display: block; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.sxo .sxo-word { direction: ltr; text-align: left; }
.sxo .sxo-word-name { font-size: 26px; letter-spacing: 1px; font-weight: 700; line-height: 1; color: #f2f7ff; }
.sxo .sxo-word-tag { font-size: 7px; letter-spacing: 2px; margin-top: 5px; line-height: 1; color: #f2f7ff; }
.sxo .sxo-status { font-size: 12px; display: flex; align-items: center; gap: 9px; color: #d7e5ff; }
.sxo .sxo-status::before {
	content: "";
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #9ec8ff;
	box-shadow: 0 0 0 5px #a9d4ff16;
	animation: sxo-status-pulse 2s ease-out infinite;
}
.sxo .sxo-insta { direction: ltr; font-size: 12px; color: #d7e6ff; }
.sxo .sxo-insta a { display: inline-block; padding: 12px 0; }

/* ---------- main ---------- */
.sxo .sxo-main {
	display: grid;
	grid-template-columns: .92fr 1.08fr;
	align-items: center;
	gap: 4vw;
	max-width: 1560px;
	margin: auto;
	min-height: calc(100svh - 170px);
	padding: 35px 5vw;
}
.sxo .sxo-copy { padding: 15px 0 25px; min-width: 0; }
.sxo .sxo-eyebrow { font-size: 10px; letter-spacing: 2.5px; color: #abcfff; direction: ltr; text-align: right; font-weight: 600; }
.sxo .sxo-title {
	font-family: inherit;
	font-size: clamp(34px, 3.5vw, 62px);
	line-height: 1.6;
	font-weight: 600;
	letter-spacing: -2px;
	margin: 22px 0 20px;
	color: #f4f8ff;
}
.sxo .sxo-title mark { background: transparent; color: #9bc6ff; }
.sxo .sxo-desc { font-size: 15px; line-height: 2.25; color: #ceddff; max-width: 460px; }
.sxo .sxo-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.sxo .sxo-cta-wrap { margin: 0; display: block; }
.sxo .sxo-cta { margin: 0; }
.sxo .sxo-cta .wp-block-button__link {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 19px 23px;
	border-radius: 0;
	background: #b6d6ff;
	color: #0a2a7c;
	border: 1px solid #cde3ff;
	box-shadow: 0 6px 25px #071b5c26;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	transition: transform .2s, background .2s;
}
.sxo .sxo-cta .wp-block-button__link:hover { transform: translateY(-2px); background: #d0e6ff; }
.sxo .sxo-light-btn {
	border: 0;
	border-bottom: 1px solid #98b9f069;
	padding: 12px 0;
	background: none;
	color: #dfedff;
	font-size: 12px;
	min-height: 44px;
}
.sxo .sxo-sub { margin-top: 18px; font-size: 12px; line-height: 2; color: #a8c4f5; }
.sxo .sxo-features { display: flex; gap: 20px; margin-top: 40px; border-top: 1px solid #adc6ff30; padding-top: 23px; }
.sxo .sxo-features p { font-size: 11px; line-height: 2; color: #9fbdef; flex: 1; }
.sxo .sxo-features strong { font-size: 12px; display: inline-block; color: #e4eeff; font-weight: 500; }

/* ---------- scene ---------- */
.sxo .sxo-scene {
	position: relative;
	min-width: 0;
	direction: ltr;
	/* no frame: the scene sits directly on the page background */
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
}
.sxo .sxo-scene::after { /* soft moving aura, unclipped */
	content: "";
	position: absolute;
	width: 220px;
	height: 220px;
	background: radial-gradient(circle, #8fbcff1f, transparent 70%);
	border-radius: 50%;
	right: 4%;
	top: 12%;
	pointer-events: none;
	animation: sxo-room-aura 7s ease-in-out infinite;
}
.sxo .sxo-svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
	filter: saturate(.85);
	/* fade the ceiling arm in and the floor out, so nothing ends on a hard edge */
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 13%, #000 84%, transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0, #000 13%, #000 84%, transparent 100%);
}
.sxo .sxo-scene-label { display: flex; justify-content: flex-start; align-items: center; gap: 9px; color: #c9ddff; font-size: 9px; letter-spacing: 2px; margin: 0 0 -6px; opacity: .85; }
.sxo .sxo-scene-label i { width: 6px; height: 6px; background: #a9d1ff; border-radius: 50%; animation: sxo-status-pulse 2s ease-out infinite; }
.sxo .sxo-scene-footer { display: flex; justify-content: space-between; gap: 12px; color: #a9c4f3; font-size: 8px; letter-spacing: 1.6px; margin-top: -10px; opacity: .8; }

/* scene parts */
.sxo-scene .beam { transform-origin: 350px 130px; animation: sxo-light-sweep 6s ease-in-out infinite; opacity: .85; transition: opacity .5s; }
.sxo-scene.lights-off .beam { opacity: 0; animation-name: none; }
.sxo-scene.lights-off .bulb { fill: #8fa5cd; }
.sxo-scene.lights-off .lamp-glow { opacity: 0; }
.sxo-scene .operating-lamp { transform-box: fill-box; transform-origin: 50% 15%; animation: sxo-lamp-tilt 6s ease-in-out infinite; }
.sxo-scene .hand { transform-box: fill-box; transform-origin: 15% 15%; animation: sxo-stitch 1.9s ease-in-out infinite; }
.sxo-scene .hand2 { transform-box: fill-box; transform-origin: 85% 15%; animation: sxo-stitch 2.3s ease-in-out infinite reverse; }
.sxo-scene .monitor-line { stroke-dasharray: 370; stroke-dashoffset: 370; animation: sxo-ecg 2.4s linear infinite; }
.sxo-scene .website-cursor { animation: sxo-cursor 3.5s ease-in-out infinite; }
.sxo-scene .spark { animation: sxo-spark 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.sxo-scene .spark2 { animation-delay: 1.5s; }
.sxo-scene .breathing { animation: sxo-breathe 3s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.sxo-scene .shadow { opacity: .22; }
.sxo-scene .floating-cross { transform-box: fill-box; transform-origin: center; animation: sxo-cross-drift 5s ease-in-out infinite; }
.sxo-scene .floating-cross.second { animation-delay: -2.5s; }
.sxo-scene .glow-ring { animation: sxo-ring-spread 4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.sxo-scene .suture-thread { stroke-dasharray: 3 4; animation: sxo-thread-run 1.5s linear infinite; }

/* ---------- footer ---------- */
.sxo .sxo-footer {
	margin: 0 5vw;
	min-height: 70px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	border-top: 1px solid #b2cbff2b;
	color: #b1c8ee;
	font-size: 11px;
}
.sxo .sxo-footer-en { direction: ltr; font-size: 9px; letter-spacing: 1.6px; }

/* ---------- keyframes ---------- */
@keyframes sxo-stitch { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }
@keyframes sxo-ecg { 0% { stroke-dashoffset: 370; } 70%, 100% { stroke-dashoffset: 0; } }
@keyframes sxo-cursor { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(12px, -6px); } }
@keyframes sxo-spark { 0%, 30%, 100% { opacity: .2; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes sxo-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes sxo-grid-drift { to { background-position: 68px 68px; } }
@keyframes sxo-status-pulse { 0%, 100% { box-shadow: 0 0 0 3px #b8d9ff18; } 50% { box-shadow: 0 0 0 8px #b8d9ff00; } }
@keyframes sxo-light-sweep { 0%, 100% { transform: rotate(-7deg); opacity: .6; } 50% { transform: rotate(7deg); opacity: 1; } }
@keyframes sxo-lamp-tilt { 0%, 100% { rotate: -2deg; } 50% { rotate: 2deg; } }
@keyframes sxo-cross-drift { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-11px) rotate(15deg); } }
@keyframes sxo-ring-spread { 0% { transform: scale(.8); opacity: .2; } 90%, 100% { transform: scale(1.4); opacity: 0; } }
@keyframes sxo-thread-run { to { stroke-dashoffset: -14; } }
@keyframes sxo-room-aura { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(100px) scale(1.5); } }

/* ---------- ≤1000px ---------- */
@media (max-width: 1000px) {
	.sxo .sxo-main { gap: 3vw; padding: 35px 4vw; }
	.sxo .sxo-header, .sxo .sxo-footer { margin: 0 4vw; }
	.sxo .sxo-title { font-size: clamp(30px, 3.6vw, 40px); letter-spacing: -1px; }
	.sxo .sxo-desc { font-size: 13px; }
	.sxo .sxo-features { gap: 8px; }
	.sxo .sxo-features strong { font-size: 10px; }
	.sxo .sxo-cta .wp-block-button__link { font-size: 11px; padding: 17px; }
	.sxo .sxo-actions { gap: 14px; }
	.sxo .sxo-scene-label { font-size: 8px; }
	.sxo .sxo-scene-footer { font-size: 7px; }
}

/* ---------- ≤700px: title → scene → copy ---------- */
@media (max-width: 700px) {
	.sxo .sxo-header { height: 83px; margin: 0 6vw; }
	.sxo .sxo-word-name { font-size: 22px; }
	.sxo .sxo-word-tag { font-size: 6px; }
	.sxo .sxo-brand { gap: 10px; }
	.sxo .sxo-logo img { width: 42px; height: 42px; }
	.sxo .sxo-insta { display: none; }
	.sxo .sxo-status { font-size: 10px; gap: 7px; }
	.sxo .sxo-main { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 30px 6vw 28px; min-height: 0; }
	.sxo .sxo-copy { display: contents; }
	.sxo .sxo-eyebrow { order: 0; font-size: 9px; letter-spacing: 2px; }
	.sxo .sxo-title { order: 1; font-size: clamp(29px, 8.2vw, 43px); margin: 0 0 6px; line-height: 1.65; letter-spacing: -1px; }
	.sxo .sxo-scene { order: 2; margin: 0 -6vw; }
	.sxo .sxo-desc { order: 3; margin-top: 8px; font-size: 13px; line-height: 2.2; }
	.sxo .sxo-actions { order: 4; margin-top: 6px; gap: 20px; }
	.sxo .sxo-sub { order: 5; margin: 0; font-size: 11px; }
	.sxo .sxo-features { order: 6; margin-top: 10px; padding-top: 19px; }
	.sxo .sxo-features p { font-size: 10px; }
	.sxo .sxo-features strong { font-size: 11px; }
	.sxo .sxo-cta .wp-block-button__link { font-size: 12px; padding: 18px; }
	.sxo .sxo-light-btn { font-size: 11px; }
	.sxo .sxo-scene-label, .sxo .sxo-scene-footer { padding: 0 6vw; font-size: 7px; }
	.sxo .sxo-footer { margin: 0 6vw; padding: 22px 0; flex-direction: column; gap: 12px; font-size: 10px; text-align: center; }
	.sxo .sxo-footer-en { font-size: 7px; }
}

/* ---------- reduced motion: complete, static scene ---------- */
@media (prefers-reduced-motion: reduce) {
	.sxo *, .sxo::before, .sxo *::before, .sxo *::after { animation: none !important; transition: none !important; }
	.sxo-scene .monitor-line { stroke-dashoffset: 0; }
}
