/* ═══════════════════════════════════════════════════
   مَدار MADAR — طاقة لا تغيب
   dark horizon indigo · solar gold glow · tech white · impact green
   Alexandria display · IBM Plex Sans Arabic body · Plex Mono data
   ═══════════════════════════════════════════════════ */

:root {
  --night: #0C1422;
  --night-2: #111C30;
  --panel: #16233B;
  --line: #22314D;
  --sun-rgb: 182 227 59;
  --glow-rgb: 214 245 102;
  --sun: rgb(var(--sun-rgb));
  --glow: rgb(var(--glow-rgb));
  --white: #F4F7FB;
  --mist: #A7B4C8;
  --green: #3FA97C;

  --disp: "Alexandria", sans-serif;
  --body: "IBM Plex Sans Arabic", sans-serif;
  --mono: "IBM Plex Mono", monospace;

  --ease: cubic-bezier(.22, .8, .24, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  font-family: var(--body);
  font-weight: 300;
  background: var(--night);
  color: var(--white);
  line-height: 1.9;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--disp); font-weight: 700; line-height: 1.5; }

::selection { background: var(--sun); color: var(--night); }

/* ── reveals: power-on (ومضة تيار — لا حركة عمودية) ── */
.rv { opacity: 0; }
.rv.in { animation: powerOn .62s var(--ease) forwards; }
@keyframes powerOn {
  0%   { opacity: 0;   filter: brightness(2.4); }
  10%  { opacity: .85; filter: brightness(2); }
  18%  { opacity: .12; filter: brightness(1); }
  30%  { opacity: 1;   filter: brightness(1.55); }
  55%  { opacity: 1;   filter: brightness(1.12); }
  100% { opacity: 1;   filter: brightness(1); }
}

.sec-kicker {
  font-size: .78rem; font-weight: 500; letter-spacing: .14em;
  color: var(--sun); margin-bottom: .9rem;
}
.sec-kicker::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 44px; height: 1px; background: var(--sun);
  margin-inline-start: .8rem; opacity: .55;
}

/* ═══ preloader ═══ */
.pre {
  position: fixed; inset: 0; z-index: 60;
  background: var(--night);
  display: grid; place-content: center; gap: 1.1rem; justify-items: center;
  transition: opacity .7s var(--ease), visibility .7s;
}
.pre.off { opacity: 0; visibility: hidden; }
.pre__orbit { width: 96px; color: var(--sun); }
.pre__ring { stroke-dasharray: 251; stroke-dashoffset: 251; animation: preRing 1.3s var(--ease) forwards; transform-origin: center; transform: rotate(-90deg); }
@keyframes preRing { to { stroke-dashoffset: 0; } }
.pre__core { opacity: 0; animation: preCore .6s .7s var(--ease) forwards; }
@keyframes preCore { to { opacity: 1; } }
.pre__word { font-family: var(--disp); font-weight: 800; font-size: 1.9rem; opacity: 0; animation: preCore .7s .6s var(--ease) forwards; }

/* ═══ energy rail ═══ */
.rail {
  position: fixed; top: 0; bottom: 0; inset-inline-start: clamp(10px, 2vw, 26px);
  width: 2px; z-index: 40; pointer-events: none;
  opacity: 0; transition: opacity .6s;
}
.rail.show { opacity: 1; }
.rail__track { position: absolute; inset: 8vh 0; background: var(--line); width: 2px; }
.rail__fill {
  position: absolute; top: 8vh; width: 2px; height: 0;
  background: linear-gradient(to bottom, var(--sun), var(--glow));
  box-shadow: 0 0 12px rgb(var(--sun-rgb) / .8);
}
.rail__head {
  position: absolute; inset-inline-start: -4px; top: 8vh;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--glow); box-shadow: 0 0 16px 4px rgb(var(--glow-rgb) / .55);
}
.rail__nodes { position: absolute; inset: 8vh 0; }
.rail__node {
  position: absolute; inset-inline-start: -4px;
  font-size: .68rem; letter-spacing: .1em; color: var(--mist);
  display: flex; align-items: center; gap: .55rem;
  white-space: nowrap;
  transition: color .4s;
}
.rail__node i {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--night); display: block;
  transition: border-color .4s, background .4s, box-shadow .4s;
}
.rail__node.lit { color: var(--glow); }
.rail__node.lit i { border-color: var(--sun); background: var(--sun); box-shadow: 0 0 10px rgb(var(--sun-rgb) / .8); }
.rail__node[data-node="hero"]     { top: 0%; }
.rail__node[data-node="solutions"]{ top: 34%; }
.rail__node[data-node="projects"] { top: 62%; }
.rail__node[data-node="impact"]   { top: 88%; }
@media (max-width: 900px) { .rail { display: none; } }

