/* =====================================================================
   الهيثم TAVS: أنماط الموقع
   1 الخطوط   2 الرموز   3 الأساس   4 التنقل والمسطرة والمؤشر
   5 الافتتاحية   6 البطل: الغلاف ← النظارة ← الواجهة
   7 الأقسام   8 الجوال   9 بلا حركة
   كل الاتجاهات منطقية (inline-start / end) لأن الصفحة من اليمين.
   ===================================================================== */

/* 1. الخطوط */
@font-face { font-family: "Th Sans"; src: url("../assets/fonts/thmanyahsans-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Th Sans"; src: url("../assets/fonts/thmanyahsans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Th Sans"; src: url("../assets/fonts/thmanyahsans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Th Sans"; src: url("../assets/fonts/thmanyahsans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Th Display"; src: url("../assets/fonts/thmanyahserifdisplay-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Th Display"; src: url("../assets/fonts/thmanyahserifdisplay-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Th Display"; src: url("../assets/fonts/thmanyahserifdisplay-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Th Text"; src: url("../assets/fonts/thmanyahseriftext-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* 2. الرموز: نفس ألوان الملف الأساسي */
:root {
  --paper: #F4F1EA; --sand: #ECE6DA; --stone: #E2DCCF; --sage: #D9DCCD; --card: #FBF9F4;
  --ink: #1D2118; --ink2: #454A3E; --mut: #66695D; --hair: rgba(29, 33, 24, .14);
  --lime: #B9DD4A; --lmark: #86AB1C; --ltext: #4C6410; --heat: #F0764A; --htext: #A3401F;
  --dark: #161A12; --dark2: #1F251A; --dline: rgba(226, 232, 210, .14); --dtext: #E6E3D8; --dmut: #A6A99A;
  --hud: #D4F562; --hudp: rgba(10, 13, 8, .62); --night: #E0583F;
  --sans: "Th Sans", system-ui, sans-serif; --disp: "Th Display", "Th Sans", serif; --text: "Th Text", "Th Sans", serif;
  --ease: cubic-bezier(.22, 1, .36, 1); --ease-io: cubic-bezier(.76, 0, .18, 1);
  --pad: clamp(1.25rem, 4.2vw, 4rem); --maxw: 1380px;
}

/* 3. الأساس */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--lime); color: var(--ink); }
.skip { position: fixed; top: -100px; inset-inline-start: 1rem; z-index: 300; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 99px; text-decoration: none; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--lmark); outline-offset: 3px; border-radius: 4px; }
.frame { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.num { font-family: var(--sans); font-weight: 500; font-size: .78rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--mut); }
.lime { color: var(--lmark); }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 500; color: var(--ink2); letter-spacing: .02em; }
.eyebrow .sq { width: 9px; height: 9px; background: var(--lmark); display: inline-block; }
.eyebrow--heat { color: var(--htext); }
.src { font-size: .8rem; color: var(--mut); line-height: 1.7; }
.lede { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--ink2); max-width: 36em; line-height: 1.85; }

/* زر بحلقة داخلية */
.btn, .nav__cta { display: inline-flex; align-items: center; gap: .9rem; padding: .5rem .5rem .5rem 1.4rem; padding-inline: 1.4rem .45rem; border-radius: 99px; text-decoration: none; font-weight: 500; background: var(--ink); color: var(--paper); transition: transform .5s var(--ease), background .4s var(--ease); }
.btn i, .nav__cta i { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); transition: transform .5s var(--ease), background .4s; }
.btn svg, .nav__cta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover i, .nav__cta:hover i { transform: translateY(2px) scale(1.06); background: var(--lime); color: var(--ink); }
.btn:active, .nav__cta:active { transform: scale(.98); }

/* 4. التنقل العائم */
.nav { position: fixed; top: 1.1rem; left: 50%; z-index: 120; transform: translateX(-50%); display: flex; align-items: center; gap: clamp(.8rem, 2vw, 2rem); padding: .4rem; padding-inline-start: 1.1rem; border-radius: 99px; background: rgba(244, 241, 234, .72); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 0 0 1px rgba(29,33,24,.08), 0 18px 50px -20px rgba(29,33,24,.35), inset 0 1px 0 rgba(255,255,255,.6); transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s; white-space: nowrap; }
.nav__brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--disp); font-weight: 700; font-size: 1.15rem; }
.nav__brand svg { width: 30px; fill: currentColor; }
.nav__brand .sq { fill: var(--lmark); }
.nav__links { display: flex; gap: .2rem; }
.nav__links a { position: relative; text-decoration: none; font-size: .88rem; padding: .45rem .8rem; border-radius: 99px; color: inherit; opacity: .72; transition: opacity .3s, background .3s; }
.nav__links a:hover, .nav__links a.is-on { opacity: 1; background: rgba(29,33,24,.06); }
.nav__links a.is-on::after { content: ""; position: absolute; bottom: .25rem; left: 50%; width: 4px; height: 4px; margin-left: -2px; background: var(--lmark); }
.nav__cta { font-size: .85rem; padding-block: .3rem; }
.nav__cta i { width: 1.9rem; height: 1.9rem; }
.nav.is-dark { background: rgba(14, 17, 11, .55); color: var(--dtext); box-shadow: 0 0 0 1px rgba(226,232,210,.1), 0 18px 50px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06); }
.nav.is-dark .nav__links a:hover, .nav.is-dark .nav__links a.is-on { background: rgba(226,232,210,.08); }
.nav.is-dark .nav__cta { background: var(--dtext); color: var(--ink); }
.nav.is-dark .nav__cta i { background: rgba(0,0,0,.08); }

