/* تطوير الآيباد على الرف: يبقى التصميم الأصلي كما هو، ويصير الجهاز جزءًا من الصورة */

/* مطابقة ألوان الصورة: سواد دافئ غير مطلق، وتباين أهدأ كما تلتقطه العدسة */
.ipad-pro {
  box-shadow: none;
  transform: translateX(-50%) perspective(1600px) rotateX(2.5deg);
  transform-origin: 50% 100%;
  filter: sepia(.12) saturate(.94) contrast(.92) brightness(1.03);
}
.project-muallaqat .ipad-pro { box-shadow: none; }

/* ظلّ جهاز مسنود إلى الجدار: ملاصق عند القاعدة، ويتّسع كلما ارتفع، في عكس جهة الضوء */
.lean {
  position: absolute; inset: 1% 0 0; z-index: -1; border-radius: 4.5% / 5.8%;
  background: rgb(46 30 12 / .62); filter: blur(9px);
  transform-origin: 50% 100%; transform: translateX(1.2%) skewX(-6deg);
  pointer-events: none;
}
.project-muallaqat .lean { background: rgb(6 14 8 / .7); transform: translateX(-1.2%) skewX(6deg); }
.project-muallaqat .hardware { transform: scaleX(-1); } /* ضوء المشهد الأخضر من اليمين */

/* ظلّ التلامس على سطح الرف */
.ipad-pro::before {
  content: ""; position: absolute; z-index: -1; left: 2%; right: 2%; bottom: -1.4%; height: 3%;
  border-radius: 50%; background: rgb(20 12 4 / .7); filter: blur(3px); pointer-events: none;
}
/* حبيبات الصورة نفسها فوق الجهاز، كي لا يبدو أنعم من المشهد */
.ipad-pro::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: 4.4% / 5.75%;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay; opacity: .16;
}

/* الشاشة بمقاسات iPad Pro 13: إطار ٨٫٤ مم حول شاشة ٢٦٤٫٨ × ١٩٨٫٧ مم */
.glass { height: 92.2042%; border-radius: 2.2659% / 3.0196%; background: #fbf8f1; }
.glass::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .55), inset 0 0 14px rgb(0 0 0 / .18);
}

/* الشاشة يتصفّحها الزائر بيده: عجلة الفأرة أو إصبعه، وحين تبلغ آخرها يكمل تمرير الصفحة */
.live { position: absolute; inset: 0; display: flex; flex-direction: column; }
.glass .live img { height: auto; object-fit: fill; }
.live-head { position: relative; z-index: 1; width: 100%; flex: none; }
.live-view { position: relative; flex: 1; overflow-y: auto; overscroll-behavior-y: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.live-view::-webkit-scrollbar { display: none; }
.live-body { width: 100%; }

@media (max-width: 760px) { .lean { filter: blur(6px); } }