/* ═══ nav: شريط بيانات صلب — غرفة التحكم ═══ */
.charge {
  position: fixed; top: 0; inset-inline-start: 0; z-index: 60;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--sun), var(--glow));
  box-shadow: 0 0 10px rgb(var(--sun-rgb) / .8);
}
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: .65rem clamp(1.2rem, 4vw, 3rem);
  color: var(--white);
  background: rgb(10 17 27 / .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(-12px);
  transition: opacity .8s var(--ease) .2s, transform .8s var(--ease) .2s;
}
.nav.show { opacity: 1; transform: none; }
.nav__brand { display: flex; align-items: center; gap: .6rem; font-family: var(--disp); font-size: 1.2rem; font-weight: 800; }
.nav__mark { width: 27px; color: var(--sun); }
.nav__data {
  display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem);
  font-family: var(--mono); font-size: .72rem; color: var(--mist);
  letter-spacing: .04em; white-space: nowrap;
}
.nav__d { display: flex; align-items: center; gap: .5rem; }
.nav__d b { color: var(--glow); font-weight: 500; }
.nav__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px rgb(63 169 124 / .8);
  animation: dotPulse 2.4s infinite;
}
@keyframes dotPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.nav__side { display: flex; align-items: center; gap: 1rem; }
.nav__cta {
  font-size: .82rem; font-weight: 500;
  border: 1px solid var(--sun); color: var(--glow); border-radius: 100px;
  padding: .42rem 1.2rem;
  transition: background .35s, color .35s;
}
.nav__cta:hover, .nav__cta:focus-visible { background: var(--sun); color: var(--night); }
.menu-btn {
  background: none; border: 0; cursor: pointer; padding: 8px 4px;
  display: flex; flex-direction: column; gap: 6px;
}
.menu-btn span { width: 24px; height: 2px; background: var(--white); transition: transform .35s var(--ease), opacity .3s; }
.menu-btn.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 900px) { .nav__data { display: none; } }

/* قائمة الأوفرلي */
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: rgb(10 17 27 / .97); backdrop-filter: blur(14px);
  display: grid; place-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu__links { display: grid; gap: 1.4rem; text-align: center; }
.menu__links a {
  font-family: var(--disp); font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 700;
  display: flex; align-items: baseline; gap: 1rem; justify-content: center;
  transition: color .3s;
}
.menu__links a i { font-family: var(--mono); font-style: normal; font-size: .8rem; color: var(--sun); }
.menu__links a:hover { color: var(--glow); }

/* ═══ scrub hero ═══ */
.scrub { height: 400vh; position: relative; background: var(--night); }
.scrub__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.scrub__video, .scrub__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scrub__fallback { display: none; }
.no-video .scrub__video { display: none; }
.no-video .scrub__fallback { display: block; animation: kb 26s linear infinite alternate; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.08); } }
.scrub__tint {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgb(12 20 34 / .5), rgb(12 20 34 / 0) 26%),
              linear-gradient(to top, rgb(12 20 34 / .65), rgb(12 20 34 / 0) 40%),
              radial-gradient(120% 90% at 50% 50%, rgb(12 20 34 / 0) 55%, rgb(12 20 34 / .4));
}