/* مسطرة الاتجاه */
.ruler { position: fixed; inset-inline-end: 1.4rem; top: 50%; z-index: 90; height: 38vh; width: 18px; transform: translateY(-50%); overflow: hidden; opacity: 0; transition: opacity .6s var(--ease); -webkit-mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.ruler.is-on { opacity: 1; }
.ruler__tape { position: absolute; inset-inline: 0; top: 0; height: 400%; background:
  linear-gradient(currentColor, currentColor) 0 0 / 100% 1px repeat-y,
  linear-gradient(currentColor, currentColor) 100% 0 / 45% 1px repeat-y;
  background-size: 100% 60px, 45% 12px; color: rgba(29,33,24,.4); will-change: transform; }
.ruler::after { content: ""; position: absolute; top: 50%; inset-inline: -2px; height: 2px; background: var(--lmark); }
.ruler__num { position: fixed; inset-inline-end: 1.05rem; top: calc(50% + 19vh + .8rem); font-size: .66rem; letter-spacing: .1em; color: var(--mut); font-variant-numeric: tabular-nums; }
.ruler.is-dark .ruler__tape { color: rgba(226,232,210,.35); }

/* الحبيبات */
.grain { position: fixed; inset: -50%; z-index: 200; pointer-events: none; opacity: .055; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

/* المؤشر: حلقة تتبع الفأرة، وتنقلب مع الخلفية */
.cursor { position: fixed; left: 0; top: 0; z-index: 210; width: 34px; height: 34px; margin: -17px 0 0 -17px; pointer-events: none; opacity: 0; mix-blend-mode: difference; transition: opacity .4s; will-change: transform; }
.cursor::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid #fff; transition: transform .45s var(--ease), background .3s; }
.cursor::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; background: #fff; border-radius: 50%; }
.cursor.is-on { opacity: 1; }
.cursor.is-over::before { transform: scale(1.8); background: rgba(255,255,255,.95); }
.cursor.is-down::before { transform: scale(.75); }

/* 5. الافتتاحية */
.intro { display: none; }
.intro-on .intro { display: grid; position: fixed; inset: 0; z-index: 250; place-items: center; background: #0E120B; color: var(--dtext); }
.intro__stage { display: grid; justify-items: center; gap: 1.6rem; }
.intro__mark { width: min(34vw, 200px); overflow: visible; }
.intro__mark .bar { fill: var(--dtext); }
.intro__mark .sq { fill: var(--lime); transform-box: fill-box; transform-origin: center; }
.intro__name { font-family: var(--disp); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; clip-path: inset(0 0 0 100%); }
.intro__read { display: flex; gap: .8rem; align-items: baseline; font-size: .78rem; letter-spacing: .04em; color: #9FA68E; }
.intro__read b { font-weight: 500; color: var(--lime); font-variant-numeric: tabular-nums; min-width: 3.2ch; text-align: left; }
.intro__read i { font-style: normal; }
.intro-on body { overflow: hidden; }

/* 6. البطل */
.hero { position: relative; height: 760vh; background: #0B0E09; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* 6.1 الغلاف */
/* الفرد يبدأ تحت عناوين الألواح (--top يقيسه js/site.js) وينتهي خلف الشريط السفلي عند الوحدة المركزية */
.cover { position: absolute; inset: 0; background: #DDD7CA; --band: clamp(176px, 27vh, 270px); --top: 15rem; --H: min(calc((100svh - var(--band) - var(--top)) / .63), 125vw); }
.cover__band { position: absolute; inset-inline: 0; bottom: 0; height: var(--band); z-index: 3; background: var(--paper); box-shadow: 0 -1px 0 var(--hair); }
.panels { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.pn { display: block; will-change: transform; }
.pn--1 { background: #F1EDE5; }
.pn--2 { background: #E8E2D6; }
.pn--3 { background: #DADDCF; }
.pn + .pn { box-shadow: inset -1px 0 0 rgba(29,33,24,.05); }
.cover__keys { position: absolute; inset-inline: 0; top: clamp(5rem, 9.5vh, 7rem); display: grid; grid-template-columns: repeat(3, 1fr); z-index: 3; }
.cover__keys li { padding-inline: clamp(1.25rem, 3.4vw, 3.4rem); }
.cover__keys .num { display: block; font-family: var(--disp); font-weight: 300; font-size: clamp(1.8rem, 2.6vw, 2.6rem); letter-spacing: 0; color: var(--ink); line-height: 1; margin-bottom: .45rem; }
.cover__keys h2 { font-family: var(--disp); font-weight: 700; font-size: clamp(1.15rem, 1.7vw, 1.55rem); line-height: 1.3; }
.cover__keys p { font-size: .9rem; color: var(--ink2); margin-top: .25rem; }
.cover__fig { position: absolute; left: 50%; bottom: calc(var(--band) - .32 * var(--H)); z-index: 2; height: var(--H); aspect-ratio: 1600 / 2000; transform: translateX(-50%); will-change: transform; }
.cover__fig .bust { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 40px 60px rgba(29,33,24,.18)); }
.cover__lines { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.cover__lines path { fill: none; stroke: var(--ink); stroke-width: 1; }
.cover__lines circle.pt { fill: none; stroke: var(--lmark); stroke-width: 2; }
.cover__lines circle.pt2 { fill: var(--lmark); }
.cover__title { position: absolute; z-index: 4; inset-inline-start: clamp(1.25rem, 3.4vw, 3.4rem); bottom: calc(var(--band) / 2); transform: translateY(50%); }
.cover__title .eyebrow span { font-weight: 700; letter-spacing: .14em; }
.cover__title h1 { font-family: var(--disp); font-weight: 700; font-size: min(9.4rem, 9.6vw, calc(var(--band) * .5)); line-height: .95; letter-spacing: -.01em; margin-top: .4rem; }
.h1-w { display: inline-block; }
.cover__lede { position: absolute; z-index: 4; inset-inline-end: clamp(1.25rem, 3.4vw, 3.4rem); bottom: calc(var(--band) / 2); transform: translateY(50%); max-width: 27em; font-size: .98rem; color: var(--ink2); line-height: 1.85; }
.cover__hint { position: absolute; z-index: 4; left: 50%; bottom: 1.2rem; transform: translateX(-50%); display: flex; align-items: center; gap: .6rem; font-size: .76rem; color: var(--ink2); background: rgba(244,241,234,.8); padding: .35rem .9rem .35rem .7rem; border-radius: 99px; backdrop-filter: blur(8px); }
.mouse { width: 14px; height: 21px; border: 1.4px solid currentColor; border-radius: 8px; position: relative; }
.mouse i { position: absolute; left: 50%; top: 4px; width: 2px; height: 4px; margin-left: -1px; background: currentColor; border-radius: 2px; animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(6px); opacity: 0; } 100% { opacity: 0; } }

/* 6.2 لقطة الاقتراب */
.helm { position: absolute; inset: 0; z-index: 5; opacity: 0; visibility: hidden; background: #DDD7CA; overflow: hidden; }
.helm img { position: absolute; max-width: none; will-change: transform; -webkit-mask: linear-gradient(#000 78%, transparent 99%); mask: linear-gradient(#000 78%, transparent 99%); }

/* 6.3 داخل النظارة */
.eye { position: absolute; inset: 0; z-index: 6; background: #070907; clip-path: circle(0 at 50% 50%); visibility: hidden; color: var(--hud); font-family: var(--sans); }
.eye__scene { position: absolute; will-change: transform; transform-origin: 50% 50%; }
.eye__img { width: 100%; height: 100%; max-width: none; transition: filter 1s var(--ease); }
.eye::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 55%, rgba(0,0,0,.55)); }

/* علامات داخل المشهد */
.mk { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: .15rem; text-shadow: 0 1px 6px rgba(0,0,0,.6); z-index: 2; }
.mk b { font-weight: 700; font-size: clamp(.9rem, 1.35vw, 1.35rem); line-height: 1; }
.mk small { font-size: clamp(.7rem, .95vw, .95rem); opacity: .9; line-height: 1; }
.dia { display: block; width: clamp(13px, 1.25vw, 19px); aspect-ratio: 1; border: 2.5px solid currentColor; transform: rotate(45deg); margin: .35rem 0; box-shadow: 0 0 10px rgba(212,245,98,.35); }
.dia--full { background: currentColor; }
.dia--heat { color: var(--heat); background: var(--heat); }
.dia--sm { width: 9px; border-width: 2px; margin: 0; box-shadow: none; }
.mk--rally svg { width: clamp(16px, 1.4vw, 22px); fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(212,245,98,.4)); }
.mk--nasser { color: var(--heat); }
.mk--nasser .ring { position: absolute; left: 50%; top: calc(50% - .9rem); width: clamp(64px, 6vw, 96px); aspect-ratio: 1; border: 2px solid var(--heat); border-radius: 50%; transform: translate(-50%, -50%); }
.mk--nasser .r1 { animation: ring 2.2s var(--ease) infinite; }
.mk--nasser .r2 { width: clamp(110px, 10vw, 160px); border-width: 1.5px; opacity: .45; animation: ring 2.2s var(--ease) .5s infinite; }
@keyframes ring { 0% { transform: translate(-50%, -50%) scale(.6); opacity: .9; } 100% { transform: translate(-50%, -50%) scale(1.25); opacity: 0; } }
.mk--nasser .dia { width: clamp(18px, 1.7vw, 26px); }

/* لوحات الواجهة */
.hud { position: absolute; inset: 0; z-index: 3; pointer-events: none; --m: clamp(1rem, 3vw, 2.6rem); }
.hud__panel { position: absolute; top: calc(var(--m) + 3.8rem); min-width: clamp(190px, 19vw, 270px); padding: .7rem 1rem .8rem; border-radius: 14px; background: var(--hudp); border: 1px solid rgba(212,245,98,.28); backdrop-filter: blur(3px); font-size: clamp(.78rem, .95vw, .95rem); }
.hud__panel header { display: flex; justify-content: space-between; opacity: .72; font-size: .82em; padding-bottom: .45rem; border-bottom: 1px solid rgba(212,245,98,.22); margin-bottom: .35rem; }
.hud__panel li { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: .55rem; padding: .28rem 0; }
.hud__panel li b { font-weight: 700; }
.hud__panel li span { opacity: .85; font-variant-numeric: tabular-nums; }
.hud__panel li em { font-style: normal; justify-self: start; }
.hud__panel .tag { background: var(--hud); color: #10140b; font-size: .75em; font-weight: 500; padding: .05rem .55rem; border-radius: 99px; }
.hud__panel .tag--heat { background: var(--heat); }
.hud__panel li.down { color: var(--heat); }
.hud__team { inset-inline-start: var(--m); }
.hud__nav { inset-inline-end: var(--m); }
.hud__nav li { grid-template-columns: auto 1fr auto; }
.hud__nav svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.hud__compass { position: absolute; top: calc(var(--m) + 3.6rem); left: 50%; width: min(40vw, 520px); transform: translateX(-50%); height: 5.2rem; }
.tape { position: absolute; inset: 0 0 auto; height: 2.6rem; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); direction: ltr; }
.tape__inner { position: absolute; top: 0; height: 100%; left: 0; will-change: transform; }
.tape__inner i { position: absolute; bottom: 0; width: 2px; background: currentColor; height: 7px; }
.tape__inner i.big { height: 14px; }
.tape__inner span { position: absolute; bottom: 17px; transform: translateX(-50%); font-size: .78rem; font-variant-numeric: tabular-nums; }
.tape__inner span.card { font-weight: 700; font-size: .95rem; }
.tape::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; }
.caret { position: absolute; left: 50%; top: 2.75rem; width: 0; height: 0; margin-left: -7px; border: 7px solid transparent; border-bottom: 11px solid currentColor; border-top: 0; }
.hdg { position: absolute; left: 50%; top: 3.6rem; transform: translateX(-50%); font-size: .95rem; font-weight: 700; padding: .05rem .6rem; border: 1.5px solid currentColor; border-radius: 7px; background: var(--hudp); }
.hud__alert { position: absolute; left: 50%; top: calc(var(--m) + 10.2rem); transform: translateX(-50%); display: flex; align-items: center; gap: .9rem; padding: .7rem 1.2rem; border-radius: 12px; background: rgba(42, 13, 6, .86); border: 2px solid var(--heat); color: var(--heat); box-shadow: 0 0 26px rgba(240,118,74,.38); white-space: nowrap; }
.hud__alert svg { width: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.hud__alert > b { font-size: clamp(1.05rem, 1.6vw, 1.5rem); font-weight: 700; }
.hud__alert .sep { width: 1px; align-self: stretch; background: currentColor; opacity: .45; }
.hud__alert .meta { display: grid; line-height: 1.3; }
.hud__alert .meta b { font-size: .88rem; }
.hud__alert .meta small { font-size: .78rem; opacity: .85; }
.hud__alert.is-blink { animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { border-color: rgba(240,118,74,.35); box-shadow: 0 0 8px rgba(240,118,74,.15); } }
.hud__edge { position: absolute; inset-inline-end: var(--m); top: 54%; display: flex; align-items: center; gap: .5rem; }
.hud__edge svg { width: 30px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linejoin: round; animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(-5px); } }
.hud__edge span { display: grid; line-height: 1.2; }
.hud__edge b { font-size: 1.05rem; }
.hud__edge small { font-size: .78rem; opacity: .85; }
.hud__bar { position: absolute; inset-inline: var(--m); bottom: var(--m); display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: clamp(.74rem, .9vw, .9rem); }
.hud__bar > span { display: flex; align-items: center; gap: .5rem; }
.sig { gap: 3px !important; align-items: flex-end !important; }
.sig i { width: 4px; background: currentColor; border-radius: 1px; }
.sig i:nth-child(1) { height: 5px; } .sig i:nth-child(2) { height: 9px; } .sig i:nth-child(3) { height: 13px; } .sig i:nth-child(4) { height: 17px; margin-inline-end: .5rem; }
.cmdlink { opacity: .8; } .cmdlink .dot { width: 9px; height: 9px; border: 1.5px solid currentColor; border-radius: 50%; }
.silent { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: grid !important; gap: 0 !important; justify-items: center; padding: .35rem 1.3rem; border: 1.5px solid currentColor; border-radius: 10px; background: var(--hudp); line-height: 1.3; }
.silent small { font-size: .75em; opacity: .8; } .silent b { font-size: 1.15em; }
.bat i { width: 34px; height: 15px; border: 1.5px solid currentColor; border-radius: 3px; padding: 2px; position: relative; }
.bat i::after { content: ""; position: absolute; right: -4px; top: 4px; width: 2px; height: 5px; background: currentColor; }
.bat i b { display: block; height: 100%; width: 82%; background: currentColor; border-radius: 1px; }

.eye__title { position: absolute; z-index: 4; left: 50%; top: 50%; width: min(90vw, 760px); transform: translate(-50%, -50%); text-align: center; color: #F4F1EA; text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.eye__title::before { content: ""; position: absolute; left: 50%; top: 50%; width: 170%; height: 230%; transform: translate(-50%, -50%); z-index: -1; background: radial-gradient(closest-side, rgba(5,7,4,.78), rgba(5,7,4,.45) 55%, transparent); pointer-events: none; }
.eye__title .eyebrow { color: rgba(244,241,234,.75); }
.eye__title h2 { font-family: var(--disp); font-weight: 700; font-size: clamp(3rem, 8vw, 7.2rem); line-height: 1; margin: .5rem 0 1rem; }
.eye__title p:last-child { font-size: 1.05rem; color: rgba(244,241,234,.85); max-width: 32em; margin-inline: auto; }
.eye__steps { position: absolute; z-index: 4; left: 50%; bottom: calc(clamp(1rem, 3vw, 2.6rem) + 4.2rem); width: min(92vw, 640px); height: 4.2rem; transform: translateX(-50%); }
.eye__steps li { position: absolute; inset: 0; display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem .7rem 1.2rem; border-radius: 16px; background: rgba(244, 241, 234, .93); color: var(--ink); backdrop-filter: blur(10px); box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); opacity: 0; visibility: hidden; font-size: .92rem; line-height: 1.5; }
.eye__steps .n { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--lime); font-weight: 700; font-size: .85rem; }
.eye__steps .n--heat { background: var(--heat); color: #fff; }
.eye__steps .n--night { background: #2A0F0A; color: var(--night); }
.eye__steps b { flex: none; font-weight: 700; }
.eye__tag { position: absolute; z-index: 4; inset-inline-start: clamp(1rem, 3vw, 2.6rem); bottom: calc(clamp(1rem, 3vw, 2.6rem) + 2.4rem); font-size: .72rem; color: rgba(244,241,234,.6); }
.eye__progress { position: absolute; z-index: 4; top: 0; inset-inline: 0; height: 2px; background: rgba(212,245,98,.12); }
.eye__progress i { display: block; height: 100%; width: 100%; background: var(--hud); transform-origin: right; transform: scaleX(0); }

/* الوضع الليلي داخل النظارة */
.eye.is-night { --hud: var(--night); --hudp: rgba(20, 5, 3, .55); }
.eye.is-night .eye__img { filter: brightness(.38) sepia(1) hue-rotate(-38deg) saturate(2.4) contrast(1.1); }
.eye.is-night .hud__nav, .eye.is-night .hud__edge, .eye.is-night .mk--rally, .eye.is-night .cmdlink, .eye.is-night .hud__alert, .eye.is-night .mk--nasser, .eye.is-night .silent, .eye.is-night .hud__team li:not(:nth-child(2)), .eye.is-night .mk--fahad { opacity: 0 !important; transition: opacity .8s var(--ease); }
.eye.is-night .dia { box-shadow: none; }
.eye.is-night .tag { background: var(--night); }
.eye .hud, .eye .mk { transition: color .8s var(--ease); }

/* 7. الأقسام */
.sec { position: relative; padding-block: clamp(7rem, 15vw, 13rem); }
.sec-head { display: grid; gap: 1.1rem; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.sec-head h2 { font-family: var(--disp); font-weight: 700; font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: 1.08; letter-spacing: -.005em; max-width: 14em; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .08em .16em; margin-block: -.08em -.16em; }
.split .wi { display: inline-block; will-change: transform; }

/* المشكلة */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.stat { padding: 2rem clamp(1rem, 2.4vw, 2.4rem) 0 0; padding-inline: 0 clamp(1rem, 2.4vw, 2.4rem); display: grid; align-content: start; gap: .9rem; }
.stat + .stat { border-inline-start: 1px solid var(--hair); padding-inline-start: clamp(1rem, 2.4vw, 2.4rem); }
.stat__n { display: flex; justify-content: flex-end; align-items: baseline; font-family: var(--disp); font-weight: 300; font-size: clamp(4.2rem, 10vw, 9.4rem); line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__n span { font-size: .45em; margin-inline-start: .08em; color: var(--lmark); }
.stat__n .pre { margin: 0 .04em 0 0; color: var(--ink); }
.stat--heat .stat__n span { color: var(--heat); }
.stat figcaption { font-size: 1rem; color: var(--ink2); max-width: 22em; }
.stat cite { font-style: normal; font-size: .78rem; color: var(--mut); }
.reading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); margin-top: clamp(5rem, 10vw, 9rem); align-items: start; }
.read { font-family: var(--disp); font-weight: 400; font-size: clamp(1.6rem, 2.8vw, 2.6rem); line-height: 1.5; }
.read .rw { opacity: .16; transition: opacity .35s linear; }
.read .rw.on { opacity: 1; }
.reading__rest { display: grid; gap: 1.2rem; color: var(--ink2); font-size: 1rem; padding-top: .8rem; }

/* داكن */
.sec--dark { background: var(--dark); color: var(--dtext); }
.sec--dark .eyebrow { color: var(--dmut); }
.sec--dark .eyebrow .sq { background: var(--lime); }
.sec--dark .num { color: var(--dmut); }
.src--dark { color: var(--dmut); }

/* الأثر */
.chain { position: relative; margin-bottom: clamp(4rem, 8vw, 7rem); }
.chain__line { width: 100%; height: 40px; margin-bottom: 2.2rem; overflow: visible; }
.chain__line .base { stroke: var(--dline); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.chain__line .pulse { stroke: var(--lime); stroke-width: 2; fill: none; vector-effect: non-scaling-stroke; }
.chain ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 4rem); }
.chain li { display: grid; gap: .6rem; }
.chain li:first-child h3 { color: var(--heat); }
.chain h3 { font-family: var(--disp); font-weight: 700; font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1.2; }
.chain p { color: var(--dmut); font-size: 1rem; }
.chain .num { font-size: .9rem; }
.impact__body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.impact__text { font-size: clamp(1.05rem, 1.3vw, 1.18rem); color: #CFCDBF; line-height: 2; }
.impact__body .src { grid-column: 1 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { padding: .55rem 1.1rem; border-radius: 99px; border: 1px solid var(--dline); font-size: .92rem; background: rgba(226,232,210,.03); }
.chips li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--lime); margin-inline-end: .6rem; vertical-align: middle; transform: rotate(45deg); }
.chips--light li { border-color: var(--hair); background: var(--card); }
.chips--light li::before { background: var(--lmark); }

/* الوظائف: شريط أفقي */
.sec--functions { padding-block: 0; background: var(--sand); }
.hz { position: relative; }
.hz__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-block: 6rem 3rem; }
.hz .sec-head { margin-bottom: clamp(2rem, 4vw, 3.4rem); }
.hz__track { display: flex; gap: clamp(1rem, 1.8vw, 1.6rem); padding-inline: var(--pad); width: max-content; will-change: transform; }
.fn { position: relative; flex: none; width: clamp(270px, 25vw, 360px); min-height: clamp(330px, 44vh, 420px); padding: 1.6rem 1.6rem 1.8rem; border-radius: 26px; background: var(--card); box-shadow: 0 0 0 1px rgba(29,33,24,.06), 0 30px 60px -40px rgba(29,33,24,.4); display: flex; flex-direction: column; transform-style: preserve-3d; transition: box-shadow .5s var(--ease); --rx: 0deg; --ry: 0deg; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.fn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(185,221,74,.22), transparent 45%); }
.fn:hover::after { opacity: 1; }
.fn .num { font-size: .85rem; }
.fn__ic { width: 64px; height: 64px; margin: auto 0 1.6rem; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fn__ic .lime { stroke: var(--lmark); stroke-width: 2.4; }
.fn__ic .heat { stroke: var(--heat); stroke-width: 2.6; }
.fn h3 { font-family: var(--disp); font-weight: 700; font-size: clamp(1.35rem, 1.8vw, 1.7rem); line-height: 1.25; margin-bottom: .55rem; }
.fn p { color: var(--ink2); font-size: .95rem; }
.fn--heat { background: #2A1610; color: #F6E7DF; }
.fn--heat .num, .fn--heat p { color: #D9B3A5; }
.fn--heat .fn__ic { stroke: #F6E7DF; }
.hz__end { flex: none; width: 30vw; display: grid; place-items: center; }
.hz__end span { font-family: var(--disp); font-size: 10rem; font-weight: 300; color: rgba(29,33,24,.08); }
.hz__end i { display: none; }
.hz__bar { margin-top: 2.6rem; }
.hz__bar i { display: block; height: 2px; background: var(--hair); position: relative; overflow: hidden; }
.hz__bar i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: right; transform: scaleX(var(--p, 0)); }

/* المكونات */
.parts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.parts__fig { position: sticky; top: 7vh; height: 86vh; display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 1rem; padding: 1.4rem; border-radius: 30px; background: var(--stone); }
.parts__box { position: relative; height: 100%; aspect-ratio: 1000 / 1428; max-width: 100%; }
.parts__box img { width: 100%; height: 100%; object-fit: contain; }
.parts__note { font-size: .78rem; color: var(--mut); text-align: center; max-width: 30em; }
.hs { position: absolute; left: var(--x); top: var(--y); width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--lmark); box-shadow: 0 0 0 3px rgba(244,241,234,.85); transform: scale(.55); opacity: .5; transition: transform .6s var(--ease), opacity .4s; }
.hs::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1.5px solid var(--lmark); opacity: 0; transform: scale(.5); transition: transform .6s var(--ease), opacity .4s; }
.hs.on { transform: scale(1); opacity: 1; }
.hs.on::after { opacity: 1; transform: scale(1); animation: halo 1.8s var(--ease) infinite; }
@keyframes halo { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.parts__list { display: grid; padding-block: 18vh 30vh; }
.parts__list li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.6rem 0; border-top: 1px solid var(--hair); opacity: .32; transition: opacity .5s var(--ease); }
.parts__list li.on { opacity: 1; }
.parts__list li .num { padding-top: .55rem; }
.parts__list h3 { font-family: var(--disp); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.25; }
.parts__list p { color: var(--ink2); }
.parts__list em { display: block; font-style: normal; font-size: .82rem; color: var(--ltext); font-weight: 500; margin: .2rem 0 .1rem; }
.kit { margin-top: clamp(3rem, 7vw, 6rem); border-radius: 30px; overflow: hidden; background: #E4DED2; }
.kit img { width: 100%; height: min(72vh, 760px); object-fit: contain; will-change: transform; }

/* الوحدة المركزية */
.sec--unit { background: var(--paper); }
.unit { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.unit__chest { border-radius: 30px; overflow: hidden; background: #D8D1C2; aspect-ratio: 1 / 1.05; }
.unit__chest img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.unit .sec-head { margin-bottom: 1.4rem; }
.unit__text .lede { max-width: 30em; }
/* ثلاث بطاقات متساوية الإيقاع: الاسم فوق، ثم القيمة ووحدتها على سطر واحد */
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 2.6rem; max-width: 34rem; }
.specs .spec--wide { grid-column: 1 / -1; flex-direction: row; align-items: flex-end; }
.specs .spec--wide dt { align-self: flex-start; }
.specs div { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem; min-height: 7.6rem; padding: 1.1rem 1.25rem 1.2rem; border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px rgba(29,33,24,.06), 0 24px 50px -36px rgba(29,33,24,.45); overflow: hidden; }
.specs div::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px; background: var(--lmark); transform-origin: right; transform: scaleX(var(--p, 0)); transition: transform 1.2s var(--ease); }
.specs.is-in div::before { --p: 1; }
.specs.is-in div:nth-child(2)::before { transition-delay: .15s; }
.specs.is-in div:nth-child(3)::before { transition-delay: .3s; }
.specs dt { font-size: .82rem; color: var(--mut); line-height: 1.4; }
.specs dd { display: flex; align-items: baseline; gap: .45rem; flex-wrap: nowrap; white-space: nowrap; }
.specs b { font-family: var(--disp); font-weight: 300; font-size: clamp(1.7rem, 2.5vw, 2.5rem); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.specs b i { font-style: normal; font-size: .62em; color: var(--ink2); margin: 0 .14em; vertical-align: .12em; }
.specs span { font-size: .85rem; color: var(--ink2); }
.explode { margin-top: clamp(1rem, 3vw, 3rem); }
.explode__box { position: relative; max-width: 1100px; margin-inline: auto; overflow: hidden; }
.explode__box img { width: 100%; clip-path: inset(0 0 0 0); }
.scan { position: absolute; top: 0; bottom: 0; width: 2px; right: 0; background: var(--lmark); box-shadow: 0 0 18px 4px rgba(185,221,74,.6); opacity: 0; }
.lbl { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); background: var(--card); color: var(--ink); font-size: .85rem; font-weight: 500; padding: .3rem .8rem; border-radius: 99px; box-shadow: 0 10px 30px -12px rgba(29,33,24,.5), 0 0 0 1px rgba(29,33,24,.06); white-space: nowrap; }
.lbl::before { content: ""; position: absolute; top: 50%; inset-inline-end: calc(100% + 6px); width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; border: 2px solid var(--lmark); background: var(--card); }

/* الذكاء الاصطناعي */
.sec--ai { overflow: hidden; }
.ai__quote { font-family: var(--disp); font-weight: 700; font-size: clamp(3.4rem, 10.5vw, 10.5rem); line-height: 1.04; letter-spacing: -.01em; margin-top: -1rem; }
.ai__quote .w { display: inline-block; }
.ai__quote .lime { color: var(--lime); }
.ai__sub { margin-top: 1.8rem; color: var(--dmut); font-size: 1.15rem; }
.ai__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 2rem); margin-top: clamp(4rem, 8vw, 7rem); }
.ai__list li { padding-top: 1.4rem; border-top: 1px solid var(--dline); display: grid; gap: .5rem; align-content: start; position: relative; }
.ai__list li::before { content: ""; position: absolute; top: -1px; inset-inline-start: 0; height: 1px; width: 100%; background: var(--lime); transform-origin: right; transform: scaleX(var(--p, 0)); }
.ai__list h3 { font-family: var(--disp); font-weight: 700; font-size: 1.5rem; }
.ai__list p { color: var(--dmut); font-size: .95rem; }
.ai__rules { margin-top: 3.4rem; display: flex; gap: 1rem; align-items: baseline; color: var(--dmut); font-size: .98rem; }
.ai__rules b { color: var(--dtext); padding: .15rem .8rem; border: 1px solid var(--dline); border-radius: 99px; font-weight: 500; font-size: .85rem; }

/* الموقع بدون GPS */
.sec--location { padding-block: 0; background: var(--sage); }
.loc { position: relative; height: 420vh; }
.loc__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.loc__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.loc__head { margin: 0; }
.loc__readout { margin-top: 1.6rem; display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; padding: 1.2rem 1.4rem; border-radius: 18px; background: rgba(251,249,244,.7); box-shadow: 0 0 0 1px rgba(29,33,24,.06); align-items: baseline; max-width: 30rem; }
.loc__readout .k { font-size: .78rem; color: var(--mut); }
.loc__readout b { font-weight: 700; }
.loc__weak { color: var(--htext); }
.fusion { position: relative; width: min(100%, 66vh); margin-top: 3rem; aspect-ratio: 1; justify-self: center; }
.fusion__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit { fill: none; stroke: rgba(29,33,24,.18); stroke-dasharray: 2 6; }
.o2 { stroke-dasharray: none; stroke: rgba(29,33,24,.08); }
.links path { fill: none; stroke: rgba(29,33,24,.18); stroke-width: 1.5; }
.links path.flow { stroke: var(--lmark); stroke-width: 2.5; stroke-dasharray: 6 10; animation: flow 1s linear infinite; opacity: 0; transition: opacity .4s, stroke-width .4s; }
.links path.flow.on { opacity: 1; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.core { fill: var(--ink); }
.core__halo { fill: none; stroke: var(--lmark); stroke-width: 1.5; transform-origin: 300px 300px; animation: halo2 2.4s var(--ease) infinite; }
@keyframes halo2 { 0% { transform: scale(.75); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.fusion__core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; color: var(--paper); display: grid; line-height: 1.25; width: 16%; }
.fusion__core b { font-size: clamp(.72rem, 1vw, .95rem); }
.fusion__core small { font-size: clamp(.5rem, .62vw, .66rem); opacity: .7; }
.fusion__nodes li { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: clamp(120px, 13vw, 170px); text-align: center; display: grid; justify-items: center; gap: .1rem; padding: .7rem .7rem .8rem; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px rgba(29,33,24,.06), 0 16px 40px -24px rgba(29,33,24,.5); transition: transform .5s var(--ease), background .4s, box-shadow .4s; font-size: .8rem; line-height: 1.35; }
.fusion__nodes li b { font-size: .86rem; }
.fusion__nodes li small { color: var(--mut); font-size: .72rem; }
.fusion__nodes li.on { transform: translate(-50%, -50%) scale(1.08); background: var(--ink); color: var(--paper); box-shadow: 0 0 0 2px var(--lmark), 0 24px 50px -20px rgba(29,33,24,.6); }
.fusion__nodes li.on small, .fusion__nodes li.on .num { color: #BFC2B2; }

/* نتائج الاختبار */
.test { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.chart { padding: clamp(1.4rem, 3vw, 2.6rem); border-radius: 30px; background: var(--card); box-shadow: 0 0 0 1px rgba(29,33,24,.06); }
.chart__legend { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .88rem; color: var(--ink2); margin-bottom: 2rem; }
.chart__legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-inline-end: .5rem; vertical-align: middle; }
.k1 { background: #C8C3B4; } .k2 { background: var(--ink); }
.chart__plot { position: relative; display: grid; gap: 1.6rem; padding-bottom: 2.2rem; --max: 7.4; }
.chart__axis { position: absolute; inset: 0 7rem 0 0; inset-inline: 7rem 0; pointer-events: none; }
.chart__axis span { position: absolute; bottom: 0; inset-inline-start: calc(var(--v) / var(--max) * 100%); font-size: .72rem; color: var(--mut); transform: translateX(50%); }
.chart__axis span::before { content: ""; position: absolute; bottom: 1.3rem; left: 50%; height: 100vh; max-height: calc(var(--h, 260px)); width: 1px; background: var(--hair); }
.chart__axis em { position: absolute; bottom: 0; inset-inline-end: 0; font-style: normal; font-size: .72rem; color: var(--mut); }
.grp { display: grid; grid-template-columns: 7rem 1fr; align-items: center; }
.grp > b { font-weight: 500; font-size: .95rem; }
.grp--weak > b { color: var(--htext); }
.bars { display: grid; gap: .4rem; position: relative; z-index: 1; }
.cbar { display: flex; align-items: center; height: 1.9rem; width: calc(var(--v) / var(--max) * 100%); border-radius: 6px; transform-origin: right; position: relative; font-style: normal; }
.cbar span { position: absolute; inset-inline-start: calc(100% + .6rem); font-size: .88rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.test__side { display: grid; gap: 1.4rem; }
.weak { padding: 1.8rem; border-radius: 26px; background: #F6E3D9; }
.weak h3 { font-family: var(--disp); font-size: 1.7rem; line-height: 1.25; margin: .6rem 0; color: var(--htext); }
.weak p { color: #5C3A2C; font-size: .98rem; }
.untested { padding: 1.4rem 0 0; display: grid; gap: .9rem; }

/* التكلفة */
.sec--cost { background: var(--sand); }
.cost { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.cost__total { position: sticky; top: 14vh; }
.cost__total .k { color: var(--ink2); font-size: .95rem; }
.cost__total .big { white-space: nowrap; font-family: var(--disp); font-weight: 300; font-size: clamp(2.8rem, 5.2vw, 5.4rem); line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-align: right; }
.cost__total .u { font-size: 1.05rem; color: var(--ltext); font-weight: 500; }
.cost__facts { margin-top: 2.4rem; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.cost__facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--hair); }
.cost__facts dt { color: var(--mut); font-size: .88rem; }
.cost__facts dd { font-weight: 500; font-size: .95rem; }
.cost__table { border-top: 1px solid var(--ink); }
.tr { display: grid; grid-template-columns: 1.1fr 1.2fr .9fr; gap: 1rem; padding: 1rem .4rem; border-bottom: 1px solid var(--hair); font-size: .95rem; align-items: baseline; transition: background .3s; }
.tr:not(.th):hover { background: rgba(251,249,244,.8); }
.tr span:nth-child(2) { color: var(--ink2); font-size: .85rem; text-align: right; }
.tr span:nth-child(3) { font-weight: 700; font-variant-numeric: tabular-nums; }
.th { font-size: .78rem; color: var(--mut); }
.th span { font-weight: 400 !important; color: var(--mut) !important; font-size: .78rem !important; }
.tr--q span:nth-child(3) { color: var(--htext); font-weight: 500; }
.cost__table .src { margin-top: 1.4rem; }

/* الأسئلة المفتوحة */
.qs { border-top: 1px solid var(--ink); }
.qs li { position: relative; display: grid; grid-template-columns: 4rem minmax(0, .8fr) minmax(0, 1.4fr) auto; gap: 1.4rem; align-items: baseline; padding: 1.8rem 0; border-bottom: 1px solid var(--hair); overflow: hidden; }
.qs li::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: -1; }
.qs li:hover::before { transform: scaleY(1); }
.qs li { z-index: 0; transition: color .45s var(--ease), padding .6s var(--ease); }
.qs li:hover { color: var(--paper); padding-inline: 1.2rem; }
.qs li:hover p, .qs li:hover .num { color: #C6C8BA; }
.qs h3 { font-family: var(--disp); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.25; }
.qs p { color: var(--ink2); transition: color .45s; }
.qs em { font-style: normal; font-size: .8rem; font-weight: 500; padding: .2rem .75rem; border-radius: 99px; border: 1px solid currentColor; color: var(--htext); }
.qs li:hover em { color: var(--heat); }
.later { margin-top: 3.4rem; display: grid; gap: 1rem; }

/* الخاتمة */
.closing { position: relative; min-height: 100vh; min-height: 100svh; background: #0E120B; color: var(--dtext); display: grid; grid-template-rows: 1fr auto; overflow: hidden; }
.closing__inner { display: grid; justify-items: center; align-content: center; text-align: center; gap: 1.6rem; padding: 8rem var(--pad) 4rem; }
.closing__mark { width: min(38vw, 220px); overflow: visible; }
.closing__mark .bar { fill: var(--dtext); }
.closing__mark .sq { fill: var(--lime); transform-box: fill-box; transform-origin: center; }
.closing__line { font-family: var(--disp); font-weight: 700; font-size: clamp(1.9rem, 4.6vw, 4.2rem); line-height: 1.3; max-width: 16em; }
.closing__line--2 { color: #A9AD9B; font-weight: 400; margin-top: -1rem; }
.closing__line .lime { color: var(--lime); font-weight: 700; }
.closing__line .w { display: inline-block; }
.closing .btn { margin-top: 1.4rem; background: var(--dtext); color: var(--ink); }
.closing .btn i { background: rgba(0,0,0,.08); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.6rem var(--pad); border-top: 1px solid var(--dline); font-size: .82rem; color: var(--dmut); }
.foot img { height: 26px; width: auto; }

/* 8. الشاشات الصغيرة */
@media (max-width: 1100px) { .ruler { display: none; } }
@media (max-width: 980px) {
  .nav__links { display: none; }
  .reading, .impact__body, .parts, .unit, .test, .cost, .loc__grid { grid-template-columns: minmax(0, 1fr); }
  .parts__fig { position: relative; top: 0; height: 70vh; }
  .parts__list { padding-block: 2rem 0; }
  .parts__list li { opacity: 1; }
  .ai__list { grid-template-columns: repeat(2, 1fr); }
  .cost__total { position: relative; top: 0; }
  .qs li { grid-template-columns: 3rem 1fr; }
  .qs p, .qs em { grid-column: 2; }
  .qs em { justify-self: start; }
  .fusion { width: min(100%, 58vh); }
  .loc__readout { display: none; }
  .hud__nav { display: none; }
  .silent { bottom: calc(100% + .8rem); }
  .eye__steps { bottom: calc(clamp(1rem, 3vw, 2.6rem) + 8.6rem); }
  .eye__tag { bottom: calc(clamp(1rem, 3vw, 2.6rem) + 7rem); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .ruler { display: none; }
  .nav { gap: .7rem; }
  .nav__cta span { display: none; }
  .nav__cta { padding: .3rem; }
  .cover__keys { top: 5.2rem; }
  .cover__keys li { padding-inline: .8rem; }
  .cover__keys p { display: none; }
  .cover__keys h2 { font-size: .95rem; }
  .cover__keys .num { font-size: 1.6rem; }
  .cover { --band: 250px; --H: min(calc((100svh - var(--band) - var(--top)) / .63), 130vw); }
  .cover__title h1 { font-size: 3.8rem; }
  .cover__lines { display: none; }
  .cover__title { bottom: auto; top: calc(100% - var(--band) + .6rem); transform: none; }
  .cover__lede { inset-inline: 1rem; bottom: 1rem; transform: none; font-size: .84rem; max-width: none; }
  .cover__hint { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--hair); margin-top: 1.4rem; }
  .chain ol { grid-template-columns: 1fr; }
  .ai__list { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .specs div { min-height: 0; gap: .8rem; }
  .specs .spec--wide { flex-direction: column; align-items: stretch; }
  .hud__team { top: calc(var(--m) + 8.4rem); min-width: 150px; padding: .45rem .7rem .5rem; font-size: .72rem; }
  .hud__panel li { padding: .14rem 0; }
  .hud__compass { top: auto; bottom: 8.6rem; width: 78vw; display: none; }
  .hud__alert { top: calc(var(--m) + 3.9rem); padding: .45rem .8rem; gap: .6rem; }
  .hud__alert > b { font-size: 1rem; }
  .hud__alert svg { width: 22px; }
  .hud__edge { top: 62%; }
  .cmdlink { display: none !important; }
  .eye__steps li { font-size: .8rem; }
  .tr { grid-template-columns: 1fr 1fr; }
  .tr span:nth-child(2) { display: none; }
  .fusion__nodes li { width: 98px; padding: .45rem; }
  .fusion__nodes li small { display: none; }
  .grp { grid-template-columns: 4.6rem 1fr; }
  .chart__axis { inset-inline: 4.6rem 0; }
  .foot { flex-direction: column; }
  .lbl { font-size: .66rem; padding: .15rem .5rem; }
}

/* 9. بلا حركة: كل شيء ظاهر بترتيبه */
html.js:not(.static) .cover__fig, html.js:not(.static) .cover__hint, html.js:not(.static) .cover__title, html.js:not(.static) .cover__lede, html.js:not(.static) .mk, html.js:not(.static) .hud__compass, html.js:not(.static) .hud__alert, html.js:not(.static) .silent, html.js:not(.static) .eye__steps, html.js:not(.static) .eye__title { transform: none; }
html.static .hero { height: auto; }
html.static .hero__stage { position: relative; height: auto; overflow: visible; }
html.static .cover { position: relative; height: 100vh; height: 100svh; }
html.static .helm { display: none; }
html.static .eye { position: relative; clip-path: none; visibility: visible; height: 100vh; height: 100svh; overflow: hidden; }
html.static .eye__title, html.static .eye__steps, html.static .eye__progress { display: none; }
html.static .loc { height: auto; }
html.static .loc__pin { position: relative; height: auto; padding-block: 7rem; }
html.static .hz__pin { height: auto; }
html.static .hz__track { width: auto; flex-wrap: wrap; }
html.static .hz__end { display: none; }
html.static .read .rw { opacity: 1; }
html.static .parts__list li { opacity: 1; }
html.static .hs { opacity: 1; transform: none; }
html.static .grain { animation: none; }
html.static .links path.flow { opacity: 1; animation: none; }
