/* ═══════════════════════════════════════════════════════════
   المناطق: لون أرض كل منطقة، شكل طريقها، ومشهدها
   المشاهد مرسومة داخل صندوق (.scene) بوحدات cqw / cqh = نسبة من عرض وارتفاع الصندوق نفسه.
   ═══════════════════════════════════════════════════════════ */

/* ───────────── ألوان الأرض والطريق ───────────── */

/* خامات مرسومة للأرض، وكل أرض = طبقة لون فوق خامتها.
   الرمل والبحر بينضربوا بلون قسمهم (multiply)، والباقي طبقة شفافة عادية بتهدّي الخامة تحت النص.
   أطوال التكرار (240، 480، 960) كلها بتقسم PERIOD في road.js */
:root {
  --tile: 480px; /* طول تكرار الرمل والبحر والربيع وسطح المكتب */
  --sand: url("../assets/art/real/ground-sand.webp");
  --sea: url("../assets/art/real/ground-sea.webp");
  --meadow: url("../assets/art/real/ground-spring.webp"); /* ربيع الصحرا: عشب وزهور بري */
  --lab: url("../assets/art/real/ground-lab.webp"); /* أرضية المختبر: بلاطتين × بلاطتين (تكرارها 240) */
  --pave: url("../assets/art/real/ground-pavement.webp"); /* رصيف حي الأعمال وقت المغرب (4 نسخ معكوسة: تكرارها 960) */
  --desk: url("../assets/art/real/ground-desk.webp"); /* سطح مكتب المبرمج: لبّاد غامق */
  --stage: url("../assets/art/real/ground-stage.webp"); /* خشبة مسرح: 4 ألواح سودا بضو بنفسجي */
  --hall: url("../assets/art/real/ground-hall.webp"); /* باركيه خشب غامق (بلاطة 900×800: عرضها 360 وطولها 320) */
  --g-hero: linear-gradient(#FFF6E4, #FFF6E4), var(--sand);
  --g-madinah: linear-gradient(rgb(255 252 214 / .08), rgb(255 252 214 / .08)), var(--meadow);
  --g-beach: linear-gradient(rgb(252 240 214 / .6), rgb(252 240 214 / .6)), var(--sand); /* رمل شاطئ فاتح: آخر أرض المدينة وحافة كاوست (طبقة عادية، مش ضرب) */
  --g-kaust: linear-gradient(#A6D3D8, #A6D3D8), var(--sea);
  --g-eeg: linear-gradient(rgb(18 22 70 / .28), rgb(18 22 70 / .28)), var(--lab);
  --g-aila: linear-gradient(rgb(18 20 34 / .24), rgb(18 20 34 / .24)), var(--pave);
  --g-projects: linear-gradient(rgb(20 20 24 / .1), rgb(20 20 24 / .1)), var(--desk);
  --g-hack: linear-gradient(rgb(26 8 44 / .12), rgb(26 8 44 / .12)), var(--stage);
  --g-board: linear-gradient(rgb(12 6 3 / .34), rgb(12 6 3 / .34)), var(--hall);
  --g-contact: linear-gradient(#FFBFA6, #FFBFA6), var(--sand);
  --sand-road: rgb(255 240 212 / .5); /* درب مدعوس: أفتح من الرمل وخامته باينة من تحته */
  --sand-shade: drop-shadow(0 0 5px rgb(110 56 10 / .5));
}

/* --ts طول تكرار خامة الأرض و--tb دمج طبقة لونها؛ --prev-* نفس الشي لأرض المنطقة السابقة (بتعبّي الحافة المتموجة) */
.z-hero { --ground: #E8B963; --bg-img: var(--g-hero); --fg: #2B1A12; --accent: #C8401F; --road: var(--sand-road); --road-2: rgb(120 66 20 / .4); --road-shade: var(--sand-shade); }
.z-madinah { --ground: #84A32E; --bg-img: var(--g-madinah); --tb: normal; --prev: #E8B963; --prev-img: var(--g-hero); --fg: #1C1705; --accent: #7A2410; --road: var(--sand-road); --road-2: rgb(110 54 12 / .42); --road-shade: var(--sand-shade); }
.z-kaust { --ground: #1C7480; --bg-img: var(--g-kaust); --prev: #ECD6AC; --prev-img: var(--g-beach); --prev-tb: normal; --cap-edge: drop-shadow(0 3px 0 rgb(255 255 255 / .85)) drop-shadow(0 9px 8px rgb(255 255 255 / .4)); --road-shade: drop-shadow(4px 7px 5px rgb(0 30 40 / .5)); --fg: #F3FBF7; --accent: #FFB65C; --kick: #0E3F47; --bc: #F2603C; --road: #C9A26E; --road-2: rgb(60 38 16 / .6); }
.z-eeg { --ground: #0C2748; --bg-img: var(--g-eeg); --ts: 240px; --tb: normal; --prev: #444853; --prev-img: var(--g-aila); --prev-ts: 960px; --prev-tb: normal; --fg: var(--cream); --accent: var(--mint); --kick: #0C2748; --road: #0A0E2C; }
.z-hack { --ground: #2A1140; --bg-img: var(--g-hack); --tb: normal; --prev: #303136; --prev-img: var(--g-projects); --prev-tb: normal; --fg: var(--cream); --accent: var(--saffron); --kick: #2A1140; --road: #C8402A; }
/* AILA: حي أعمال حقيقي وقت المغرب */
.z-aila { --ground: #444853; --bg-img: var(--g-aila); --ts: 960px; --tb: normal; --prev: #1C7480; --prev-img: var(--g-kaust); --fg: var(--cream); --accent: var(--saffron); --kick: #2B303A; --road: #10143F; }
/* المشاريع: سطح مكتب مبرمج */
.z-projects { --ground: #303136; --bg-img: var(--g-projects); --tb: normal; --prev: #0C2748; --prev-img: var(--g-eeg); --prev-ts: 240px; --prev-tb: normal; --fg: var(--cream); --accent: var(--coral); --kick: #303136; --road: #E9DFC8; --road-2: rgb(29 27 26 / .5); }
.z-board { --ground: #2A170E; --bg-img: var(--g-board); --ts: 360px; --tb: normal; --prev: #2A1140; --prev-img: var(--g-hack); --prev-tb: normal; --fg: var(--cream); --accent: var(--saffron); --kick: #1D1A18; --road: #3A332E; --road-2: rgb(255 240 210 / .45); }
.z-contact { --ground: #E08A4C; --bg-img: var(--g-contact); --prev: #2A170E; --prev-img: var(--g-board); --prev-ts: 360px; --prev-tb: normal; --fg: #2B1A12; --accent: #B5301A; --road: var(--sand-road); --road-2: rgb(120 56 20 / .42); --road-shade: var(--sand-shade); }

/* ملمس الأرض */
.z-hero .land, .z-madinah .land, .z-kaust .land, .z-aila .land, .z-eeg .land, .z-projects .land, .z-hack .land, .z-board .land, .z-contact .land {
  background-image: var(--bg-img);
  background-size: auto, var(--ts, var(--tile)); /* عرض البلاطة، وطولها بنسبة الصورة */
  background-blend-mode: var(--tb, multiply), normal;
}
/* البحر: طبقة لون فوق الموج تهدّي تباينه، عشان النص الفاتح ينقرأ فوقه */
.z-kaust .land {
  background-image: linear-gradient(rgb(12 82 96 / .42), rgb(12 82 96 / .42)), var(--bg-img);
  background-size: auto, auto, var(--tile) var(--tile); background-blend-mode: normal, multiply, normal;
}
/* أول أرض المدينة: رمل قسم البداية بيكمّل لجوّاها وبيخفّ تدريجياً لحد ما يصير عشب، بدل ما تنقلب خضرا فجأة.
   نفس خامة ولون وإزاحة الحافة المتموجة اللي فوقها (--prev-off من road.js)، فما بيبيّن خط بينهم */
.z-madinah .land::before {
  content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background-image: var(--g-hero); background-size: auto, var(--tile) var(--tile); background-blend-mode: multiply, normal;
  background-position: 0 var(--prev-off, 0px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 9lvh, transparent 42lvh);
  mask-image: linear-gradient(to bottom, #000 0, #000 9lvh, transparent 42lvh);
}
/* آخر أرض المدينة بيرجع رمل (شاطئ كاوست): طبقة رمل فوق العشب بتظهر تدريجياً بآخر الأرض */
.z-madinah .land::after {
  content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background-image: var(--g-beach); background-size: auto, var(--tile) var(--tile);
  -webkit-mask-image: linear-gradient(to bottom, transparent calc(100% - 31lvh), #000 calc(100% - 15lvh));
  mask-image: linear-gradient(to bottom, transparent calc(100% - 31lvh), #000 calc(100% - 15lvh));
}
.z-kaust .copy { text-shadow: 0 1px 10px rgb(0 44 56 / .75); }
.z-hero .copy, .z-contact .copy { text-shadow: 0 0 14px rgb(255 226 170 / .55); }
/* العشب المزهّر خامة مشغولة: هالة فاتحة أقوى حول الحروف عشان النص الصغير ينقرأ */
.z-madinah .copy { text-shadow: 0 0 5px rgb(246 255 206 / .95), 0 0 12px rgb(246 255 206 / .9), 0 0 24px rgb(246 255 206 / .7); }
.z-madinah .copy :is(.lede, .facts, li, p) { font-weight: 600; }
.z-aila .copy, .z-eeg .copy { text-shadow: 0 1px 10px rgb(4 10 34 / .8); }
.z-projects .copy { text-shadow: 0 1px 10px rgb(0 0 0 / .65); }

/* شكل الطريق في كل منطقة */
/* ظل الطريق المرسوم على أرضه (وهالة ضو خفيفة حول الممرات المضوية) */
.z-hero, .z-contact { --road-art-shade: drop-shadow(1px 3px 2px rgb(70 30 0 / .42)); }
.z-madinah { --road-art-shade: drop-shadow(1px 3px 2px rgb(30 40 0 / .5)); }
.z-kaust { --road-art-shade: drop-shadow(4px 7px 5px rgb(0 30 40 / .5)); }
.z-aila { --road-art-shade: drop-shadow(0 4px 6px rgb(0 0 0 / .45)); }
.z-eeg { --road-art-shade: drop-shadow(0 4px 6px rgb(0 6 26 / .6)) drop-shadow(0 0 8px rgb(125 226 195 / .2)); }
.z-projects { --road-art-shade: drop-shadow(2px 5px 4px rgb(0 0 0 / .55)); }
.z-hack, .z-board { --road-art-shade: drop-shadow(0 4px 6px rgb(0 0 0 / .5)); }

/* شكل الطريق حسب نوع سطحه (data-surface في road.js)، مش حسب المنطقة:
   قطعة من طريق المنطقة السابقة بتكمل داخل المنطقة الجديدة لحد حافة الأرض، وهناك بيتغيّر السطح */
[data-surface="sand"] .road__base { stroke: rgb(255 240 212 / .5); stroke-width: var(--rw); filter: drop-shadow(0 0 5px rgb(110 56 10 / .5)); } /* درب مدعوس */
[data-surface="sand"] .road__detail { stroke: rgb(115 60 16 / .4); stroke-width: 4px; stroke-dasharray: 1 18; stroke-linecap: round; }

[data-surface="pier"] .road__under { display: inline; stroke: #5A3D22; stroke-width: calc(var(--rw) + 8px); filter: drop-shadow(4px 7px 5px rgb(0 30 40 / .5)); } /* عوارض جانبية وظل على المي */
[data-surface="pier"] .road__base { stroke: #C39A63; stroke-width: var(--rw); }
[data-surface="pier"] .road__detail { stroke: rgb(70 44 18 / .6); stroke-width: var(--rw); stroke-dasharray: 2.5 11.5; } /* فواصل الألواح */

[data-surface="grate"] .road__base { stroke: #0A0E2C; stroke-width: 10px; stroke-linecap: round; } /* سلك إشارة */
[data-surface="grate"] .road__detail { stroke: var(--mint); stroke-width: 3px; stroke-dasharray: 14 22; stroke-linecap: round; animation: road-flow 1.2s linear infinite; filter: drop-shadow(0 0 5px var(--mint)); }

[data-surface="carpet"] .road__under { display: inline; stroke: #E3B043; stroke-width: calc(var(--rw) + 7px); filter: drop-shadow(0 4px 6px rgb(0 0 0 / .45)); } /* حافة ذهبية */
[data-surface="carpet"] .road__base { stroke: #B5301C; stroke-width: var(--rw); } /* سجادة حمراء */
[data-surface="carpet"] .road__detail { stroke: rgb(255 255 255 / .09); stroke-width: calc(var(--rw) * .46); stroke-dasharray: none; }

[data-surface="asphalt"] { --rw: 62px; } /* شارع زفلت: رصيف من الجهتين وخط منقّط بالنص */
@media (max-aspect-ratio: 1/1) { [data-surface="asphalt"] { --rw: 42px; } }
[data-surface="asphalt"] .road__under { display: inline; stroke: #A7ABAE; stroke-width: calc(var(--rw) + 10px); filter: drop-shadow(0 3px 5px rgb(0 0 0 / .45)); }
[data-surface="asphalt"] .road__base { stroke: #3A3E44; stroke-width: var(--rw); }
[data-surface="asphalt"] .road__detail { stroke: #F3F1E8; stroke-width: 3px; stroke-dasharray: 16 18; }

[data-surface="keys"] .road__base { stroke: #E9DFC8; stroke-width: var(--rw); stroke-dasharray: 26 5; } /* صف أزرار */

[data-surface="runner"] .road__base { stroke: #C9995E; stroke-width: var(--rw); } /* سجادة ممر محبوكة */
[data-surface="runner"] .road__detail { stroke: rgb(90 50 20 / .5); stroke-width: 3px; stroke-dasharray: 2 10; stroke-linecap: round; }

/* الوصلات: عارضة خشب عند أول وآخر الممشى، وقضيب ذهبي عند طرفي السجادة */
.road__joint { stroke-linecap: round; }
.road__joint[data-to="asphalt"], .road__joint[data-from="asphalt"] { display: inline; stroke: #A7ABAE; stroke-width: 7px; } /* حجر رصيف */
.road__joint[data-to="grate"], .road__joint[data-from="grate"] { display: inline; stroke: #2B4058; stroke-width: 7px; } /* عتبة معدنية */
.road__joint[data-to="pier"], .road__joint[data-from="pier"] { display: inline; stroke: #4E341C; stroke-width: 8px; }
.road__joint[data-to="carpet"], .road__joint[data-from="carpet"] { display: inline; stroke: #E3B043; stroke-width: 6px; }
@keyframes road-flow { to { stroke-dashoffset: -36; } }
/* ممشى المختبر: الشريط المرسوم تحت، وفوقه نبضة إشارة ماشية على طول الممشى */
.road__seg[data-surface="grate"][data-strip] { display: inline; }
.road__seg[data-surface="grate"][data-strip] .road__base { display: none; }
.road__seg[data-surface="grate"][data-strip] .road__detail { stroke-width: 2.5px; stroke-dasharray: 12 58; opacity: .9; animation: road-pulse 1.6s linear infinite; }
@keyframes road-pulse { to { stroke-dashoffset: -70; } }

/* ═══════════ 00 · بداية الطريق ═══════════ */

/* أفق أول الصفحة: سما وشمس طالعة فوق يسار (نفس اتجاه كل ظلال الموقع) وجبال بعيدة، وأسفل الصورة بيذوب برمل الأرض.
   نسختين من نفس الصورة (<picture> في index.html): للشاشات العريضة نسخة سماها مضغوطة عمودياً فوق الشمس،
   لأن الشريط الظاهر هناك واطي وعريض وما كان يبيّن منه غير البرتقالي؛ وللطولية الصورة مثل ما هي.
   أرقام كل نسخة بثلاث متغيرات (بيطبعها `art.py sky` عند تجهيز الشريط):
   --sky-ratio عرضها ÷ ارتفاعها، --sky-hz مكان خط الأفق من ارتفاعها، --sky-sun مكان الشمس من عرضها.
   --sky-h ارتفاع الصورة: على عرض الشاشة، أو على قد ما يلزم ليوصل أعلاها لأعلى الشاشة (وقتها بتنقصّ من الجوانب والشمس بتضل ظاهرة) */
.sky {
  --sky-ratio: 2.7429; --sky-hz: .5804; --sky-sun: .2472;
  --horizon: 38svh; /* مكان خط الأفق على الشاشة */
  --sun-x: 24vw; /* وين بتوقع الشمس أفقياً لما الصورة أعرض من الشاشة */
  --sky-h: max(var(--horizon) / var(--sky-hz), 100vw / var(--sky-ratio));
  --sky-w: calc(var(--sky-h) * var(--sky-ratio));
  position: absolute; z-index: 1; inset: 0 0 auto 0;
  block-size: calc(var(--horizon) + var(--sky-h) * (1 - var(--sky-hz)));
  overflow: hidden; pointer-events: none;
}
.sky img {
  position: absolute; top: calc(var(--horizon) - var(--sky-h) * var(--sky-hz));
  left: max(100vw - var(--sky-w), min(0px, var(--sun-x) - var(--sky-w) * var(--sky-sun))); /* بدون فراغ على أي طرف */
  block-size: var(--sky-h); inline-size: auto; max-inline-size: none;
  user-select: none;
}
/* الشاشات الطولية (الجوال): الصورة الأصلية بأرقامها، معتمدة من كريم كما هي. النص ماخذ الوسط عند خط الأفق، فالشمس بتروح للطرف الفاضي */
@media (max-aspect-ratio: 1/1) {
  .sky { --sky-ratio: 1.8871; --sky-hz: .6643; --sky-sun: .2307; --horizon: 31svh; --sun-x: 15vw; }
}

.hero__copy { animation: none; }
.hero__hi { font-size: clamp(1rem, min(3.4cqi, 3.4svh), 1.9rem); font-weight: 500; animation: rise-in .8s .25s cubic-bezier(.2, .8, .2, 1) both; }
.hero__name {
  margin-block: .04em .12em;
  font-size: clamp(4rem, min(30cqi, 30svh), 20rem); font-weight: 900; line-height: 1.02;
  animation: name-in 1s .35s cubic-bezier(.2, .8, .2, 1) both;
}
html[lang="en"] .hero__name { margin-block: .02em .1em; font-size: clamp(3.6rem, min(24cqi, 25svh), 17rem); line-height: .92; letter-spacing: -.045em; }
.hero__role {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5em 1em;
  font-size: clamp(.85rem, min(2.4cqi, 2.4svh), 1.3rem);
  animation: rise-in .8s .75s cubic-bezier(.2, .8, .2, 1) both;
}
.hero__role b { padding: .45em 1.05em; border-radius: 999px; background: var(--fg); color: #FCE7CF; font-weight: 700; }
.hero__role span { font-weight: 500; opacity: .82; }
.hero__line {
  margin-top: .9em; max-inline-size: 26em;
  font-size: clamp(.9rem, min(2.5cqi, 2.5svh), 1.35rem); font-weight: 500; line-height: 1.7;
  animation: rise-in .8s .9s cubic-bezier(.2, .8, .2, 1) both;
}
.sc-hero .compass {
  position: absolute; inset-inline-end: 3cqw; bottom: 2cqh;
  inline-size: min(88cqh, 34cqw); aspect-ratio: 1;
  color: var(--fg); opacity: .85;
}
.compass__needle { transform-origin: 100px 100px; transform: rotate(calc(var(--p, 0) * 200deg - 24deg)); }
.sc-hero .palm { inset-inline-start: 30cqw; bottom: -2cqh; block-size: min(104cqh, 40cqw); }
.sc-hero .shrub { inset-inline-start: 48cqw; bottom: -1cqh; block-size: 22cqh; }
.hint {
  position: absolute; z-index: 20; inset-inline-start: calc(var(--strip) + 1vw); bottom: 3svh;
  display: inline-flex; align-items: center; gap: .7em;
  font-size: .9rem; font-weight: 700; white-space: nowrap;
  opacity: calc(1 - var(--p, 0) * 3);
  animation: rise-in .8s 1.4s cubic-bezier(.2, .8, .2, 1) both;
}
.hint svg { animation: nudge 1.5s ease-in-out infinite; }
@keyframes nudge { 50% { translate: 0 6px; } }
@keyframes rise-in { from { opacity: 0; translate: 0 26px; } }
@keyframes name-in { from { opacity: 0; translate: 0 .16em; } }
.is-loading .z-hero * { animation-play-state: paused !important; }

/* ═══════════ 01 · المدينة والجامعة ═══════════ */

.sc-madinah .plate { position: absolute; inset-inline: -4cqw; bottom: 1cqh; block-size: 12cqh; border-radius: 50%; background: rgb(70 36 10 / .26); filter: blur(10px); }
.sc-madinah .full { bottom: 6cqh; left: 50%; translate: -50% 0; inline-size: 108cqw; block-size: auto; max-inline-size: none; }
.sc-madinah .full--compact { display: none; }
.sc-madinah .note { inset-inline-start: 1cqw; top: 0; }

/* وثيقة التخرج الحقيقية: مايلة، فوق طرف البوابة الجانبي. زاويتها السفلى ورا المباني وطرفها الثاني ورا أعلى البوابة،
   وبتطلع من وراهم مع السكرول. بالعربي على اليسار ومايلة عكس عقارب الساعة، وبالإنجليزي معكوسة */
.cert {
  --cw: min(41cqw, 70cqh);
  position: absolute; z-index: 1; left: 50%;
  translate: calc(-50% + var(--dirx, 1) * 17cqw) 0;
  bottom: calc(6cqh + 108cqw / 4.177 - var(--cw) * .24);
  inline-size: var(--cw);
  rotate: calc(var(--dirx, 1) * 10deg);
  font-size: clamp(7px, calc(var(--cw) / 24), 17px);
}
.cert__img {
  display: block; inline-size: 100%; block-size: auto; border-radius: 3px;
  box-shadow: 0 14px 34px rgb(60 30 0 / .4), 0 0 0 1px rgb(130 96 40 / .3);
}
.cert__sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
.sc-madinah .full { z-index: 3; }
.a-cert { opacity: min(1, calc(var(--t, 1) * 4)); transform: translateY(calc((1 - var(--t, 1)) * 44cqh)); }
.stamp {
  position: absolute; inset-inline-start: -11%; top: -22%;
  inline-size: 31%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center; line-height: 1.15;
  color: var(--coral);
  border: 3px double currentColor; outline: 2px solid currentColor; outline-offset: 3px;
  background: rgb(255 253 246 / .88);
}
.stamp b { font: 900 2.1em/1 var(--font); }
.stamp span { font-size: .64em; font-weight: 700; }
.stamp em { margin-top: .25em; font-style: normal; font-size: .66em; font-weight: 800; }
.a-stamp { opacity: min(1, calc(var(--t, 1) * 5)); transform: rotate(calc(var(--dirx, 1) * -4deg)) scale(calc(2.6 - 1.6 * var(--t, 1))); } /* الوثيقة نفسها مايلة، فالختم بيطلع مايل معها */

/* ═══════════ 02 · KAUST ═══════════ */

/* المنطقة كلها بحر، والحرم واقف على لسان رمل */
.sc-kaust .shore {
  position: absolute; inset-inline: -8cqw 16cqw; bottom: -6cqh; block-size: 30cqh;
  border-radius: 46% 54% 0 0 / 70% 82% 0 0;
  background: linear-gradient(#FFEFD6, #FFEFD6), var(--sand); background-size: auto, 300px 300px; background-blend-mode: multiply, normal;
  box-shadow: 0 -4px 0 rgb(255 255 255 / .8), 0 -12px 10px rgb(255 255 255 / .28); /* زبد على حافة اللسان */
}
.obj { position: absolute; block-size: var(--h); }
.obj img { display: block; block-size: 100%; inline-size: auto; max-inline-size: none; pointer-events: none; user-select: none; }
.obj--campus { --h: min(36cqh, 20cqw); bottom: 17cqh; inset-inline-start: 0; }
.obj--tower { --h: min(90cqh, 64cqw); bottom: 15cqh; inset-inline-start: 55cqw; }
.obj--boat { --h: 26cqh; bottom: 3cqh; inset-inline-end: 2cqw; animation: bob 3.6s ease-in-out infinite alternate; }
.obj--bird { --h: 10cqh; top: 2cqh; inset-inline-end: 6cqw; animation: bob 2.6s ease-in-out infinite alternate; }
@keyframes bob { to { translate: 0 -1.1svh; } }

/* مربّع الاكتشاف */
.box { position: absolute; inset: var(--bi, 0); pointer-events: none; }
.box::before {
  content: ""; position: absolute; inset: 0;
  border: 2.5px solid var(--bc, var(--accent)); border-radius: 4px;
  clip-path: inset(0 calc((1 - var(--t, 0)) * 100%) 0 0);
}
[dir="rtl"] .box::before { clip-path: inset(0 0 0 calc((1 - var(--t, 0)) * 100%)); }
.box__label {
  position: absolute; inset-inline-start: -2.5px; bottom: 100%;
  display: inline-flex; align-items: baseline; gap: .6em;
  padding: .16em .55em; border-radius: 4px 4px 0 0;
  background: var(--bc, var(--accent)); color: #fff;
  font: 700 clamp(.6rem, 1.5svh, .8rem)/1.6 var(--mono); white-space: nowrap;
  opacity: calc(var(--t, 0) * 3 - 1.4);
}
.box__label i { font-style: normal; opacity: .85; }
.obj--tower .box { --bi: 0 2% 0 2%; }
.obj--boat .box, .obj--bird .box { --bi: -10%; }

.hud {
  position: absolute; z-index: 20; inset-inline-start: 0; bottom: 0;
  display: inline-flex; align-items: center; gap: .6em;
  padding: .45em .9em; border-radius: 8px;
  background: #10243A; color: #E8F7F4;
  font: 700 clamp(.62rem, 1.6svh, .86rem)/1.5 var(--mono);
}
.hud i { inline-size: .6em; block-size: .6em; border-radius: 50%; background: #FF5A4F; animation: blink 1.2s steps(2) infinite; }
.hud b { font-weight: 700; }
@keyframes blink { 50% { opacity: .2; } }
.sc-kaust .note { inset-inline-start: 0; top: 0; }

/* ═══════════ 03 · مشروع التخرج (EEG) ═══════════ */

/* لوحة الإشارات: بحجم الشاشة، وeeg.js بيحرّكها جوّا الأرض لتضل مطابقة للشاشة، فالحزمة ما بتنقصّ عند مدخل القسم ولا مخرجه */
.eeg__canvas { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; will-change: transform; }
/* الطريق هنا عند نهاية السطر والإشارة تأتي من جهته، فأول مرحلة (CNN) هي الأقرب للطريق */
.decoder { position: absolute; z-index: 12; inset-inline-end: 28cqw; top: 52cqh; translate: 0 -50%; display: flex; flex-direction: row-reverse; gap: .5rem; }
.decoder li {
  --on: 0;
  padding: .5em .85em; border-radius: 10px;
  border: 1.5px solid rgb(125 226 195 / calc(.3 + var(--on) * .7));
  background: rgb(125 226 195 / calc(var(--on) * .2));
  color: color-mix(in srgb, var(--mint) calc(var(--on) * 100%), #9AA3D6);
  font: 700 clamp(.64rem, min(1.9cqw, 2svh), .92rem)/1.4 var(--mono);
  box-shadow: 0 0 calc(var(--on) * 26px) rgb(125 226 195 / calc(var(--on) * .55));
}
.out {
  position: absolute; z-index: 12; inset-inline-start: 0; top: 52cqh; translate: 0 -50%;
  inline-size: 32cqw;
  display: grid; justify-items: center; gap: .15em; text-align: center;
}
.out__label { font: 700 clamp(.62rem, 1.7svh, .84rem)/1.6 var(--mono); color: var(--saffron); }
.word { --t: 0; position: relative; font-family: var(--ruqaa); font-weight: 700; font-size: clamp(2.4rem, min(10cqw, 26cqh), 7rem); line-height: 1.45; color: var(--cream); }
.word__txt { display: block; white-space: nowrap; clip-path: inset(-20% 0 -20% calc((1 - var(--t)) * 100%)); text-shadow: 0 0 34px rgb(125 226 195 / .55); }
.word::after { /* رأس القلم */
  content: ""; position: absolute; top: 18%; bottom: 18%;
  left: calc((1 - var(--t)) * 100%); inline-size: 3px; border-radius: 3px;
  background: var(--saffron); box-shadow: 0 0 16px var(--saffron);
  opacity: calc(min(var(--t), 1 - var(--t)) * 30);
}
.word.is-swap .word__txt { animation: word-swap .7s cubic-bezier(.2, .8, .2, 1); }
@keyframes word-swap { from { clip-path: inset(-20% 0 -20% 100%); } to { clip-path: inset(-20% 0 -20% 0); } }
.acc { display: flex; align-items: baseline; gap: .3em; font-size: clamp(.7rem, 1.9svh, .92rem); }
.acc b { font: 800 clamp(1.3rem, min(4cqw, 8cqh), 2.7rem)/1.2 var(--mono); color: var(--mint); }
.acc i { font: 700 1.2em var(--mono); color: var(--mint); font-style: normal; }
.acc span { margin-inline-start: .6em; opacity: .8; }
.out__cap { font-size: clamp(.64rem, 1.7svh, .84rem); }
.out__cap.a-fade { opacity: calc(var(--t, 1) * .65); }
.tag {
  position: absolute; z-index: 12; inset-inline-end: 0; bottom: 3cqh;
  display: grid; gap: .1em;
  padding-inline-start: .9em; border-inline-start: 2px solid var(--mint);
  font: 500 clamp(.64rem, 1.7svh, .86rem)/1.6 var(--mono);
}
.tag b { color: var(--mint); font-weight: 700; }
.tag span { opacity: .8; }
.sc-eeg .note { inset-inline-start: 2cqw; bottom: 3cqh; --note: #C9F5E7; }

/* ═══════════ 04 · الهاكاثونات ═══════════ */

.beams { position: absolute; inset: 0; z-index: 1; mix-blend-mode: screen; pointer-events: none; }
.beams i {
  position: absolute; top: -46cqh; left: var(--x);
  inline-size: 46cqh; block-size: 150cqh; translate: -50% 0;
  transform-origin: 50% 0;
  background: linear-gradient(180deg, rgb(255 224 150 / .5) 0%, rgb(255 224 150 / 0) 82%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  animation: sweep var(--d) ease-in-out infinite alternate;
}
.beams i:nth-child(1) { --x: 14%; --a: -15deg; --b: 9deg; --d: 7s; }
.beams i:nth-child(2) { --x: 52%; --a: 9deg; --b: -9deg; --d: 9s; }
.beams i:nth-child(3) { --x: 88%; --a: 16deg; --b: -5deg; --d: 8s; }
@keyframes sweep { from { rotate: var(--a); } to { rotate: var(--b); } }
.stagefloor {
  position: absolute; z-index: 2; inset-inline: 3cqw; bottom: 0; block-size: 26cqh; border-radius: 50%;
  background: #3D1B56; box-shadow: inset 0 6px 0 rgb(255 255 255 / .1), 0 14px 0 #1E0B2E;
}
.confetti { position: absolute; inset: 0; z-index: 35; inline-size: 100%; block-size: 100%; pointer-events: none; }
.cheques { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.cheque {
  --cw: min(62cqw, 118cqh);
  position: absolute; left: 50%; top: 40%;
  inline-size: var(--cw); aspect-ratio: 2.2;
  margin: calc(var(--cw) / -4.4) 0 0 calc(var(--cw) / -2);
  display: grid; grid-template-rows: auto 1fr auto; gap: .5em;
  padding: 1.35em 1.7em 1.2em;
  border: calc(var(--cw) * .012) solid var(--c); border-radius: calc(var(--cw) * .028);
  background: #FFFDF6; color: #1D1B1A;
  font-size: calc(var(--cw) / 34);
  box-shadow: 0 30px 60px rgb(0 0 0 / .45);
  transform: translate(var(--tx, 0px), var(--ty, -200cqh)) rotate(var(--r, 0deg)) scale(var(--s, 1));
  will-change: transform;
  overflow: hidden;
}
.cheque::before {
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background: repeating-linear-gradient(115deg, var(--c) 0 2px, transparent 2px 9px);
}
.cheque > * { position: relative; }
.cheque header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1em; }
.cheque__place { flex: none; padding: .3em 1em; border-radius: 999px; background: var(--c); color: #fff; font-weight: 800; font-size: 1.05em; }
.cheque__org { max-inline-size: 60%; text-align: end; font-size: .78em; font-weight: 600; line-height: 1.5; opacity: .75; }
.cheque__mid { display: flex; justify-content: space-between; align-items: flex-end; gap: 1em; }
.cheque__pay { font-size: .82em; line-height: 1.6; }
.cheque__pay u { display: block; font-weight: 700; font-size: 1.15em; text-decoration: none; border-bottom: 1.5px dashed rgb(0 0 0 / .35); padding-bottom: .1em; }
.cheque__amount { display: flex; align-items: baseline; gap: .3em; }
.cheque__amount b { font: 900 4.3em/1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--c); }
.cheque__amount i { font-style: normal; font-weight: 800; font-size: 1.15em; }
.cheque footer { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; padding-top: .7em; border-top: 1.5px solid rgb(0 0 0 / .12); }
.cheque__name { font-weight: 800; font-size: .98em; }
.cheque__crowd { flex: none; font-size: .78em; font-weight: 600; opacity: .7; }
.total {
  --t: 0;
  position: absolute; z-index: 12; left: 50%; top: 36%; translate: -50% -50%;
  inline-size: max-content; max-inline-size: 100cqw;
  display: grid; justify-items: center; text-align: center;
  opacity: var(--t); transform: scale(calc(.8 + .2 * var(--t)));
  pointer-events: none;
}
.total span { font-size: clamp(.9rem, min(2.6cqw, 5cqh), 1.4rem); font-weight: 600; opacity: .85; }
.total p { display: flex; align-items: baseline; gap: .3em; }
.total b { font: 900 clamp(2.6rem, min(14cqw, 26cqh), 9rem)/1.1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--saffron); text-shadow: 0 0 60px rgb(244 183 64 / .45); }
.total i { font-style: normal; font-weight: 700; font-size: clamp(1rem, min(3cqw, 6cqh), 1.8rem); }
.total em { font-style: normal; font-size: clamp(.85rem, min(2.4cqw, 4.6cqh), 1.3rem); font-weight: 600; }
.sc-hack .note { inset-inline-start: 1cqw; top: 0; --note: #FFE7A8; }

/* ═══════════ 05 · AILA ═══════════ */

.prev { margin-top: .7em; max-inline-size: 34em; font-size: clamp(.74rem, min(1.9cqi, 1.9svh), .96rem); line-height: 1.7; }
.prev.a-rise { opacity: calc(var(--t, 1) * .78); }
/* حي الأعمال: صورة وحدة لمباني الشركات، واقفة جنب الشارع عند مدخل القسم وقاعدتها قبل أول الشاشة الرئيسية بشعرة */
.district {
  position: absolute; z-index: 2; inset-inline-start: 4vw; top: 78lvh; /* مدخل AILA أطول من الباقي (data-x=0.8) عشان الصورة تاخذ حجمها */
  inline-size: min(51vw, 92lvh); block-size: auto; max-inline-size: none;
  translate: 0 -100%;
  pointer-events: none; user-select: none;
  filter: drop-shadow(0 12px 12px rgb(0 0 0 / .5));
}
@media (max-aspect-ratio: 1/1) { .district { inset-inline-start: 2vw; inline-size: 76vw; top: 79lvh; } }
/* حي AILA على الشاشات العريضة: لوحة وحدة لأرض القسم كلها (أرض ومباني وشارع) بدل صورة الواجهات. مفرودة على مستطيل الأرض
   بالضبط، فالشارع المرسوم بيضل تحت طريق الشخصية بكل المقاسات (road.js: PAINTED). بالإنجليزي اللوحة بتنعكس، والشعار عنصر
   لحاله فوق لوح البرج الأبيض فبيضل معدول. ذيل اللوحة بيكمّل داخل حافة الموجة تبعت مشروع التخرج، فالشارع بيوصل لخط الموجة بلا قطع */
.hood { display: none; }
@media (min-aspect-ratio: 1/1) {
  .z-aila .district { display: none; }
  .hood { display: block; position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; user-select: none; }
  .hood__img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; max-inline-size: none; object-fit: fill; }
  [dir="ltr"] .hood__img { transform: scaleX(-1); }
  /* اللوح الأبيض بالصورة: من 780 لـ872 عرضاً (من 1145) ومن 119 لـ148 طولاً (من 1319)، والشعار جوّاته بهامش */
  .hood__logo { position: absolute; inset-inline-start: 24.65%; top: 9.33%; inline-size: 6.4%; block-size: 1.58%; object-fit: contain; opacity: .96; }
  .z-eeg { --prev-img: linear-gradient(#0000, #0000), url("../assets/art/real/district-tail.webp"); --prev-ts: 100% 100%; }
  [dir="ltr"] .z-eeg { --prev-img: linear-gradient(#0000, #0000), url("../assets/art/real/district-tail-ltr.webp"); }
  .z-eeg .cap__fill { background-position: 0 0; background-repeat: no-repeat; }
}
.graph { position: absolute; z-index: 8; inset: 0 0 31cqh 0; }
.graph__edges { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; }
.graph__edges line {
  --t: 0;
  stroke: var(--c, #fff); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--t));
  opacity: .8;
}
.graph__edges line.is-leaf { stroke-width: 1.4; opacity: .55; }
.node {
  --t: 0;
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); translate: -50% -50%;
  display: inline-flex; align-items: center; justify-content: center;
  padding: .4em .8em; border: 1.5px solid var(--c, #fff); border-radius: 999px;
  background: #171B4A; color: var(--cream);
  font: 600 clamp(.56rem, min(1.7cqw, 3.4cqh), .88rem)/1.4 var(--font); white-space: nowrap;
  opacity: min(1, calc(var(--t) * 2)); transform: scale(calc(.5 + .5 * var(--t)));
}
button.node { cursor: pointer; }
.node--main {
  padding: .55em 1.1em; border: 0;
  background: var(--c); color: #14173F;
  font-weight: 800; font-size: clamp(.64rem, min(2.1cqw, 4cqh), 1.04rem);
  transition: box-shadow .3s;
}
.node--main.is-on { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 36%, transparent), 0 0 40px color-mix(in srgb, var(--c) 60%, transparent); }
.node--center {
  inline-size: clamp(46px, min(12cqw, 22cqh), 104px); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%;
  background: var(--cream); color: #14173F;
  font-weight: 900; font-size: clamp(.72rem, min(2.4cqw, 4.6cqh), 1.3rem);
  box-shadow: 0 0 0 8px rgb(251 246 236 / .14), 0 0 60px rgb(244 183 64 / .5);
}
.detail {
  --t: 0;
  position: absolute; z-index: 12; inset-inline: 0; bottom: 0;
  min-block-size: 24cqh;
  padding: 1em 1.3em; border-radius: 16px;
  border: 1.5px solid var(--c, rgb(255 255 255 / .25));
  background: rgb(11 14 44 / .74); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: var(--t); transform: translateY(calc((1 - var(--t)) * 18px));
  transition: border-color .3s, opacity .35s, transform .35s;
}
.detail__t { display: block; margin-bottom: .25em; color: var(--c, var(--saffron)); font-size: clamp(.84rem, min(2.4cqw, 4.4cqh), 1.2rem); font-weight: 800; transition: color .3s; }
.detail__d { font-size: clamp(.74rem, min(2cqw, 3.7cqh), 1.05rem); line-height: 1.75; }

/* ═══════════ 06 · المشاريع ═══════════ */

.plist { position: absolute; z-index: 5; inset-inline-start: 0; top: 4cqh; display: grid; counter-reset: p; max-inline-size: 36cqw; }
.plist li {
  counter-increment: p;
  display: flex; align-items: baseline; gap: .9em;
  padding: .38em 0;
  font-size: clamp(.82rem, min(2.1cqw, 3.6cqh), 1.2rem); font-weight: 600;
  opacity: .56; cursor: pointer;
  transition: opacity .3s, transform .3s, color .3s;
}
.plist li::before { content: "0" counter(p); font: 700 .78em var(--mono); }
.plist li:hover { opacity: .82; }
.plist li.is-on { opacity: 1; color: var(--accent); transform: translateX(calc(12px * var(--dirx))); }
.deck {
  position: absolute; z-index: 10; inset-inline-end: 3cqw; top: 46%; translate: 0 -50%;
  inline-size: min(54cqw, 76cqh); block-size: min(90cqh, 640px);
  container: deck / size;
}
.card {
  position: absolute; inset: 0;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto auto; gap: clamp(6px, 2.4cqh, 16px);
  padding: clamp(12px, 5cqw, 30px);
  border: 2px solid rgb(0 0 0 / .08); border-radius: clamp(16px, 5cqw, 26px);
  background: var(--c); color: var(--k);
  box-shadow: 0 24px 50px rgb(40 30 10 / .28);
  transform: translate(var(--tx, 0px), var(--ty, 0px)) rotate(var(--r, 0deg)) scale(var(--s, 1));
  transform-origin: 50% 85%;
  will-change: transform;
}
.card__top { display: flex; justify-content: space-between; align-items: center; font: 700 clamp(.62rem, 2.8cqw, .8rem)/1.4 var(--mono); }
.card__top span { padding: .25em .8em; border: 1.5px solid currentColor; border-radius: 999px; }
.card__art { min-block-size: 0; border-radius: 16px; background: rgb(255 255 255 / .14); overflow: hidden; }
.card__art svg { inline-size: 100%; block-size: 100%; }
.card__title { font-size: clamp(1rem, 6.4cqw, 1.85rem); font-weight: 800; line-height: 1.35; }
.card__desc { font-size: clamp(.72rem, 3.5cqw, 1rem); line-height: 1.7; opacity: .93; }
.card__tags { display: flex; flex-wrap: wrap; gap: .4em; }
.card__tags li { padding: .28em .7em; border: 1.5px solid currentColor; border-radius: 999px; font: 700 clamp(.58rem, 2.5cqw, .72rem)/1.4 var(--mono); }
/* العدّاد تحت الرزمة مباشرة (نفس عرضها وجهتها) */
.deck__count {
  position: absolute; z-index: 11; inset-inline-end: 3cqw; bottom: 0;
  inline-size: min(54cqw, 76cqh); text-align: center;
  font: 700 .9rem/1 var(--mono);
}
.deck__count i { font-style: normal; opacity: .5; }

/* شريط الأدوات: شريط لاصق مائل عند مخرج المنطقة */
.ticker {
  position: absolute; z-index: 20; inset-inline: -3vw;
  top: calc((var(--x) + 1.2) * 100lvh);
  display: flex; align-items: center; overflow: hidden;
  background: var(--ink); color: var(--cream);
  rotate: -2deg;
  box-shadow: 0 10px 30px rgb(0 0 0 / .18);
}
.ticker__label { position: relative; z-index: 1; flex: none; padding: 1em 2em; background: var(--coral); font-size: .9rem; font-weight: 800; }
.ticker__track { display: flex; align-items: center; direction: ltr; animation: marquee 40s linear infinite; }
[dir="rtl"] .ticker__track { animation-name: marquee-rtl; }
.ticker__track ul { flex: none; display: flex; gap: 2.2em; padding-inline: 1.1em; font: 700 .9rem/1 var(--mono); white-space: nowrap; }
.ticker__track li::after { content: "✦"; margin-inline-start: 2.2em; color: var(--saffron); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ═══════════ 08 · آخر الطريق ═══════════ */

.contact__sub { font-size: clamp(.95rem, min(2.8cqi, 2.8svh), 1.5rem); font-weight: 500; }
.contact__links { display: flex; flex-wrap: wrap; gap: .7em; margin-top: 1.2em; }
.z-contact .btn { background: rgb(255 255 255 / .35); }
.z-contact .btn--solid { background: var(--fg); border-color: var(--fg); color: #FCE7CF; }
.sc-contact .sunrise {
  position: absolute; left: 50%; bottom: -34cqh; translate: -50% 0;
  inline-size: min(110cqh, 70cqw); aspect-ratio: 1; border-radius: 50%;
  /* وهج على الرمل: بلا حافة، وبيندمج مع خامة الأرض */
  background: radial-gradient(circle at 50% 42%, rgb(255 248 220 / .98) 0%, rgb(255 226 150 / .92) 22%, rgb(255 188 104 / .6) 46%, rgb(255 160 84 / .22) 62%, rgb(255 150 80 / 0) 72%);
  mix-blend-mode: screen;
}
.sc-contact .palm--1 { inset-inline-start: 2cqw; bottom: 0; block-size: min(92cqh, 44cqw); }
.sc-contact .palm--2 { inset-inline-end: 6cqw; bottom: 0; block-size: min(66cqh, 32cqw); }
.foot {
  position: absolute; z-index: 20; inset-inline: var(--pad); bottom: 1.6svh;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3em 1.5em;
  font-size: .78rem; font-weight: 500;
}

/* ═══════════ مشاهد طولية (جوال وتابلت بالطول) ═══════════ */

@container scene (orientation: portrait) {
  .sc-hero .compass { inline-size: min(60cqh, 62cqw); inset-inline-end: 0; }
  .sc-hero .palm { inset-inline-start: -8cqw; block-size: min(80cqh, 70cqw); }
  .sc-hero .shrub { display: none; }

  .sc-madinah .full { display: none; }
  .sc-madinah .full--compact { display: block; inline-size: 104cqw; }
  .cert { --cw: min(60cqw, 46cqh); translate: calc(-50% + var(--dirx, 1) * 5cqw) 0; rotate: calc(var(--dirx, 1) * 11deg); bottom: calc(6cqh + 104cqw / 1.92 - var(--cw) * .2); }
  .sc-madinah .note { top: auto; bottom: 0; inset-inline-start: auto; inset-inline-end: 0; max-inline-size: 9em; }

  .obj--campus { --h: min(22cqh, 26cqw); inset-inline-start: -4cqw; bottom: 21cqh; }
  .obj--tower { --h: min(62cqh, 76cqw); inset-inline-start: 47cqw; bottom: 20cqh; }
  .obj--boat { --h: 10cqh; }
  .sc-kaust .note { display: none; }

  .out { inset-inline: 0; inline-size: auto; top: 2cqh; translate: none; }
  .word { font-size: clamp(2.2rem, min(24cqw, 20cqh), 6rem); line-height: 1.3; }
  .decoder { flex-direction: column-reverse; gap: .3rem; inset-inline-end: auto; inset-inline-start: 2cqw; top: auto; bottom: 8cqh; translate: none; }
  .decoder li { text-align: center; padding: .38em .8em; }
  .tag, .out__cap, .sc-eeg .note { display: none; }

  .cheque { --cw: min(100cqw, 96cqh); top: 34%; }
  .total { top: 30%; }
  .sc-hack .note { top: auto; bottom: 3cqh; inset-inline-start: 8cqw; max-inline-size: 11em; }

  .graph { inset: 0 0 38cqh 0; }
  .node { padding: .3em .55em; }
  .node--main { padding: .42em .75em; }
  .detail { min-block-size: 0; padding: .7em .9em; }

  .plist { display: none; }
  .deck { inset-inline: 0; margin-inline: auto; inline-size: min(96cqw, 78cqh); block-size: 90cqh; top: 45%; }
  .deck__count { inset-inline: 0; inline-size: auto; }

  .sc-contact .sunrise { bottom: -16cqh; inline-size: min(70cqh, 96cqw); }
  .sc-contact .palm--1 { inset-inline-start: -14cqw; block-size: min(70cqh, 70cqw); }
  .sc-contact .palm--2 { display: none; }
}

@media (max-aspect-ratio: 1/1) {
  .hint { bottom: 2svh; font-size: .82rem; }
  .ticker__label { padding: .8em 1.2em; font-size: .8rem; }
  .ticker__track ul { font-size: .8rem; }
  .contact__links { gap: .5em; margin-top: .9em; }
  .z-contact .btn { padding: .62em .95em; font-size: .86rem; }
  .foot { justify-content: center; text-align: center; font-size: .68rem; }
}

/* الوضع الهادئ */
.calm .a-cert { transform: none; }
.calm .obj--boat, .calm .obj--bird, .calm .beams i, .calm .ticker__track, .calm [data-surface="grate"] .road__detail, .calm .hint svg { animation: none; }
.calm .hero__hi, .calm .hero__name, .calm .hero__role, .calm .hero__line, .calm .hint { animation-name: fade-in; }
@keyframes fade-in { from { opacity: 0; } }