.scrub__copy {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  text-align: start;
  color: var(--white);
  padding: clamp(1.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 7vh, 5.5rem);
  opacity: 0; visibility: hidden;
}
.scrub__copy h1 {
  font-size: clamp(4rem, 11vw, 8.5rem); font-weight: 800; line-height: 1.05;
  text-shadow: 0 2px 40px rgb(12 20 34 / .6);
}
.scrub__copy h2 {
  font-size: clamp(1.9rem, 5vw, 3.6rem); font-weight: 700;
  text-shadow: 0 2px 30px rgb(12 20 34 / .65);
}
.scrub__copy p { font-size: clamp(1.05rem, 2.2vw, 1.4rem); letter-spacing: .06em; margin-top: .4rem; opacity: .95; }

.scrub__live {
  margin-top: 1.6rem; display: flex; align-items: baseline; gap: .7rem;
  border-inline-start: 2px solid var(--sun); padding-inline-start: 1rem;
}
.scrub__live b { font-family: var(--mono); font-weight: 500; font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: var(--glow); }
.scrub__live span { font-size: .78rem; color: var(--mist); max-width: 15rem; line-height: 1.6; }

.scrub__hint {
  position: absolute; inset-inline-end: clamp(1.5rem, 5vw, 4.5rem); bottom: clamp(2.5rem, 7vh, 5.5rem);
  font-size: .78rem; letter-spacing: .3em; opacity: .85;
  display: grid; justify-items: center; gap: .9rem;
}
.hint__orbit {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgb(244 247 251 / .45);
  display: block; position: relative;
  animation: orbitSpin 3.2s linear infinite;
}
.hint__orbit i {
  position: absolute; top: -3.5px; left: 50%; margin-left: -3.5px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--glow); box-shadow: 0 0 10px 2px rgb(var(--glow-rgb) / .7);
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }

/* ── فواصل التيار: شرطات ضوئية تجري بين الأقسام ── */
.sol, .proj, .method, .reg { position: relative; }
.sol::before, .proj::before, .method::before, .reg::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 1px;
  background: repeating-linear-gradient(90deg,
    transparent 0 16px, rgb(var(--sun-rgb) / .55) 16px 28px);
  background-size: 44px 1px;
  animation: currentFlow 2.6s linear infinite;
  opacity: .45; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
@keyframes currentFlow { to { background-position: -44px 0; } }

/* ═══ about ═══ */
.about { padding: clamp(6rem, 12vw, 10rem) clamp(1.2rem, 6vw, 6rem); max-width: 1250px; margin-inline: auto; }
.about__lead {
  font-size: clamp(1.8rem, 4.4vw, 3.2rem); font-weight: 700; line-height: 1.7;
  max-width: 24ch;
}
.about__lead em { font-style: normal; color: var(--glow); }
.about__sub { color: var(--mist); max-width: 52ch; margin-top: 1.4rem; }
.about__stats {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem; margin-top: clamp(3rem, 6vw, 5rem);
}
.about__stats li { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.about__stats b {
  display: block; font-family: var(--disp); font-weight: 800;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem); color: var(--glow); line-height: 1.2;
  text-shadow: 0 0 30px rgb(var(--sun-rgb) / .35);
}
.about__stats .u { font-size: .85rem; color: var(--mist); }

/* ═══ solutions ═══ */
.sol { padding: clamp(5rem, 10vw, 9rem) clamp(1.2rem, 5vw, 5rem); background: var(--night-2); }
.sol__head { max-width: 1400px; margin-inline: auto; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sol__head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.sol__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.3rem, 2.6vw, 2rem); max-width: 1400px; margin-inline: auto;
}
.scard {
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .5s var(--ease), border-color .5s, box-shadow .5s;
}
.scard:hover { transform: translateY(-6px); border-color: rgb(var(--sun-rgb) / .5); box-shadow: 0 18px 50px rgb(0 0 0 / .35), 0 0 0 1px rgb(var(--sun-rgb) / .15); }
.scard__media { aspect-ratio: 16/9; overflow: hidden; }
.scard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.scard:hover .scard__media img { transform: scale(1.05); }
.scard__body { padding: 1.5rem 1.5rem 1.7rem; }
.scard__n { font-family: var(--mono); font-size: .78rem; color: var(--sun); }
.scard__body h3 { font-size: 1.22rem; margin: .5rem 0 .5rem; }
.scard__body p { font-size: .92rem; color: var(--mist); }

/* ═══ projects ═══ */
.proj { padding: clamp(5rem, 10vw, 9rem) clamp(1.2rem, 5vw, 5rem); }
.proj__head { max-width: 1400px; margin-inline: auto; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.proj__head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.proj__list { display: grid; gap: clamp(1.5rem, 3vw, 2.2rem); max-width: 1400px; margin-inline: auto; }
.pcard {
  display: grid; grid-template-columns: 1.25fr 1fr;
  background: var(--night-2); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.pcard__media { overflow: hidden; min-height: 260px; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__body { padding: clamp(1.5rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: .6rem; }
.pcard__body h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.pcard__type { font-family: var(--mono); font-size: .8rem; color: var(--sun); }
.pcard dl { display: grid; grid-template-columns: repeat(3, auto); gap: 1.4rem; margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.pcard dt { font-size: .72rem; color: var(--mist); letter-spacing: .06em; }
.pcard dd { font-size: .95rem; font-weight: 500; }
.pcard dd.on { color: var(--green); }
.pcard dd.build { color: var(--glow); }

/* ═══ method ═══ */
.method { padding: clamp(5rem, 10vw, 9rem) clamp(1.2rem, 5vw, 5rem); background: var(--night-2); }
.method__head { max-width: 1100px; margin-inline: auto; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.method__head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.method__steps {
  list-style: none; max-width: 1100px; margin-inline: auto;
  display: grid; gap: 0;
}
.mstep {
  position: relative; padding: 1.8rem 2.4rem 1.8rem 0;
  border-inline-start: 2px solid var(--line);
  padding-inline-start: 2rem;
}
.mstep__dot {
  position: absolute; inset-inline-start: -7px; top: 2.4rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--sun); box-shadow: 0 0 12px rgb(var(--sun-rgb) / .7);
}
.mstep h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.mstep p { font-size: .95rem; color: var(--mist); max-width: 56ch; }

/* ═══ impact ═══ */
.impact { position: relative; min-height: 100vh; display: grid; align-items: end; overflow: hidden; }
.impact__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.impact__inner {
  position: relative; width: 100%; min-width: 0;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.2rem, 6vw, 6rem);
  background: linear-gradient(to top, rgb(12 20 34 / .92), rgb(12 20 34 / .3) 75%, transparent);
}
.impact__inner h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 2rem; }
.impact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 1.5rem; max-width: 1200px; min-width: 0; }
.icard {
  min-width: 0;
  background: rgb(22 35 59 / .72); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 6px; padding: 1.5rem 1.6rem;
}
.icard b {
  display: block; font-family: var(--disp); font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--glow); line-height: 1.3;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  text-shadow: 0 0 26px rgb(var(--sun-rgb) / .4);
}
.icard b small {
  font-size: .52em; font-weight: 700; margin-inline-start: .25em;
}
.icard > span { display: block; font-size: .85rem; color: var(--mist); margin-top: .35rem; }
.impact__note { font-size: .75rem; color: var(--mist); opacity: .7; margin-top: 1.4rem; }

/* ═══ contact ═══ */
.reg { padding: clamp(5rem, 11vw, 10rem) clamp(1.2rem, 5vw, 5rem); }
.reg__inner { max-width: 660px; margin-inline: auto; text-align: center; }
.reg h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: .8rem; }
.reg__note { color: var(--mist); margin-bottom: 2.6rem; }
.reg__form { display: grid; gap: 1.3rem; text-align: start; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .82rem; font-weight: 500; color: var(--glow); }
.field input, .field select {
  font: inherit; font-size: 1rem; color: var(--white);
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: .85rem 1rem; transition: border-color .3s, box-shadow .3s;
}
.field select option { background: var(--panel); }
.field input:focus-visible, .field select:focus-visible {
  outline: none; border-color: var(--sun);
  box-shadow: 0 0 0 3px rgb(var(--sun-rgb) / .2);
}
.reg__btn {
  font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
  background: var(--sun); color: var(--night);
  border: 0; border-radius: 100px; padding: 1rem 2rem; margin-top: .5rem;
  transition: background .35s, transform .35s var(--ease), box-shadow .35s;
}
.reg__btn:hover, .reg__btn:focus-visible { background: var(--glow); transform: translateY(-2px); box-shadow: 0 10px 34px rgb(var(--sun-rgb) / .35); }
.reg__done { display: none; color: var(--green); font-weight: 500; text-align: center; }
.reg__form.sent .reg__done { display: block; }
.reg__form.sent .reg__btn, .reg__form.sent .field { display: none; }

/* ═══ footer ═══ */
.foot {
  background: #0A111D; padding: 3.5rem clamp(1.2rem, 5vw, 5rem) 2.5rem;
  display: grid; gap: 1.1rem; justify-items: center; text-align: center;
}
.foot__brand { display: flex; align-items: center; gap: .6rem; font-family: var(--disp); font-size: 1.4rem; font-weight: 800; }
.foot__brand svg { width: 30px; color: var(--sun); }
.foot__concept { font-size: .82rem; color: var(--mist); max-width: 62ch; }
.foot__credit { font-size: .82rem; color: var(--mist); }
.foot__credit a { color: var(--glow); }

/* ═══ responsive ═══ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .pcard { grid-template-columns: 1fr; }
  .scrub { height: 320vh; }
}

/* ═══ reduced motion ═══ */
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; animation: none; }
  .rv.in { animation: none; }
  .hint__orbit { animation: none; }
  .sol::before, .proj::before, .method::before, .reg::before { animation: none; }
  .scrub { height: auto; }
  .scrub__stage { position: relative; }
  .scrub__copy { position: relative; opacity: 1 !important; visibility: visible !important; padding-block: 4rem; }
  .sc-2, .sc-3 { display: none; }
  .no-video .scrub__fallback, .scrub__fallback { animation: none; }
  .scrub__hint span::after { animation: none; }
  .rail { display: none; }
}

/* اعتمادات وتأهيلات */
.impact__vision { color: var(--glow); font-size: .88rem; font-weight: 500; margin: -1rem 0 1.6rem; }
.creds { padding: 2.2rem clamp(1.2rem, 5vw, 5rem); border-top: 1px solid var(--line); background: var(--night-2); }
.creds__row {
  max-width: 1400px; margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: .8rem 1rem; justify-content: center;
}
.creds__row span {
  font-size: .78rem; color: var(--mist);
  border: 1px solid var(--line); border-radius: 100px;
  padding: .45rem 1.1rem; white-space: nowrap;
}

/* وضع التصوير الآلي */
html.shot .nav { opacity: 1; transform: none; transition: none; }
html.shot .pre { display: none; }

/* الشعار المعتمد */
.nav__logo { height: 40px; width: auto; display: block; }
.foot__logo { height: 72px; width: auto; margin-inline: auto; }

/* ═══ حاسبة الطاقة ═══ */
.calc { padding: clamp(5rem, 10vw, 9rem) clamp(1.2rem, 5vw, 5rem); border-top: 1px solid var(--line); }
.calc__head { max-width: 1200px; margin-inline: auto; margin-bottom: clamp(2rem, 4vw, 3.4rem); }
.calc__head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.calc__lead { color: var(--mist); margin-top: .9rem; max-width: 52ch; }
.calc__grid {
  max-width: 1200px; margin-inline: auto;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: start;
}

.calc__inputs { background: var(--night-2); border: 1px solid var(--line); padding: clamp(1.4rem, 3vw, 2.2rem); }
.crow { display: grid; gap: .55rem; margin-bottom: 1.8rem; }
.crow__t { font-size: .88rem; font-weight: 500; }
.crow__v { font-family: var(--mono); font-size: 1.05rem; color: var(--glow); }
.crow input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 36px; background: transparent; outline: none; cursor: pointer;
  touch-action: pan-y;
}
.crow input[type="range"]::-webkit-slider-runnable-track {
  height: 2px; background: var(--line); border-radius: 2px;
}
.crow input[type="range"]::-moz-range-track {
  height: 2px; background: var(--line); border-radius: 2px;
}
.crow input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  margin-top: -8px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--sun); border: 3px solid var(--night-2);
  box-shadow: 0 0 12px rgb(var(--sun-rgb) / .6); cursor: grab;
}
.crow input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--sun); border: 3px solid var(--night-2); cursor: grab;
}
.crow select {
  font: inherit; font-size: .9rem; color: var(--white);
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: .7rem .9rem;
}
.crow select option { background: var(--panel); }
.calc__assump { font-size: .74rem; color: var(--mist); opacity: .7; line-height: 1.9; margin-top: 1.4rem; }

.calc__out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cstat { background: var(--night); padding: 1.3rem 1.4rem; }
.cstat b {
  display: block; font-family: var(--mono); font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--glow); line-height: 1.35;
}
.cstat span { font-size: .78rem; color: var(--mist); }
.cstat--hero { grid-column: 1 / -1; background: var(--night-2); }
.cstat--hero b { font-size: clamp(2rem, 4.4vw, 3rem); text-shadow: 0 0 34px rgb(var(--sun-rgb) / .35); }

.cchart { grid-column: 1 / -1; background: var(--night); padding: 1.3rem 1.4rem 1rem; }
.cchart__t { font-size: .78rem; color: var(--mist); margin-bottom: .9rem; }
.cchart__bars { display: flex; align-items: flex-end; gap: 5px; height: 92px; }
.cchart__bars i {
  flex: 1; display: block; border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, rgb(var(--sun-rgb) / .35), var(--sun));
  transition: height .45s var(--ease);
}
.cchart__x { display: flex; justify-content: space-between; font-size: .68rem; color: var(--mist); margin-top: .5rem; opacity: .7; }

.calc__cta {
  grid-column: 1 / -1; background: var(--night-2);
  padding: 1.1rem 1.4rem; text-align: center; font-size: .9rem; font-weight: 500; color: var(--glow);
  transition: background .35s;
}
.calc__cta:hover { background: var(--panel); }

@media (max-width: 900px) {
  .calc__grid { grid-template-columns: 1fr; }
}


/* ═══ ملاءمة الجوال ═══ */
@media (max-width: 700px) {
  .impact__grid { grid-template-columns: 1fr; gap: 1rem; }
  .icard { padding: 1.15rem 1.1rem; }
  .icard b { white-space: normal; overflow-wrap: anywhere; font-size: clamp(1.5rem, 7.5vw, 2rem); }
  .menu-btn { min-width: 44px; min-height: 44px; display: grid; place-content: center; }
}


/* ═══════════ الوضع الإنجليزي ═══════════ */

.nav__lang {
  font: inherit; font-size: .78rem; font-weight: 500; letter-spacing: .06em;
  background: none; border: 1px solid rgb(255 255 255 / .18); color: inherit;
  border-radius: 100px; padding: .38rem 1rem; cursor: pointer; white-space: nowrap;
  transition: border-color .35s, color .35s;
}
.nav__lang:hover { border-color: var(--sun); color: var(--glow); }

/* الزوج اللاتيني: ألكساندريا للعناوين (هوية مَدار) + IBM Plex Sans للنص */
body.en { font-family: "IBM Plex Sans", system-ui, sans-serif; }
body.en h1, body.en h2, body.en h3 { font-family: "Alexandria", sans-serif; letter-spacing: -.015em; }
body.en .sec-kicker { text-transform: uppercase; letter-spacing: .18em; }

/* العلامة اللاتينية */
.wm { display: none; font-family: "Alexandria", sans-serif; font-weight: 800; line-height: 1; white-space: nowrap; }
body.en .wm { display: block; }
body.en .nav__logo, body.en .foot__logo { display: none; }
.wm--nav  { font-size: 1.18rem; letter-spacing: .28em; padding-inline-end: .28em; }
.wm--foot { font-size: 1.9rem;  letter-spacing: .3em;  padding-inline-end: .3em; margin-inline: auto; }

/* شاشة التحميل */
.pre__en { display: none; }
body.en .pre__ar { display: none; }
body.en .pre__en { display: inline; letter-spacing: .22em; }
